Operating System - HP-UX
1825160 Members
2346 Online
109679 Solutions
New Discussion юеВ

PA-RISC apps running on Itanium

 
JUP
Regular Advisor

PA-RISC apps running on Itanium

Are compiled PA-RISC applications (compiled on HPUX 11.00, 9000/803 system) supposed to run on Itanium 11.23 ia64 system without re-compiling ?

ie. can I just tar the binaries over to the Itanium and expect them to work ?

I tried this and the binaries crash with the following error:

Assertion failed: __thread_init == NULL, file ../../../../../core/libs/libc/shared_pa2_32/../core/threads/pthread_stubs1.c, line 361
ARIES32: Core file for PA32 application saved to /data/app/bin/core.tmon


==> tmon being the application.


Tried the debugger on the Itanium with the following command:

adb /data/app/bin/tmon core.tmon


and got this:

adb: error: Invalid core file; version mismatch?.


Any ideas would be appreciated on whether we can just copy compiled object across or how I can determine whats gone on wrong.

Maybe I just have to recompile the code on the Itanium. If so I'm in trouble as the compiler keeps crashing and HP are still investigating.

Thanks in advance
JUP
5 REPLIES 5
Michael Tully
Honored Contributor

Re: PA-RISC apps running on Itanium

I have some compiled utilities that will run on the itanium server that are PA-RISC. In saying that, if I was running a full application suite, I would be obtaining the full compiled version from the vendor.

If you find that they will not run (from your test results) you may have to wait until HP get back to you.
Anyone for a Mutiny ?
JUP
Regular Advisor

Re: PA-RISC apps running on Itanium

Thanks for your prompt reply Michael.

The code is all ours - however the Itanium compiler crashes when we attempt to compile it on the Itanium. They compile OK on the PA-RISC. HP are still investigating.

I tried to copying the binaries over from the PA-RISC. That did not work. I thought the Itanium will run PA-RISC code without the need to re-compile. That was their sales pitch - I'm sure of it.

Anyway - do you know why I can't debug it ? Is it because it was not compiled on the Itanium.

JUP
Ted Buis
Honored Contributor

Re: PA-RISC apps running on Itanium

Use the Software Transition Kit to analyze your code. It should flag any problems.
http://devresource.hp.com/drc/STK/index.jsp

Some things that have been obsoleted could be problems like the old C++ that was replaced by the ANSI C++ compiler. Also, if you are using X11 R5 rather than X11 R6, that would be a problem, as R5 went obsolete after 10.20, but continued to work in 11.0 and 11.11 even though it wasn't supported.
Mom 6
rick jones
Honored Contributor

Re: PA-RISC apps running on Itanium

Just some random thoughts:

*) What happens if you compile the PA-RISC binary 64-bit?
*) Are you using proper POSIX threads, or the older green threads?
*) Have you tried tusc'ing the application to see what system calls are being made and make sure it isn't going out to lunch in a loop somewhere
there is no rest for the wicked yet the virtuous have no pillows
JUP
Regular Advisor

Re: PA-RISC apps running on Itanium

Thanks Ted and Rick - s/w sample sent to HP Languages dept and they found the bug in the compiler.

They will try to fix and create a new patch soon.

Thansk again
JUP