[5017] in SIPB bug reports

home help back first fref pref prev next nref lref last post

Jake Wetzel: sun4 7.7K: gmake path problem ...

daemon@ATHENA.MIT.EDU (Greg Hudson)
Sun Nov 6 11:57:11 1994

To: gnu@MIT.EDU
Cc: bug-sipb@MIT.EDU
Date: Sun, 06 Nov 1994 11:34:28 EST
From: Greg Hudson <ghudson@MIT.EDU>


------- Forwarded Message

Received: from SOUTH-STATION-ANNEX.MIT.EDU by po6.MIT.EDU (5.61/4.7) id AA28383; Sun, 6 Nov 94 09:59:03 EST
Received: from M16-034-18.MIT.EDU by MIT.EDU with SMTP
	id AA24130; Sun, 6 Nov 94 09:58:50 EST
Received: by m16-034-18.MIT.EDU (5.0/4.7) id AA19193; Sun, 6 Nov 1994 09:58:49 +0500
Message-Id: <9411061458.AA19193@m16-034-18.MIT.EDU>
To: bug-sipb@MIT.EDU
Subject: sun4 7.7K: gmake path problem ...
Date: Sun, 06 Nov 1994 09:58:47 EST
From: Jake Wetzel <jawetzel@MIT.EDU>
Content-Length: 1680

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



------- End of Forwarded Message


home help back first fref pref prev next nref lref last post