This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc cross compiler problem
Scott Phuong wrote:
> Hello gcc,
>
> I am running into a problem when I am trying to compile GCC to run on
> a i686-pc-linux-gnu (host) but to build source code for target,
> x86_64-pc-linux-gnu. I have build binutils first with the following
> configure parameters:
>
> configure --target=x86_64-pc-linux-gnu --prefix==mydirectoryforinstall.
>
> After I make and install binutils into my own directory, I build gcc
> using the following configure parameter:
>
> configure --prefix=mygccdirectoryfor install --enable-shared
> --enable-threads=posix --enable-checking=release --with-system-zlib
> --enable-__cxa_atexit --disable-libunwind-exceptions
> --enable-libgcj-multifile
> --enable-languages=c,c++,objc,obj-c++,fortran,ada --disable-dssi
> --enable-plugin --with-cpu=generic --host=x86_64-pc-linux-gnu
This is wrong: you just told us that the host is i686-pc-linux-gnu.
You're also going to need a set of x86_64-pc-linux-gnu libraries in
your sysroot.
Andrew.