From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Neuhauser To: law@cygnus.com Cc: egcs@cygnus.com Subject: Re: --with-headers for cross-compile broken? (egcs-971201) Date: Wed, 03 Dec 1997 03:30:00 -0000 Message-id: <199712031110.MAA13120@scully.gams.co.at> References: <3893.881090739@cygnus.com> X-SW-Source: 1997-12/msg00168.html In message < 3893.881090739@cygnus.com >, Jeffrey A Law writes: > In message < 199712021615.RAA11779@scully.gams.co.at >you write: > > > I'm trying to build a powerpc-unknown-linux-gnulibc2 targeted > > cross compiler on an i686-pc-linux-gnulibc1 host. I've got > > problems with the target header files. > > > > I'm using bintuls-2.8.1.0.17 (binutils and egcs are built > > together) and egcs-971201 (egcs-971122 shows same behaviour). The > > following sets up the build directory and does the build: > > Hmmm, the include search path didn't look correct. > > The first thing I would do is make sure CROSS_COMPILE is being defined > when building cccp.c. > > Jeff CROSS_COMPILE is defined. I tracked the problem down now, egcs-971201/configure.in and egcs-971201/gcc/Makefile.in don't agree on the location for the cross headers: configure (see egcs-971201/configure.in) copies the headers to ${prefix}/${target_alias}/sys-include while egcs-971201/gcc/Makefile.in defines CROSS_INCLUDE_DIR to be $(libsubdir)/sys-include with libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(version) So these two directories are clearly different, but which one is the right one? -- Michael Neuhauser Phone: +43(1)8958499/17 g.a.m.s. edv-dienstleistungen gmbh Fax: +43(1)8958499/60 Stiegergasse 15-17/8 Email: mike@gams.at A-1150 Vienna/Austria/Europe