This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc cross compiler problem


Hi Andrew,

Which libraries do I need? Thanks for your help.

Best Regards,

Scott

On Tue, Apr 29, 2008 at 1:53 AM, Scott Phuong <mycleanjunk@gmail.com> wrote:
> Hi Andrew,
>
>  Sorry, that was a typo on my part. The "--host" should be replaced
>  with "--target" in the configure line for gcc.
>
>  Scott
>
>
>
>  On Tue, Apr 29, 2008 at 1:51 AM, Andrew Haley <aph@redhat.com> wrote:
>  > 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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]