Re: x32_64 cross compiler

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

 



To build a cross compiler, you need a complete toolchain that targets
the environment that interests you.  In your case, you need to build
binutils with --target=x86_64-pc-linux, then a basic gcc (do make
all-gcc and make install-gcc), then a complete glibc using the basic
gcc you just build (when building the libc, target becomes host, host
becomes build, and build goes away).  Make and install that after
placing the basic gcc first in your PATH.  Then go back to the basic
gcc and do a full make / install.

That's the quick and dirty outline method.

On Nov 10, 2007 7:35 AM, Diego . <eljedi@xxxxxxxxx> wrote:
> Hello!!
>
> I'm triying to build a cross compiler for x32_64. I want to be able to
> build 64bits files from my 32bits linux machine.
>
> The problem i got now is some error, i tried some differents flags on
> configure. One of them is:  --target=x86_64-pc-linux-gnu , is it well?
> or the parameter should be another combination of the triplets?
>
> Thanks,
> Diego.
>

[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