This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/11894] gcc cross compiler work with error
- From: "drow at mvista dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Aug 2003 16:16:48 -0000
- Subject: [Bug bootstrap/11894] gcc cross compiler work with error
- References: <20030812130534.11894.lshulov@arabellasw.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11894
------- Additional Comments From drow at mvista dot com 2003-08-18 16:16 -------
Subject: Re: New: gcc cross compiler work with error
On Tue, Aug 12, 2003 at 01:05:40PM -0000, lshulov at arabellasw dot com wrote:
> gcc step2:
> /home/GNU/gcc-3.3/configure \
> --target=powerpc-linux --prefix=/opt/Arabella --enable-languages=c,c++ \
> --enable-threads=posix --with-headers=/home/GNU/glibc-2.3.2/glibc-2.3.2/include \
> --with-ghu-as --with-gnu-ld
> make
Glibc's include directory is not the right headers. Those are not even
public headers, they're internal to glibc.
You have to extract headers from glibc (using install-headers) and then
point --with-headers at that.
--with-sysroot is better but not available in 3.3.