Operating System - HP-UX
1753802 Members
7918 Online
108805 Solutions
New Discussion юеВ

Executable file Incompatible

 
Sanjib Talukdar
Occasional Advisor

Executable file Incompatible

We have compiled and built the binary for our application on HP UX B.11.00 platform using the aCC compiler. We copied the binary to another machine running HP UX B.11.00 and tried to execute it. We get the following error message:
ksh: ./CSTARServer-6.0.1: Executable file incompatible with hardware

The following are compile options:
STDCPPOPTS = -c -Aa -DOSSGW_DEBUG -Dunix -D_HPUX_SOURCE -Dsigned="" \
-D_REENTRANT -Dhpux -Dhp9000s800 -D_CMA_NOWRAPPERS_ \
+D1.1 -D__cplusplus -DANSIC -DRW_MULTI_THREAD

The following are the link options:
CXXLDFLAGS = -W l,-z -W l,-Bimmediate -W l,-Bnonfatal -W l,+s

The result of the file command shows that the option +DA1.1 is NOT actually building a PA RISC1.1 executable!
> file CSTARServer-6.0.1
CSTARServer-6.0.1: PA-RISC2.0 shared executable dynamically linked -not stripped

We need the executable to be a PA-RISC 1.1 one.
Can anyone please let me know what needs to be done to make it so?

Thank You.
Sanjib.
3 REPLIES 3
ranganath ramachandra
Esteemed Contributor

Re: Executable file Incompatible

your compile options listed here show "+D1.1" and not "+DA1.1".
 
--
ranga
[i work for hpe]

Accept or Kudo

Emanuele Guarneri
New Member

Re: Executable file Incompatible

Try with the following:
- DA1.1 instead of D1.1
- not DANSIC


good luck

bye
Armin Kunaschik
Esteemed Contributor

Re: Executable file Incompatible

+D1.1 is wrong.
Use +DA1.1 or +DAportable.

For a list of compiler options do a "cc +help"
or simply check the html pages in the /opt/ansic directory.
And now for something completely different...