From owner-freebsd-current Mon Aug 7 16:05:35 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id QAA05791 for current-outgoing; Mon, 7 Aug 1995 16:05:35 -0700 Received: from forgery.CS.Berkeley.EDU (forgery.CS.Berkeley.EDU [128.32.33.75]) by freefall.cdrom.com (8.6.11/8.6.6) with ESMTP id QAA05785 for ; Mon, 7 Aug 1995 16:05:33 -0700 Received: (from asami@localhost) by forgery.CS.Berkeley.EDU (8.6.11/8.6.9) id QAA15984; Mon, 7 Aug 1995 16:05:58 -0700 Date: Mon, 7 Aug 1995 16:05:58 -0700 Message-Id: <199508072305.QAA15984@forgery.CS.Berkeley.EDU> To: current@freebsd.org Subject: /usr/lib/crt0.o: Undefined error: 0 From: asami@cs.berkeley.edu (Satoshi Asami) Sender: current-owner@freebsd.org Precedence: bulk What does "ld: /usr/lib/crt0.o: Undefined error: 0" mean? When I do a make world, it always dies in the "Rebuilding tools needed to build the libraries" section with this error. Sample script: ----------- ===> rtld rm -f .depend files="/y/b/src/gnu/usr.bin/ld/rtld/../i386/mdprologue.S"; if [ "$files" != "" ]; then mkdep -a -I/y/b/src/gnu/usr.bin/ld/rtld/.. -I/y/b/src/gnu/usr.bin/ld/rtld -I/y/b/src/gnu/usr.bin/ld/rtld/../i386 -DRTLD $files; fi files="/y/b/src/gnu/usr.bin/ld/rtld/rtld.c /y/b/src/gnu/usr.bin/ld/rtld/malloc.c /y/b/src/gnu/usr.bin/ld/rtld/../shlib.c /y/b/src/gnu/usr.bin/ld/rtld/../etc.c /y/b/src/gnu/usr.bin/ld/rtld/../i386/md.c"; if [ "$files" != "" ]; then mkdep -a -I/y/b/src/gnu/usr.bin/ld/rtld/.. -I/y/b/src/gnu/usr.bin/ld/rtld -I/y/b/src/gnu/usr.bin/ld/rtld/../i386 -DRTLD $files; fi files=" "; if [ "$files" != " " ]; then mkdep -a -I/y/b/src/gnu/usr.bin/ld/rtld/.. -I/y/b/src/gnu/usr.bin/ld/rtld -I/y/b/src/gnu/usr.bin/ld/rtld/../i386 -DRTLD $files; fi cc -O2 -m486 -pipe -I/y/b/src/gnu/usr.bin/ld -I/y/b/src/gnu/usr.bin/ld/i386 -c /y/b/src/gnu/usr.bin/ld/ld.c cc -O2 -m486 -pipe -I/y/b/src/gnu/usr.bin/ld -I/y/b/src/gnu/usr.bin/ld/i386 -c /y/b/src/gnu/usr.bin/ld/symbol.c cc -O2 -m486 -pipe -I/y/b/src/gnu/usr.bin/ld -I/y/b/src/gnu/usr.bin/ld/i386 -c /y/b/src/gnu/usr.bin/ld/lib.c cc -O2 -m486 -pipe -I/y/b/src/gnu/usr.bin/ld -I/y/b/src/gnu/usr.bin/ld/i386 -c /y/b/src/gnu/usr.bin/ld/shlib.c cc -O2 -m486 -pipe -I/y/b/src/gnu/usr.bin/ld -I/y/b/src/gnu/usr.bin/ld/i386 -c /y/b/src/gnu/usr.bin/ld/warnings.c cc -O2 -m486 -pipe -I/y/b/src/gnu/usr.bin/ld -I/y/b/src/gnu/usr.bin/ld/i386 -c /y/b/src/gnu/usr.bin/ld/etc.c cc -O2 -m486 -pipe -I/y/b/src/gnu/usr.bin/ld -I/y/b/src/gnu/usr.bin/ld/i386 -c /y/b/src/gnu/usr.bin/ld/rrs.c cc -O2 -m486 -pipe -I/y/b/src/gnu/usr.bin/ld -I/y/b/src/gnu/usr.bin/ld/i386 -c /y/b/src/gnu/usr.bin/ld/xbits.c cc -O2 -m486 -pipe -I/y/b/src/gnu/usr.bin/ld -I/y/b/src/gnu/usr.bin/ld/i386 -c /y/b/src/gnu/usr.bin/ld/i386/md.c cc -O2 -m486 -pipe -I/y/b/src/gnu/usr.bin/ld -I/y/b/src/gnu/usr.bin/ld/i386 -Xlinker -Bstatic -o ld ld.o symbol.o lib.o shlib.o warnings.o etc.o rrs.o xbits.o md.o -lgnumalloc ld: /usr/lib/crt0.o: Undefined error: 0 *** Error code 1 Stop. *** Error code 1 Stop. ----------- This is with a -current only a few hours old, but I've had this problem since last Thursday or so. If it matters, my first make world blew up because of the lib/libftp beforeinstall thing (since fixed). I read the mail about having to build secure/lib/libtelnet once by hand so I went into there and did a make depend all install. Well, the next world blew up again (for the reasons already well discussed), and since then, I get stuck every time it goes into building rtld. Actually, my memory is getting a little hazy around here, the manual building of secure/lib/libtelnt may have been after the second make world failure. I did try to rebuild crt0.o from csu/i386 and the whole lib/ subdirectory, it's still the same. If I remove ld from src/Makefile, it fails in ar with the exact same error. The strange thing is, if I do a "make depend all install cleandir obj" from the command line in one of these directories, it works (but it fails again at the next make world). Is there a special variable passed from src/Makefile to the submakes or something? Satoshi