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] |
Hi, I have problems compiling a crosschain for ARM. My gcc stage 2 compiler's cpp0 seems to have the wrong include paths compiled in. The symptom is that when I try to compile a program which uses sys/param.h the compiler doesn't find it. ----------8<---------- # cpp0 -v GNU CPP version 2.95.3 20010315 (release) (ARM GNU/Linux with ELF) #include "..." search starts here: #include <...> search starts here: /home/robert/embedded/ptxdist-0.3.3/arm-linux/lib/gcc-lib/arm-linux/2.95.3/include /home/robert/embedded/ptxdist-0.3.3/arm-linux/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include /home/robert/embedded/ptxdist-0.3.3/arm-linux/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include End of search list. The following default directories have been omitted from the search path: /home/robert/embedded/ptxdist-0.3.3/arm-linux/lib/gcc-lib/arm-linux/2.95.3/../../../../include/g++-3 End of omitted list. ----------8<---------- I would think that the paths should be something like /home/robert/embedded/ptxdist-0.3.3/arm-linux/lib/gcc-lib/arm-linux/2.95.3/include /home/robert/embedded/ptxdist-0.3.3/arm-linux/include The compiler was configured with ----------8<---------- PATH=$PATH:"/home/robert/embedded/ptxdist-0.3.3/arm-linux"/bin \ AR=arm-linux-ar \ RANLIB=arm-linux-ranlib \ CC=gcc \ /home/robert/embedded/ptxdist-0.3.3/build/gcc-2.95.3/configure \ --target=arm-linux \ --prefix="/home/robert/embedded/ptxdist-0.3.3/arm-linux" \ --enable-target-optspace \ --disable-nls \ --with-gnu-ld \ --disable-shared \ --enable-languages="c" \ --with-headers=/home/robert/embedded/ptxdist-0.3.3/build/linux-2.4.18/include \ --with-headers="/home/robert/embedded/ptxdist-0.3.3/arm-linux"/include \ --with-libs="/home/robert/embedded/ptxdist-0.3.3/arm-linux"/lib ----------8<---------- I suppose there should be less "--with-headers=" lines, but that was the only way I could make it actually compile... Robert -- Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de Pengutronix - Linux Solutions for Science and Industry Braunschweiger Str. 79, 31134 Hildesheim, Germany Handelsregister: Amtsgericht Hildesheim, HRA 2686 Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4 ------ 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] |