problem compiling crosschain

Robert Schwebel
Wed Sep 25 22:13:00 GMT 2002


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. 

# cpp0 -v
GNU CPP version 2.95.3 20010315 (release) (ARM GNU/Linux with ELF)
#include "..." search starts here:
#include <...> search starts here:
End of search list.
The following default directories have been omitted from the search path:
End of omitted list.

I would think that the paths should be something like 


The compiler was configured with 

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 \

I suppose there should be less "--with-headers=" lines, but that was the
only way I could make it actually compile...

 Dipl.-Ing. Robert Schwebel |
 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,
Want to unsubscribe? Send a note to

More information about the crossgcc mailing list