Re: [gentoo-user] 32bit-Executables on a AMD64 system...

2010-12-30 Thread Enrico Weigelt
* Coert Waagmeester wrote: > >The _target_ kernel has to support the IA32 ABI. The host (building) > >might be better off w/o it (better detection of build errors). > > How would this work exactly? > 64 bit only installation with a 32 bit crossdev installation? Not sure on how gentoo builds the c

Re: [gentoo-user] 32bit-Executables on a AMD64 system...

2010-11-12 Thread Volker Armin Hemmann
On Tuesday 09 November 2010, meino.cra...@gmx.de wrote: > Hi, > > it is possible to run a 32-bit binary executable on a 64-bit system > (AMD64). yes, if you use the multilib profile. > But: Is it possible to compile source code on a 64-bit system and get > an 32-bit executable a the result ???

Re: [gentoo-user] 32bit-Executables on a AMD64 system...

2010-11-11 Thread Coert Waagmeester
Enrico Weigelt wrote: * Coert Waagmeester wrote: My setup is one 32bit pc with gentoo and another 64bit pc with gentoo I managed to get this going on the 64bit with a 32-bit chroot, distcc, and crosstools Why do you need an 32bit chroot if you're going to use an crosscompiler anyways ? Yo

Re: [gentoo-user] 32bit-Executables on a AMD64 system...

2010-11-10 Thread Enrico Weigelt
* Coert Waagmeester wrote: > My setup is one 32bit pc with gentoo and another 64bit pc with gentoo > > I managed to get this going on the 64bit with a 32-bit chroot, distcc, > and crosstools Why do you need an 32bit chroot if you're going to use an crosscompiler anyways ? > Just make sure you

Re: [gentoo-user] 32bit-Executables on a AMD64 system...

2010-11-10 Thread Enrico Weigelt
* meino.cra...@gmx.de wrote: > > gr...@kraken ~ $ gcc -o a.out.64 test.c > > gr...@kraken ~ $ gcc -m32 -o a.out.32 test.c > > gr...@kraken ~ $ file a.out.* > > a.out.32: ELF 32-bit LSB executable, Intel 80386, version 1 > > (GNU/Linux), dynamically linked (uses shared libs), for GNU/Linux > > 2.6

Re: [gentoo-user] 32bit-Executables on a AMD64 system...

2010-11-10 Thread Enrico Weigelt
* meino.cra...@gmx.de wrote: > Is there a toolchain already setup for cross-compiling 32-bit > executables on a AMD64 system, or do I have to do all that cross- > compiling magic by myself ? crosstool-ng If you want a build system for crosscompiling, you might like to look at Briegel. cu --

Re: [gentoo-user] 32bit-Executables on a AMD64 system...

2010-11-10 Thread meino . cramer
Coert Waagmeester [10-11-10 18:40]: > meino.cra...@gmx.de wrote: > >Hi, > >it is possible to run a 32-bit binary executable on a 64-bit system > >(AMD64). > >But: Is it possible to compile source code on a 64-bit system and get > >an 32-bit executable a the result ??? And if 'yes'...how??? > >Than

Re: [gentoo-user] 32bit-Executables on a AMD64 system...

2010-11-09 Thread Coert Waagmeester
meino.cra...@gmx.de wrote: Hi, it is possible to run a 32-bit binary executable on a 64-bit system (AMD64). But: Is it possible to compile source code on a 64-bit system and get an 32-bit executable a the result ??? And if 'yes'...how??? Thank you very much for any help in advance! Best rega

Re: [gentoo-user] 32bit-Executables on a AMD64 system...

2010-11-09 Thread Jacob Todd
Crosstools On Nov 9, 2010 12:39 PM, wrote: > Jarry [10-11-09 18:36]: >> On 9. 11. 2010 18:25, meino.cra...@gmx.de wrote: >> >> >But: Is it possible to compile source code on a 64-bit system and get >> >an 32-bit executable a the result ??? And if 'yes'...how??? >> >> I think that is what "cross-c

Re: [gentoo-user] 32bit-Executables on a AMD64 system...

2010-11-09 Thread meino . cramer
Maciej Grela [10-11-09 18:40]: > 2010/11/9 : > > Hi, > > > > it is possible to run a 32-bit binary executable on a 64-bit system > > (AMD64). > > > > > > But: Is it possible to compile source code on a 64-bit system and get > > an 32-bit executable a the result ??? And if 'yes'...how??? > > > >

Re: [gentoo-user] 32bit-Executables on a AMD64 system...

2010-11-09 Thread meino . cramer
Maciej Grela [10-11-09 18:40]: > 2010/11/9 : > > Hi, > > > > it is possible to run a 32-bit binary executable on a 64-bit system > > (AMD64). > > > > > > But: Is it possible to compile source code on a 64-bit system and get > > an 32-bit executable a the result ??? And if 'yes'...how??? > > > >

Re: [gentoo-user] 32bit-Executables on a AMD64 system...

2010-11-09 Thread meino . cramer
Jarry [10-11-09 18:36]: > On 9. 11. 2010 18:25, meino.cra...@gmx.de wrote: > > >But: Is it possible to compile source code on a 64-bit system and get > >an 32-bit executable a the result ??? And if 'yes'...how??? > > I think that is what "cross-compilation" is good for... > > Jarry > > -- > _

Re: [gentoo-user] 32bit-Executables on a AMD64 system...

2010-11-09 Thread Maciej Grela
2010/11/9 : > Hi, > > it is possible to run a 32-bit binary executable on a 64-bit system > (AMD64). > > > But: Is it possible to compile source code on a 64-bit system and get > an 32-bit executable a the result ??? And if 'yes'...how??? > gr...@kraken ~ $ cat test.c void main() {} gr...@kraken

Re: [gentoo-user] 32bit-Executables on a AMD64 system...

2010-11-09 Thread Jarry
On 9. 11. 2010 18:25, meino.cra...@gmx.de wrote: But: Is it possible to compile source code on a 64-bit system and get an 32-bit executable a the result ??? And if 'yes'...how??? I think that is what "cross-compilation" is good for... Jarry --

[gentoo-user] 32bit-Executables on a AMD64 system...

2010-11-09 Thread meino . cramer
Hi, it is possible to run a 32-bit binary executable on a 64-bit system (AMD64). But: Is it possible to compile source code on a 64-bit system and get an 32-bit executable a the result ??? And if 'yes'...how??? Thank you very much for any help in advance! Best regards, mcc