This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
I have a problem building cross gcc 3.3.3
Here is what I have done:
../gcc-3.3.3/configure --target=sh-elf --prefix=/gcc_build/sh4 \ --enable-languages=c,c++ --with-newlib --without-headers \ --program-prefix=sh-elf- --disable-threads -v 2>&1 | tee configure.out
make all-gcc install-gcc 2>&1 | tee make.log
Here is the error I get:
In file included from embed-bb.c:40: ../../gcc-3.3.3/gcc/tsystem.h:72:19: stdio.h: No such file or directory ../../gcc-3.3.3/gcc/tsystem.h:75:23: sys/types.h: No such file or directory ../../gcc-3.3.3/gcc/tsystem.h:78:19: errno.h: No such file or directory embed-bb.c:1282:19: stdio.h: No such file or directory In file included from embed-bb.c:1284:
more references to standard lib headers follow...
My question is:
I did specify the "--without-headers" option, yet, gcc is still trying to use libc headers. What am I doing wrong?
I wouldn't know, since I haven't been building for newlib targets, but http://www.kegel.com/crosstool/current/contrib/newlib/crosstool-newlib.sh is rumored to work, and builds the bootstrap compiler like this:
${GCC_DIR}/configure --target=$TARGET --host=$HOST --prefix=$PREFIX \ --with-local-prefix=${PREFIX}/${TARGET} \ --disable-multilib \ --with-newlib \ ${GCC_EXTRA_CONFIG} \ --without-headers \ --disable-nls \ --enable-threads=no \ --enable-symvers=gnu \ --enable-languages=c \ --disable-shared \ --with-gnu-as \ --with-gnu-ld
Try using those options and see what happens... - Dan
-- My technical stuff: http://kegel.com My politics: see http://www.misleader.org for examples of why I'm for regime change
------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |