Problems crosscompiling 3.3.1 (CVS branch) from i386-linux to i686-pc-linux-gnu

Daniel Jacobowitz drow@mvista.com
Sun Jun 8 04:15:00 GMT 2003


On Sun, Jun 08, 2003 at 01:32:52AM +0100, Liviu Dudau wrote:
> Trying --with-sysroot=/opt/temp/build/cross/i686-pc-linux-gnu/include 
> (where the linux, asm and asm-i386 directories reside) does not change 
> the error. I can provide full logs on request.

Do you want to use the headers on your system or a separate copy?  If
the latter, (a) you need to have glibc's headers there, not just the
kernel; (b) you need to point sysroot at a directory which contains
"./usr/include".

> Now the questions:
> 
> 1) which version of signal.h is gcc trying to find here? Looking at my 
> Debian system, there is a /usr/include/signal.h coming from glibc, and a 
> /usr/include/linux/signal.h coming from the kernel. If it is the linux 
> version, why not use the <linux/signal.h> in the i386/linux.h file?

The glbc version.

> 2) what do I do wrong here? Am I missleaded? Any hints will be gladly 
> appreciated.
> 
> 3) why doesn't the configuration step for stage1 obey the 
> --with-sysinclude option?

It's not an include path, it's a system root path.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



More information about the Gcc mailing list