[5016] in SIPB bug reports
sun4 7.7K: gmake path problem ...
daemon@ATHENA.MIT.EDU (Jake Wetzel)
Sun Nov 6 09:59:16 1994
To: bug-sipb@MIT.EDU
Date: Sun, 06 Nov 1994 09:58:47 EST
From: Jake Wetzel <jawetzel@MIT.EDU>
System name: m16-034-18
Type and version: SPARC/Classic 7.7K
Display type: cgthree
I not sure if SIPB maintains the gnu locker so piece Email me if there is a
better mailing list to send this problem report to. The problem is that gmake
does not seem to be searching my path correctly.
For instance, I do the following:
add sunsoft
add gnu
My path is now:
path (/afs/athena.mit.edu/user/j/a/jawetzel/sun4bin /usr/athena/bin /bin/athena /usr/openwin/bin /usr/openwin/demo /usr/bin /usr/ucb /usr/ccs/bin /usr/andrew/bin . /etc /usr/sbin /mit/sipb/sun4bin /mit/graphics/sun4bin /mit/consult/sun4bin /mit/sunsoft/sun4bin /mit/gnu/sun4bin)
PATH=/afs/athena.mit.edu/user/j/a/jawetzel/sun4bin:/usr/athena/bin:/bin/athena:/usr/openwin/bin:/usr/openwin/demo:/usr/bin:/usr/ucb:/usr/ccs/bin:/usr/andrew/bin:.:/etc:/usr/sbin:/mit/sipb/sun4bin:/mit/graphics/sun4bin:/mit/consult/sun4bin:/mit/sunsoft/sun4bin:/mit/gnu/sun4bin
I now want to compile the following c program:
#include <stdio.h>
void main(void)
{
printf("Hello World\n");
}
I therefore create the following Makefile:
EXEC = foo
CC = suncc
CFLAGS = -Xc
DEFINES =
INC =
..SUFFIXES : .o .c
OBJS = foo.o
$(EXEC) : $(OBJS)
$(CC) -o $(EXEC) $(OBJS) -lc
..c.o :
$(CC) -c $(INC) $(CFLAGS) $(DEFINES) $<
I run gmake:
m16-034-18:/tmp> gmake
suncc -c -Xc foo.c
gmake: suncc: Command not found
gmake: *** [foo.o] Error 127
Now I change the Makefile so that CC = gcc and CFLAGS = -ansi:
m16-034-18:/tmp> gmake
gcc -c -ansi foo.c
gcc -o foo foo.o -lc
Gmake seems to be using the path correctly because gcc lies in the last
directory in my path but it seems to be ignoring the sunsoft directory.
Jake