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 ??? And

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

2010-11-11 Thread Coert Waagmeester
Enrico Weigelt wrote: * Coert Waagmeester lgro...@waagmeester.co.za 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

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

2010-11-10 Thread meino . cramer
Coert Waagmeester lgro...@waagmeester.co.za [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

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

2010-11-10 Thread Enrico Weigelt
* meino.cra...@gmx.de 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

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

2010-11-10 Thread Enrico Weigelt
* meino.cra...@gmx.de 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

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

2010-11-10 Thread Enrico Weigelt
* Coert Waagmeester lgro...@waagmeester.co.za 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 ?

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 --

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

2010-11-09 Thread Maciej Grela
2010/11/9 meino.cra...@gmx.de: 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() {}

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

2010-11-09 Thread meino . cramer
Jarry mr.ja...@gmail.com [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 meino . cramer
Maciej Grela maciej.gr...@gmail.com [10-11-09 18:40]: 2010/11/9 meino.cra...@gmx.de: 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

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

2010-11-09 Thread meino . cramer
Maciej Grela maciej.gr...@gmail.com [10-11-09 18:40]: 2010/11/9 meino.cra...@gmx.de: 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

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

2010-11-09 Thread Jacob Todd
Crosstools On Nov 9, 2010 12:39 PM, meino.cra...@gmx.de wrote: Jarry mr.ja...@gmail.com [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

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