public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* 32 bit application on IA-64 Linux
@ 2004-04-12  4:21 Srikanta R
  2004-04-12  5:13 ` Grant Grundler
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Srikanta R @ 2004-04-12  4:21 UTC (permalink / raw)
  To: linux-ia64

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 32 bit application on IA-64 Linux
  2004-04-12  4:21 32 bit application on IA-64 Linux Srikanta R
@ 2004-04-12  5:13 ` Grant Grundler
  2004-04-13 20:30 ` Arun Sharma
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Grant Grundler @ 2004-04-12  5:13 UTC (permalink / raw)
  To: linux-ia64

On Sun, Apr 11, 2004 at 09:21:50PM -0700, Srikanta R wrote:
> 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 32 bit application on IA-64 Linux
  2004-04-12  4:21 32 bit application on IA-64 Linux Srikanta R
  2004-04-12  5:13 ` Grant Grundler
@ 2004-04-13 20:30 ` Arun Sharma
  2004-04-15  3:09 ` Srikanta R
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Arun Sharma @ 2004-04-13 20:30 UTC (permalink / raw)
  To: linux-ia64

On 4/11/2004 9:21 PM, Srikanta R wrote:

> 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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 32 bit application on IA-64 Linux
  2004-04-12  4:21 32 bit application on IA-64 Linux Srikanta R
  2004-04-12  5:13 ` Grant Grundler
  2004-04-13 20:30 ` Arun Sharma
@ 2004-04-15  3:09 ` Srikanta R
  2004-04-15  4:01 ` Peter Chubb
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Srikanta R @ 2004-04-15  3:09 UTC (permalink / raw)
  To: linux-ia64

Hi Arun,

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

Thanks,
Srikanta

--- Arun Sharma <arun.sharma@intel.com> wrote:
> On 4/11/2004 9:21 PM, Srikanta R wrote:
> 
> > 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
> 



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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 32 bit application on IA-64 Linux
  2004-04-12  4:21 32 bit application on IA-64 Linux Srikanta R
                   ` (2 preceding siblings ...)
  2004-04-15  3:09 ` Srikanta R
@ 2004-04-15  4:01 ` Peter Chubb
  2004-04-15 20:38 ` Arun Sharma
  2004-04-15 21:02 ` Arun Sharma
  5 siblings, 0 replies; 7+ messages in thread
From: Peter Chubb @ 2004-04-15  4:01 UTC (permalink / raw)
  To: linux-ia64

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 32 bit application on IA-64 Linux
  2004-04-12  4:21 32 bit application on IA-64 Linux Srikanta R
                   ` (3 preceding siblings ...)
  2004-04-15  4:01 ` Peter Chubb
@ 2004-04-15 20:38 ` Arun Sharma
  2004-04-15 21:02 ` Arun Sharma
  5 siblings, 0 replies; 7+ messages in thread
From: Arun Sharma @ 2004-04-15 20:38 UTC (permalink / raw)
  To: linux-ia64

On 4/14/2004 8:09 PM, Srikanta R wrote:

> 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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 32 bit application on IA-64 Linux
  2004-04-12  4:21 32 bit application on IA-64 Linux Srikanta R
                   ` (4 preceding siblings ...)
  2004-04-15 20:38 ` Arun Sharma
@ 2004-04-15 21:02 ` Arun Sharma
  5 siblings, 0 replies; 7+ messages in thread
From: Arun Sharma @ 2004-04-15 21:02 UTC (permalink / raw)
  To: linux-ia64

On 4/14/2004 9:01 PM, Peter Chubb wrote:

> 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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-04-15 21:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-12  4:21 32 bit application on IA-64 Linux Srikanta R
2004-04-12  5:13 ` Grant Grundler
2004-04-13 20:30 ` Arun Sharma
2004-04-15  3:09 ` Srikanta R
2004-04-15  4:01 ` Peter Chubb
2004-04-15 20:38 ` Arun Sharma
2004-04-15 21:02 ` Arun Sharma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox