Unable to cross-compile netbsd

BERTRAND Joël <[email protected]>
Newsgroups gmane.os.netbsd.ports.sparc64
Message-ID <[email protected]>
	Hello,

	I'm not sure that it is sparc64 specific but for a few days, I'm unable 
to crosscompile netbsd sparc64. build.sh tools crashes with following 
error :

cc -DHAVE_CONFIG_H -I. 
-I/home/bertrand/netbsd/src/tools/binutils/../../external/gpl3/binutils/dist/binutils 
  -I. 
-I/home/bertrand/netbsd/src/tools/binutils/../../external/gpl3/binutils/dist/binutils 
-I../bfd 
-I/home/bertrand/netbsd/src/tools/binutils/../../external/gpl3/binutils/dist/binutils/../bfd 
-I/home/bertrand/netbsd/src/tools/binutils/../../external/gpl3/binutils/dist/binutils/../include 
    -DLOCALEDIR="\"/home/bertrand/netbsd/src/../tools/share/locale\"" 
-Dbin_dummy_emulation=bin_vanilla_emulation   -W -Wall 
-Wstrict-prototypes -Wmissing-prototypes -Wshadow -O -c `test -f 
arparse.c || echo 
/home/bertrand/netbsd/src/tools/binutils/../../external/gpl3/binutils/dist/binutils/`arparse.c 

In file included from 
/home/bertrand/netbsd/src/tools/binutils/../../external/gpl3/binutils/dist/binutils/../include/alloca-conf.h:1:0,
                  from 
/home/bertrand/netbsd/src/tools/binutils/../../external/gpl3/binutils/dist/binutils/sysdep.h:25,
                  from 
/home/bertrand/netbsd/src/external/gpl3/binutils/dist/binutils/arparse.y:30:
./config.h:7:4: error: #error config.h must be #included before system 
headers
  #  error config.h must be #included before system headers
     ^

*** Failed target:  arparse.o

	Host system is a Linux debian/testing up to date. The same source tree 
can be built without error by a virtualized NetBSD 6.0 (amd64).

	Regards,

	JKB
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.