Subject: NetBSD crosscompilation build failed on linux host
To: None <current-users@NetBSD.org>
From: Juraj Hercek <nbsd@hck.sk>
List: current-users
Date: 09/15/2006 16:11:16
This is a multi-part message in MIME format.
--------------000801090702020001090105
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Hello,
I was unable to crosscompile NetBSD distribution on linux host
(archlinux distribution). It fails when building tools, gcc4, libiberty
library. Attached is the relevant part of build log.
-- Juraj
--------------000801090702020001090105
Content-Type: text/plain;
name="nbsd_build_log.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="nbsd_build_log.txt"
$ ./build.sh -m i386 -T ../tools -O ../obj -u -U tools
...
nbgmake[1]: Entering directory `/home/nbsd/work/netbsd/obj/tools/gcc/build/libiberty'
if [ x"" != x ]; then \
cc -c -DHAVE_CONFIG_H -O -I. -I/home/nbsd/work/netbsd/src/tools/gcc/../../gnu/dist/gcc4/libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes /home/nbsd/work/netbsd/src/tools/gcc/../../gnu/dist/gcc4/libiberty/cplus-dem.c -o pic/cplus-dem.o; \
else true; fi
cc -c -DHAVE_CONFIG_H -O -I. -I/home/nbsd/work/netbsd/src/tools/gcc/../../gnu/dist/gcc4/libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes /home/nbsd/work/netbsd/src/tools/gcc/../../gnu/dist/gcc4/libiberty/cplus-dem.c -o cplus-dem.o
Use of uninitialized value in concatenation (.) or string at /bin/cc line 183.
/home/nbsd/work/netbsd/src/tools/gcc/../../gnu/dist/gcc4/libiberty/cplus-dem.c:55: warning: function declaration isn't a prototype
/home/nbsd/work/netbsd/src/tools/gcc/../../gnu/dist/gcc4/libiberty/cplus-dem.c:55: error: conflicting types for 'malloc'
/home/nbsd/work/netbsd/src/tools/gcc/../../gnu/dist/gcc4/libiberty/cplus-dem.c:56: warning: function declaration isn't a prototype
/home/nbsd/work/netbsd/src/tools/gcc/../../gnu/dist/gcc4/libiberty/cplus-dem.c: In function 'code_for_qualifier':
/home/nbsd/work/netbsd/src/tools/gcc/../../gnu/dist/gcc4/libiberty/cplus-dem.c:582: warning: implicit declaration of function 'abort'
/home/nbsd/work/netbsd/src/tools/gcc/../../gnu/dist/gcc4/libiberty/cplus-dem.c:582: warning: incompatible implicit declaration of built-in function 'abort'
/home/nbsd/work/netbsd/src/tools/gcc/../../gnu/dist/gcc4/libiberty/cplus-dem.c: In function 'qualifier_string':
/home/nbsd/work/netbsd/src/tools/gcc/../../gnu/dist/gcc4/libiberty/cplus-dem.c:622: warning: incompatible implicit declaration of built-in function 'abort'
/home/nbsd/work/netbsd/src/tools/gcc/../../gnu/dist/gcc4/libiberty/cplus-dem.c: In function 'squangle_mop_up':
/home/nbsd/work/netbsd/src/tools/gcc/../../gnu/dist/gcc4/libiberty/cplus-dem.c:1082: warning: implicit declaration of function 'free'
/home/nbsd/work/netbsd/src/tools/gcc/../../gnu/dist/gcc4/libiberty/cplus-dem.c: In function 'demangle_qualified':
/home/nbsd/work/netbsd/src/tools/gcc/../../gnu/dist/gcc4/libiberty/cplus-dem.c:3177: warning: implicit declaration of function 'atoi'
nbgmake[1]: *** [cplus-dem.o] Error 1
--------------000801090702020001090105--