Subject: cross-building gcc4 fails
To: None <tech-toolchain@netbsd.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-toolchain
Date: 06/24/2006 20:34:41
Hi,
attemting to build a i386 release from OS X fails in gcc. The full log is
available at ftp://asim.lip6.fr/outgoing/build-i386.log, but basically
the issue is:
#   compile  backend/ggc-none.lo
cc -O3 -mtune=G5 -mcpu=G5 -I. -I/Volumes/data/bouyer/current/src/gnu/usr.bin/gcc4/backend/../arch/i386 -DIN_GCC -DHAVE_CONFIG_H -I/Volumes/data/bouyer/current/src/gnu/dist/gcc4/gcc -I/Volumes/data/bouyer/current/src/gnu/dist/gcc4/gcc/. -I/Volumes/data/bouyer/current/src/gnu/dist/gcc4/gcc/../include -I/Volumes/data/bouyer/current/src/gnu/dist/gcc4/gcc/../libcpp/include -I/Volumes/data/bouyer/current/src/gnu/usr.bin/gcc4/backend/.. -c -o ggc-none.lo.o    /Volumes/data/bouyer/current/src/gnu/dist/gcc4/gcc/ggc-none.c
In file included from /Volumes/data/bouyer/current/src/gnu/dist/gcc4/gcc/ggc-none.c:32:
/Volumes/data/bouyer/current/src/gnu/dist/gcc4/gcc/system.h:396:20: malloc.h: No such file or directory
*** [ggc-none.lo] Error code 1
1 error

nbmake: stopped in /Volumes/data/bouyer/current/src/gnu/usr.bin/gcc4/backend
*** [dependall-backend] Error code 2
1 error

nbmake: stopped in /Volumes/data/bouyer/current/src/gnu/usr.bin/gcc4


As you can see it's using HOST_CC here, when is should be using the cross
toolchain (building the cross-compiler has been done at this point, we're
building the gcc binaries part of the comps.tgz set)

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--