Operating System - HP-UX
1753835 Members
7695 Online
108806 Solutions
New Discussion юеВ

Re: 32 bit compilation on 64 bit machine

 
SOLVED
Go to solution
Mike Stroyan
Honored Contributor

Re: 32 bit compilation on 64 bit machine

PHSS_30966 is the 11.11 equivalent to PHSS_30965.
The HP-UX commands are PA-RISC 1.1 executables, but that does not explain a problem with building and running PA2.0 32-bit programs.
A system with a PA2.0 processor can run both PA1.1 and PA2.0 code.
Bill Hassell
Honored Contributor

Re: 32 bit compilation on 64 bit machine

Whoops, I forgot. The HP-UX commands don't need to be 64bit. Try this:

file /stand/vmunix

If that isn't an ELF file then try this command to see what your kernel is runnng:

getconf KERNEL_BITS


Bill Hassell, sysadmin
Norman Allen_1
New Member

Re: 32 bit compilation on 64 bit machine

/stand/vmunix returns
/stand/vmunix: ELF-64 executable object file - PA-RISC 2.0 (LP64)
and the getconf return 64.

If I'm compiling using +DA2.0 to generate 32 bit RISC 2.0 code, I don't see why this shouldn't work with the system libraries, etc. defined as RISC 1.1, but it doesn't.

One additional point, when I say "doesn't work" it does execute a bit, and I can see the point it stopped at. It processes input data, writes something to an Oracle 9 db, generates a report and then stops dead, with no obvious reason for the stop. I've tried running it under gdb but didn't get a very useful message at the point where it stopped.