Building GCC 4.9 biarch (i686+x86_64) on Debian 6.0 i686

Alex Blekhman a.tinsmith@gmail.com
Wed Mar 18 22:40:00 GMT 2015


Kai Ruottu <kai.ruottu <at> wippies.com> writes:

> I think that the 32-bit Linux distros don't support
> "native" compiling to 64-bit at all because one
> cannot run the 64-bit binaries on 32-bit hosts.

They actually do. I have Linux Mint 17 i386 (Ubuntu 14.04) on other 
machine and all I needed to do is to install 
GCC 4.9.2 + multilib packages. Now I can successfully build 64-bit 
binaries by using `-m64' switch. I cannot run 
them on the machine, of course, but building is OK.

Alex



More information about the Gcc-help mailing list