Re: How to build a 64-bit gcc on a hybrid 32-bit/64-bit (Intel) GNU/Linux system

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

 



On 10 March 2017 at 17:56, David Madore wrote:
> Dear list,
>
> I have a system running Debian GNU/Linux 8.7 (stable/jessie) on Intel
> hardware that is capable of executing both 32-bit (=i686) and 64-bit
> (=x86_64) code; it has a 64-bit kernel and a mostly 32-bit userland
> (default personality is i686), but a number of additional 64-bit
> libraries (runtime and development) are installed.  The system gcc and
> binutils are 32-bit binaries but are capable of compiling 64-bit code
> with the -m64 switch (and the binaries will then run successfully).
>
> I would like to use this system to compile a 64-bit binary of
> gcc-4.9.4 (it should be able to compile both 32-bit and 64-bit code,
> defaulting to 64-bit).  Ideally, this gcc should be essentially
> identical to a version compiled, and fully bootstrapped, with the
> default options, on a 64-bit Debian system (having the same packages).
>
> What would be the correct way to achieve this?

Can you install a 64-bit binutils first? Configure it with the same
--prefix as you intend to use for the new GCC and install it. GCC
should pick that up automatically when you configure it.

You should also be able to disable the use of any linker plugins, but
that shouldn't be necessary



[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