This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: --with-headers for cross-compile broken? (egcs-971201)
- To: law at cygnus dot com
- Subject: Re: --with-headers for cross-compile broken? (egcs-971201)
- From: Mike Neuhauser <mike at gams dot co dot at>
- Date: Wed, 03 Dec 1997 12:10:01 +0100
- cc: egcs at cygnus dot com
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