Re: How does one compile 64-bit executables on HP-UX PA-RISC?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/30/10 02:42 PM, Jeff Law wrote:
On 07/30/10 06:07, Dr. David Kirkby wrote:
I have an HP C3600 workstation

http://www.b2net.co.uk/hp/hp_visualize_c3600_workstation.htm

which is fitted with 552 MHz PA-8600 PA-RISC CPU (64-bit) and 8 GB RAM.

If I use gcc -m64, I get an error.

drkirkby@hpbox:~$ gcc -m64 test.c
cc1: error: unrecognized command line option "-m64"

Can anyone tell me how to build 64-bit binaries with gcc on this machine?
GCC for the PA isn't runtime switchable between 32 and 64 bit binaries.

Thanks - that's a bit annoying. I'm used to using -m64 on Solaris.

ie, however GCC was initially configured is the only way it'll generate
code on the PA.

What does gcc -v report?

Jeff


There are two versions on my machine.

drkirkby@hpbox:~$ gcc -v
Using built-in specs.
Target: hppa1.1-hp-hpux11.11
Configured with: /tmp/gcc-4.3.3.tar.gz/gcc-4.3.3/configure --host=hppa1.1-hp-hpux11.11 --target=hppa1.1-hp-hpux11.11 --build=hppa1.1-hp-hpux11.11 --prefix=/opt/hp-gcc-4.3.3 --with-gnu-as --without-gnu-ld --enable-threads=posix --enable-languages=c,c++ --with-gmp=/proj/opensrc/be/hppa1.1-hp-hpux11.11 --with-mpfr=/proj/opensrc/be/hppa1.1-hp-hpux11.11
Thread model: posix
gcc version 4.3.3 (GCC)
drkirkby@hpbox:~$

Someone said the HP install is buggy, and produced this one. So I do have two installs of gcc.

drkirkby@hpbox:~$ gcc -v
Using built-in specs.
Target: hppa2.0w-hp-hpux11.11
Configured with: ../gcc-4.3.4/configure --with-gnu-as --with-as=/home/dclarke/local/bin/as --without-gnu-ld --with-ld=/usr/bin/ld --enable-threads=posix --enable-nls --prefix=/home/dclarke/local --enable-shared --enable-multilib --with-included-gettext --with-libiconv-prefix=/home/dclarke/local --with-system-zlib --with-gmp=/home/dclarke/local --with-mpfr=/home/dclarke/local --enable-languages=c,c++,fortran,objc --enable-bootstrap
Thread model: posix
gcc version 4.3.4 (GCC)

I thought the latter, with the hppa2.0w-hp-hpux11.11 might have created 64-bit binaries, but still sizeof(long) == 4, so I assume not.



Dave


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux