Operating System - HP-UX
1835067 Members
2111 Online
110073 Solutions
New Discussion

aCC Compiler error Version 03.39 ("/usr/ccs/bin/ld: (Warning)")

 
Jagadesh
Frequent Advisor

aCC Compiler error Version 03.39 ("/usr/ccs/bin/ld: (Warning)")

I have installed HP aC++ compiler version 03.39
While compiling iam getting the below error but iam able to get the output.

"/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (test.o) was detected
. The linked output may not run on a PA 1.x system."

How can i resolve the same?

Thanks in advance
Jagadesh
5 REPLIES 5
DIPAK KUMAR ROY
Frequent Advisor

Re: aCC Compiler error Version 03.39 ("/usr/ccs/bin/ld: (Warning)")

You can ignore this. It just says that the compiled program will not work on PA 1.x system. You will have to recompile it on PA 1.x system.

Try using "daportable" option while compiling. I am not sure about the syntax.

Thanks
Robert-Jan Goossens
Honored Contributor

Re: aCC Compiler error Version 03.39 ("/usr/ccs/bin/ld: (Warning)")

The above statement is correct, add +DAportable to your compilation command.

Kind regards,
Robert-Jan
Umapathy S
Honored Contributor

Re: aCC Compiler error Version 03.39 ("/usr/ccs/bin/ld: (Warning)")

Jagadesh,
As prev said, +DAPortable will solve the problem.

Always make sure that you create the binary for the platform you are going to run. +DA1.1 for older PARISC machines, particularly 10.2 OS and PA2.0 for the new PARISC architectures.

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Dave Hutton
Honored Contributor

Re: aCC Compiler error Version 03.39 ("/usr/ccs/bin/ld: (Warning)")

I happened to be in the process of installing aC++ and noticed theres a few patches. You may want to consider getting your version up to 3.50. It may fix your issue:

http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,1743,00.html#11

Just a suggestion. Hopefully it helps
Dave
A. Clay Stephenson
Acclaimed Contributor

Re: aCC Compiler error Version 03.39 ("/usr/ccs/bin/ld: (Warning)")

No, no. This is NOT an error. It's simply telling you that this code will not run on all PA-RISC processor's --- just PA-8XXXX's and up. aCC, by default, determines the platform on which it is running and optimizes for that architecture. If you are always going to run this code on this box then you can ignore or issue a compiler directive to suppress this warning. Man aCC for that. As mentioned, if you do need to run on PA-7XXXX's as well as PA-*XXXX's then add the +DAportable option.
If it ain't broke, I can fix that.