Subject: Re: Another build.sh failure
To: None <paul@whooppee.com>
From: Chris Jepeway <jepeway@blasted-heath.com>
List: current-users
Date: 11/02/2001 11:46:36
> Then I ran ``./build.sh -j1 -D ~/newroot'' and got the following:
> 
> /usr/tools/obj.i386/bin/i386--netbsdelf-gcc -O2 -fPIC -Werror   -I- -I/usr/sr
> c/lib/csu/i386_elf -DLIBC_SCCS -DPIC -DDYNAMIC -DELFSIZE=32 -I/usr/src/lib/cs
> u/i386_elf/../../../libexec/ld.elf_so -I/usr/src/lib/csu/i386_elf/../common_e
> lf -I/usr/src/lib/csu/i386_elf/../../libc/dlfcn -DDWARF2_EH   -nostdinc -idir
> after /usr/home/paul/newroot/usr/include -c /usr/src/lib/csu/i386_elf/../comm
> on_elf/crtend.c -o crtend.o
> cd /usr/src/lib/csu &&  /usr/tools/obj.i386/bin/nbmake -j1 MKSHARE=no MKLINT=
> no install install
> ===> i386_elf
> /usr/home/paul/newroot/usr/lib/crtbeginS.o -> /usr/home/paul/newroot/usr/lib/
> crtbegin.o
> ln: /usr/home/paul/newroot/usr/lib/crtbegin.o: No such file or directory
> *** Error code 1
> 
> Stop.
> nbmake: stopped in /usr/src/lib/csu/i386_elf/obj.i386
> *** Error code 1
> 1 error
This is because <bsd.links.mk> doesn't quite work when using
-j with any setting, even -j1.  I bumped into this problem
and came up w/ 2 workarounds.  If you must use -j1, be sure
you somehow also use the -B flag.  That, or you can try the last
patch in PR misc/14378, which has worked for me with -j1, -j2 and -j4.

> Paul Goyette
Chris <jepeway@blasted-heath.com>.