Subject: Build of current stops at crtstuff3
To: None <port-amd64@NetBSD.org>
From: Torgny Lyon <torgny@abc.se>
List: port-amd64
Date: 03/20/2006 12:19:36
I have been trying to build a current system at a number of occasions 
during the last couple of weeks but failed every time for the same reason.

The procedure ive been following is:

* Updated the sources with cvs update -dP
* cd /usr/src/sys/arch/amd64/conf ; config GENERIC.MP &&
cd ../compile/GENERIC.MP && make depend && make && mv netbsd /
* rebooted the new kernel.
* cd /usr/src ; ./build.sh obj && ./build.sh tools
(im not sure if this is neccesary)
(the command "./build.sh -T /usr/tools -O /usr/obj" mentioned at 
http://www.netbsd.org/Documentation/current/#building-current obviously 
produced "build.sh: Missing operation to perform.")
* ./build.sh build

The last command always stops with:

#    create  crtstuff3/.depend
rm -f .depend
CC=/usr/src/obj/tooldir.NetBSD-3.99.17-x86_64/bin/x86_64--netbsd-gcc 
/usr/src/obj/tooldir.NetBSD-3.99.17-x86_64/bin/nbmkdep -d -f .depend -s 
.o\ .ln crtbegin.d crtbeginS.d crtbeginT.d crtend.d crtendS.d
/usr/src/obj/tooldir.NetBSD-3.99.17-x86_64/bin/x86_64--netbsd-gcc 
-I/usr/src/gnu/usr.bin/gcc3/arch/x86_64 -DIN_GCC 
-I/usr/src/gnu/dist/gcc/gcc -I/usr/src/gnu/dist/gcc/gcc/. 
-I/usr/src/gnu/dist/gcc/gcc/config 
-I/usr/src/gnu/dist/gcc/gcc/../include -I.  -nostdinc -isystem 
/usr/src/obj/destdir.amd64/usr/include  -c 
/usr/src/gnu/lib/crtstuff3/crtbegin.c -o crtbegin.o.o
In file included from /usr/src/gnu/lib/crtstuff3/crtbegin.c:9:
/usr/src/gnu/dist/gcc/gcc/crtstuff.c: In function `__do_global_dtors_aux':
/usr/src/gnu/dist/gcc/gcc/crtstuff.c:280: warning: passing arg 1 of 
`__deregister_frame_info' discards qualifiers from pointer target type
/usr/src/gnu/dist/gcc/gcc/crtstuff.c: In function `frame_dummy':
/usr/src/gnu/dist/gcc/gcc/crtstuff.c:316: warning: passing arg 1 of 
`__register_frame_info' discards qualifiers from pointer target type
/usr/src/gnu/lib/crtstuff3/crtbegin.c: At top level:
/usr/src/gnu/lib/crtstuff3/crtbegin.c:325: internal compiler error: in 
named_section_flags, at varasm.c:412
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.netbsd.org/Misc/send-pr.html> for instructions.

*** Failed target:  crtbegin.o
*** Failed command: 
/usr/src/obj/tooldir.NetBSD-3.99.17-x86_64/bin/x86_64--netbsd-gcc 
-I/usr/src/gnu/usr.bin/gcc3/arch/x86_64 -DIN_GCC 
-I/usr/src/gnu/dist/gcc/gcc -I/usr/src/gnu/dist/gcc/gcc/. 
-I/usr/src/gnu/dist/gcc/gcc/config 
-I/usr/src/gnu/dist/gcc/gcc/../include -I. -nostdinc -isystem 
/usr/src/obj/destdir.amd64/usr/include -c 
/usr/src/gnu/lib/crtstuff3/crtbegin.c -o crtbegin.o.o
*** Error code 1

Stop.
nbmake: stopped in /usr/src/gnu/lib/crtstuff3

*** Failed target:  dependall
*** Failed command: cd /usr/src/gnu/lib/crtstuff3; 
/usr/src/obj/tooldir.NetBSD-3.99.17-x86_64/bin/nbmake realall
*** Error code 1

Stop.
nbmake: stopped in /usr/src/gnu/lib/crtstuff3

*** Failed target:  do-gnu-lib-crtstuff3
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; 
shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; 
real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}" ;; esac; 
show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd 
"${real}" && /usr/src/obj/tooldir.NetBSD-3.99.17-x86_64/bin/nbmake 
_THISDIR_="${this}" "$@" ${target}; }; _makedirtarget gnu/lib/crtstuff3 
dependall
*** Error code 1

Stop.
nbmake: stopped in /usr/src

*** Failed target:  build
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; 
shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; 
real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}" ;; esac; 
show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd 
"${real}" && /usr/src/obj/tooldir.NetBSD-3.99.17-x86_64/bin/nbmake 
_THISDIR_="${this}" "$@" ${target}; }; _makedirtarget . do-gnu-lib-crtstuff3
*** Error code 1

Stop.
nbmake: stopped in /usr/src

ERROR: Failed to make build
*** BUILD ABORTED ***
#

My guess is that i am doing something wrong and any help is greatly 
appreciated. Btw, this is what uname -a produces:

NetBSD westring 3.99.17 NetBSD 3.99.17 (GENERIC.MP) #0: Mon Mar 20 
10:59:01 CET 2006 
torgny@westring:/usr/src/sys/arch/amd64/compile/GENERIC.MP amd64

-- 
Torgny Lyon