- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to compile on 64 bit machine(HP-UX) using ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2003 01:26 PM
тАО02-12-2003 01:26 PM
How to compile on 64 bit machine(HP-UX) using aC++ compiler for 32 bit machine.
I am having problems to compile my application on 64 bit machine(PA RISC 2) to run on 32 bit machine(PA-RISC 1).
I am compiling my application on 64 bit machine using +DA1.1 and +DAPortable flags.(as per the online HP corss platform development documentation)
I also tried DAPortable+ and DS2.0 -N flags (as suggested earlier in this forum)
The errors I am getting are:
"aCC: warning 7000: Model number is unknown will defalut to 1.1b code generation(7000)."
/usr/ccs/bin/ld: (Warning) At least one PA2 object file (su9_prt.o) was detected. The linked output may not work on PA 1.x system.
su9_prt is my C++ program which compiles and works fine on 64 bit machine.
Please help.
Thanks in advance.
Ravi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2003 02:18 PM
тАО02-12-2003 02:18 PM
Re: How to compile on 64 bit machine(HP-UX) using aC++ compiler for 32 bit machine.
Did you try to setting up the variable OBJECT_MODE to 32 before compiling?
Regards
Govind
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2003 07:48 PM
тАО02-12-2003 07:48 PM
Re: How to compile on 64 bit machine(HP-UX) using aC++ compiler for 32 bit machine.
Thanks again.
Ravi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2003 09:28 AM
тАО02-13-2003 09:28 AM
Re: How to compile on 64 bit machine(HP-UX) using aC++ compiler for 32 bit machine.
The compiler directive +DA1.1 should be all you need.
If you are getting a warning about unknown model number you may have a problem with your model output not matching anything in your /opt/langtools/lib/sched.models file, although the error or problem could be caused by a typo. The correct flag to pass is +DAportable (no capital "P" on portable).
Since you are getting the warning about "at least one PA2.0 object detected" and the file it is pointing to su9_prt.o, that would imply that the link didn't default to PA1.1 after all.
You can use the 'file' command to see if su9_prt.o is PA1.1 or PA2.0.
Also, are you linking with the "aCC" command rather than linking with the "ld" command? The aC++ product does require that you use aCC to link.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2003 09:37 AM
тАО02-13-2003 09:37 AM
Re: How to compile on 64 bit machine(HP-UX) using aC++ compiler for 32 bit machine.
This message mean that you build application on PA2.0.
To create portable code that also be run on PA1.1, the compiler option +DAportable must be used for ALL objects loaded into the executable.
Regards,Stan :)