Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

cross compiling for emt64 on ia32 linux platforms

poz
Beginner
328 Views

I am moving to emt64 systems, but have an ia32 compute farm. I would like to
use the ia32 resources that I have in order to do compiles for the emt64
systems that are being added.

Is there a "recipe" for doing such cross compiles for the Intel C and Fortran
compilers? How about for gcc?

Thanks..

Dan..
0 Kudos
1 Reply
TimP
Honored Contributor III
328 Views
I will guess that you are talking about the linux compilers, as the Windows version of this is supposed to work "out of the box."
You would need to make an x86-64 installation of gcc/g++ cross compiler, and make that the active g++ where you install and run the corresponding icc/icpc and ifort. I guess gcc 4.1 would be a reasonable choice. You will need to make a cross gnu binutils (as, ld, et al) and place the same glibc and gcc/g++ x86-64 libraries and headers on both your build and run systems. Several people have built g++ this way, but you will have to research how it's done. You probably don't want to try this until you have learned how to build a standard g++. You should find gcc cross compiler build instructions in a web search. Web pages under gcc.gnu.org would be the most authoritative. I don't think you'll find a pre-built version.
If the Intel em64t compilers refuse to install normally in such an environment, you still have chances. As the Intel compilers are 32-bit applications, in principle it should be possible to copy the em64t compilers (9.1 or 10.0) over to a 32-bit system, after installing on 64-bit.
I doubt the Intel compilers have been tested in a 32- to 64-bit cross compilation situation, and I would be concerned about reliability and lack of bug fixes.
0 Kudos
Reply