Subject: Re: Another build.sh failure
To: Todd Vierling <tv@wasabisystems.com>
From: Paul Goyette <paul@whooppee.com>
List: current-users
Date: 11/02/2001 07:48:02
OK, just tried it again.  I must've messed up my typing last night,
because this time it handled ``-D ~/newroot'' just fine.

First, I completely deleted my object directories, as well as the target
DESTDIR.  I also removed NBUILDJOBS from my /etc/mk.conf file.  I also
deleted all of my tools, since TOOLSDIR just happens to point at
/usr/obj/tools and I had removed everything under /usr/obj!

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/src/lib/csu/i386_elf -DLIBC_SCCS -DPIC -DDYNAMIC -DELFSIZE=32 -I/usr/src/lib/csu/i386_elf/../../../libexec/ld.elf_so -I/usr/src/lib/csu/i386_elf/../common_elf -I/usr/src/lib/csu/i386_elf/../../libc/dlfcn -DDWARF2_EH   -nostdinc -idirafter /usr/home/paul/newroot/usr/include -c /usr/src/lib/csu/i386_elf/../common_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

nbmake: stopped in /usr/src/lib/csu/i386_elf
*** Error code 2

Stop.
nbmake: stopped in /usr/src/lib/csu
*** Error code 1
1 error

nbmake: stopped in /usr/src
*** Error code 2

Stop.
nbmake: stopped in /usr/src

On Fri, 2 Nov 2001, Todd Vierling wrote:

> You can't use "~" in the setting for -D.  If you want that, and your shell
> expands ~, you need to put a space between -D and the ~ so the shell will
> expand it.
>
> Also, -j no longer overrides mk.conf; mk.conf overrides build.sh commandline
> options.  This is because the command line options to build.sh set the
> environment, rather than the make(1) command line, upon reqauest of several
> users.

----------------------------------------------------------------------
|   Paul Goyette   | PGP DSS Key fingerprint: |  E-mail addresses:   |
| Network Engineer | BCD7 5301 9513 58A6 0DBC |  paul@whooppee.com   |
|  & World Cruiser | 91EB ADB1 A280 3B79 9221 | pgoyette@juniper.net |
----------------------------------------------------------------------