Subject: Build problems
To: None <port-alpha@netbsd.org>
From: Peter Eisch <peter@boku.net>
List: port-alpha
Date: 05/12/2004 11:07:16
This build results in the error noted just below:

===> build.sh command: /usr/src/build.sh -u -U -M /usr/peter/alpha/obj -m
alpha -D /usr/peter/alpha/dest -R /usr/peter/alpha/release -N 1 -T
/usr/peter/alpha/tools release
===> build.sh started: Wed May 12 04:51:45 CDT 2004
===> MACHINE:          alpha
===> MACHINE_ARCH:     alpha
===> TOOLDIR path:     /usr/peter/alpha/tools
===> DESTDIR path:     /usr/peter/alpha/dest
===> RELEASEDIR path:  /usr/peter/alpha/release
===> makewrapper:      /usr/peter/alpha/tools/bin/nbmake-alpha
===> Updated /usr/peter/alpha/tools/bin/nbmake-alpha
build ===> .    (with: NOPOSTINSTALL=1)
Build started at: Wed May 12 04:51:47 CDT 2004
check-tools ===> .
obj ===> .
obj ===> tools
obj ===> tools/host-mkdep

...
obj ===> distrib/alpha/instkernel/instkernel
obj ===> distrib/alpha/instkernel/fdset
obj ===> distrib/alpha/instkernel/cd-hd-tape
nbmake: don't know how to make obj. Stop

nbmake: stopped in /usr/src/distrib/alpha/instkernel/cd-hd-tape

*** Failed target:  obj-cd-hd-tape
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift;
case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .)
this="distrib/alpha/instkernel/"; real="/usr/src/distrib/alpha/instkernel"
;; *) this="distrib/alpha/instkernel/${dir}/";
real="/usr/src/distrib/alpha/instkernel/${dir}" ;; esac; show=${this:-.};
echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" &&
/usr/peter/alpha/tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; };
_makedirtarget cd-hd-tape obj
*** Error code 2
...


And if I change MKOBJDIRS to 'no' the build then fails:

===> build.sh command: /usr/src/build.sh -u -o -U -M /usr/peter/alpha/obj -m
alpha -D /usr/peter/alpha/dest -R /usr/peter/alpha/release -N 1 -T
/usr/peter/alpha/tools release
===> build.sh started: Wed May 12 04:55:14 CDT 2004
===> MACHINE:          alpha
===> MACHINE_ARCH:     alpha
===> TOOLDIR path:     /usr/peter/alpha/tools
===> DESTDIR path:     /usr/peter/alpha/dest
===> RELEASEDIR path:  /usr/peter/alpha/release
===> makewrapper:      /usr/peter/alpha/tools/bin/nbmake-alpha
===> Updated /usr/peter/alpha/tools/bin/nbmake-alpha
build ===> .    (with: NOPOSTINSTALL=1)
Build started at: Wed May 12 04:55:16 CDT 2004
check-tools ===> .
do-tools ===> .
dependall ===> tools
...
dependall ===> lib/csu/alpha
     create  alpha/crt0.d
     create  alpha/crtbegin.d
     create  alpha/crtbeginS.d
     create  alpha/crtend.d
     create  alpha/crtendS.d
     create  alpha/crti.d
     create  alpha/crtn.d
     create  alpha/.depend
/usr/peter/alpha/tools/bin/alpha--netbsd-gcc -O2 -fPIC  -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare
-Wno-traditional -Wno-uninitialized -Wreturn-type -Wswitch -Wshadow  -Werror
-mieee   -I- -I/usr/src/lib/csu/alpha -DLIBC_SCCS -DPIC -DDYNAMIC
-DELFSIZE=64 -I/usr/src/libexec/ld.elf_so
-I/usr/src/lib/csu/alpha/../common_elf -I/usr/src/lib/libc/dlfcn -DDWARF2_EH
-DJCR -DDSO_HANDLE  -nostdinc -isystem /usr/peter/alpha/dest/usr/include  -c
-DCRT0 /usr/src/lib/csu/alpha/crt0.c -o /usr/src/lib/csu/alpha/crt0.o
Assembler messages:
FATAL: can't create /usr/src/lib/csu/alpha/crt0.o.o: Permission denied

*** Failed target:  crt0.o
*** Failed command: /usr/peter/alpha/tools/bin/alpha--netbsd-gcc -O2 -fPIC
-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wno-sign-compare -Wno-traditional -Wno-uninitialized -Wreturn-type -Wswitch
-Wshadow -Werror -mieee -I- -I/usr/src/lib/csu/alpha -DLIBC_SCCS -DPIC
-DDYNAMIC -DELFSIZE=64 -I/usr/src/libexec/ld.elf_so
-I/usr/src/lib/csu/alpha/../common_elf -I/usr/src/lib/libc/dlfcn -DDWARF2_EH
-DJCR -DDSO_HANDLE -nostdinc -isystem /usr/peter/alpha/dest/usr/include -c
-DCRT0 /usr/src/lib/csu/alpha/crt0.c -o /usr/src/lib/csu/alpha/crt0.o.o
*** Error code 1
...


Should I be able to build outside the source tree?

Thanks,

peter