tags:

views:

32

answers:

2

what is the g++ option to build ia64 binaries

A: 

Try the -mtune option. The default value probably is itanium2 so you will need to change it to itanium1 if you want something else. (This is from GCC 4.5 documentation.)

dirkgently
Reading specs from /opt/sfw/lib/gcc/i386-pc-solaris2.10/3.4.2/specsConfigured with: ../gcc-3.4.2/configure --prefix=/opt/sfw --with-ld=/usr/ccs/bin/ld --with-gnu-as --with-as=/opt/sfw/bin/gas --enable-shared --disable-libgcjThread model: posixgcc version 3.4.2
Avinash
+1  A: 

You have GCC configured on and for Solaris/i386. You can't build ia64 binaries using this build of GCC.

Your best bet is to ask for an account on ia64 machine with GCC already installed on it, and build natively on that machine.

If that isn't possible, you must build GCC as a cross-compiler, targeting ia64-gnu-linux or ia64-hp-hpux (both are ia64, which one do you actually need?). See GCC documentation for how to build GCC as a cross-compiler; be prepared for extreme pain.

Employed Russian