Skip to contentSkip to conversation

32 bit application on IA-64 Linux

DISCUSSION Srikanta R 4 participants 7 messages Apr 12, 2004 – Apr 15, 2004

lore
Share & tools
lore

Srikanta R

author
#0 lore raw

Hi,

I need to compile a 32 bit application on a IA-64 Linux system, that will run on IA-64 system. I didn't find any such option for the compiler on IA-64 Linux system. Can someone suggest how can I get this done ?

Thanks,
Srikanta.

__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

#1 lore raw
Quoted 6 lines · Srikanta R

Hi,

I need to compile a 32 bit application on a IA-64 Linux system, that will run on IA-64 system. I didn't find any such option for the compiler on IA-64 Linux system. Can someone suggest how can I get this done ?

AFAIK, only HPUX supports a 32-bit ia64 environment with the HPUX compiler/toolchain.

Either build it on an ia32 system and install the ia32 compat libs on the ia64 machines (poor performance) or try to build the application as a native 64-bit application (better performance).

Sorry, but the obvious question is If you really only need 32-bit, why not run it on a fast ia32 machine?

I know a few other reasons one might port to ia64 besides 64-bit but would like to hear your reasons.

grant

#2 lore raw
In reply to Srikanta R
Quoted 6 lines · Srikanta R

Hi,

I need to compile a 32 bit application on a IA-64 Linux system, that will run on IA-64 system. I didn't find any such option for the compiler on IA-64 Linux system. Can someone suggest how can I get this done ?

You can install a 32 bit toolchain (compiler + binutils) into /emul/ia32-linux and do this.

-Arun

author
#3 lore raw
In reply to Srikanta R

Hi Arun,

Thanks for the information. Can you please tell me where I can get it from ?

Thanks,
Srikanta

Quoted 8 lines · --- Arun Sharma
Quoted 4 lines · Srikanta R

Hi,

I need to compile a 32 bit application on a IA-64
Linux system, that will run on IA-64 system. I

didn't

Quoted 1 line

find any such option for the compiler on IA-64

Quoted 9 lines

Linux

Quoted 1 line

system. Can someone suggest how can I get this

done ?

You can install a 32 bit toolchain (compiler +
binutils) into /emul/ia32-linux and do this.

-Arun

__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

#4 lore raw
In reply to Srikanta R
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Srikanta" = Srikanta R <Srikanta> writes:

Srikanta> Hi Arun, Thanks for the information. Can you please tell me Srikanta> where I can get it from ?

If you're running debian, there's a prebuilt cross compiler available from the Gelato Debian repository

See http://www.gelato.unsw.edu.au/IA64wiki/GelatoDebianRepository

or just add this to /etc/apt/sources.list :

   deb http://gelato.unsw.edu.au/debian unstable/$(ARCH)/
   deb http://gelato.unsw.edu.au/debian unstable/all/
   deb-src http://gelato.unsw.edu.au/debian/ unstable/source/

and install gcc-i386-linux and binutils-i386-linux

You'll also need to install the ia32-libs package, and toolchain-source, then do
tpkg-install-libc i386-linux
to get the development libraries and headers.

Disclaimer: I haven't actually done all this.

Another approach would be to install an IA32 native toolchain under /emul/ia32-linux/

Both dpkg and rpm allow you to specify a root directory; just specify /emul/ia32-linux

--
Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au The technical we do immediately, the political takes *forever*

#5 lore raw
In reply to Srikanta R
Quoted 5 lines · Srikanta R

Hi Arun,

Thanks for the information. Can you please tell me where I can get it from ?

From your favorite IA-32 Linux distribution.

-Arun

#6 lore raw
In reply to Srikanta R
Quoted 2 lines · Peter Chubb

Both dpkg and rpm allow you to specify a root directory; just specify /emul/ia32-linux

# rpm -qi gcc
Name        : gcc                          Relocations: (not relocatable)
[...]

gcc is usually not relocatable. So one might have to use a "hack" such as rpm2cpio. I used chroot /emul/ia32-linux. But that requires a minimal package database is already setup under /emul/ia32-linux.

-Arun