Subject: Re: NetBSD crosscompilation build failed on linux host
To: Juraj Hercek <nbsd@hck.sk>
From: Zafer Aydogan <zafer@aydogan.de>
List: current-users
Date: 09/15/2006 16:28:13
that's weird. I'm crosscompiling -current every day.
Todays build was successful.
...
Successful make release
         build.sh started: Fri Sep 15 01:36:04 CEST 2006
         build.sh ended:   Fri Sep 15 03:42:28 CEST 2006
===> .

2006/9/15, Juraj Hercek <nbsd@hck.sk>:
> 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
>
>
> $ ./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
>
>
>
>