Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Mar 1999 17:22:01 +1030 (CST)
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        Richard Wackerbarth <rkw@dataplex.net>
Cc:        current@FreeBSD.ORG, obrien@NUXI.com, John Polstra <jdp@polstra.com>, dyson@iquest.net, "Jordan K. Hubbard" <jkh@zippy.cdrom.com>, Manfred Antar <mantar@pacbell.net>
Subject:   Re: gcc
Message-ID:  <XFMail.990302172201.doconnor@gsoft.com.au>
In-Reply-To: <Pine.BSF.4.05.9903020008370.3727-100000@nomad.dataplex.net>

next in thread | previous in thread | raw e-mail | index | archive | help

On 02-Mar-99 Richard Wackerbarth wrote:
> > >remove cc from /usr/src/gnu/usr.bin/Makefile SUBDIR list
> > >remove libstdc++ and libobjc from /usr/src/gnu/lib/Makefile SUBDIR list
>  Although this approach works, IMHO, the more appropriate approach
>  would be to use "${CC}" rather than "cc" in ALL the makefiles and then
>  define "CC=/usr/bin/egcc"

I did this for a make buildworld, ie
make CC=egcc "CFLAGS=-nostdinc -I/usr/include" buildworld
Which worked, but blew up doing ld :-/

[ ... ]
printf '#include "SYS.h"\nRSYSCALL(clock_gettime)\n' > clock_gettime.S
egcc -I/usr/include -DLIBC_RCS -DSYSLIBC_RCS -I/usr/src/lib/libc/include
-D__DBINTERFACE_PRIVATE -DPOSIX_MISTAKE -I/usr/src/lib/libc/../libc/locale -DBROKEN_DES
-DYP -I/usr/obj/usr/src/tmp/usr/include -I/usr/src/lib/libc/i386 -c clock_gettime.S -o
clock_gettime.o
printf '#include "SYS.h"\nRSYSCALL(clock_settime)\n' > clock_settime.S
/usr/src/gnu/usr.bin/binutils/ld/../../../../contrib/binutils/ld/ldlang.c:1215:
`FNM_FILE_NAME' undeclared (first use this
function)/usr/src/gnu/usr.bin/binutils/ld/../../../../contrib/binutils/ld/ldlang.c:1215:
(Each undeclared identifier is reported only once
/usr/src/gnu/usr.bin/binutils/ld/../../../../contrib/binutils/ld/ldlang.c:1215: for each
function it appears in.)*** Error code 1Stop.
*** Error code 1
Stop.
etc

I haven't looked at it any further though.

---
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.990302172201.doconnor>