Re: gcc cross compiler problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux