- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- compiler problems
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
тАО08-30-2002 02:48 AM
тАО08-30-2002 02:48 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2002 02:54 AM
тАО08-30-2002 02:54 AM
Re: compiler problems
Hi,
Assuming you are using one of the HP-compilers
the option used to specify a particular
PARISC-version is +DA
Ex:
+DA1.1 for PARISC.1.1
+DA2.0 for PARISC2.0
+DA2.0W (gives 64-bit code)
By default the compilers compiles for the
same PARISC version the compiling machine has.
Also note that you do not have to compile
on a PARISC2.0 machine in order to generate
code for PARISC2.0
See the man-page for the compiler for
more info
Regards
Olav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2002 02:59 AM
тАО08-30-2002 02:59 AM
Re: compiler problems
HPc vs. GNU gcc (available as of 3.0.4)
+DA1.1 -> -pa-risc-1-1
+DA2.0 -> -pa-risc-2-0
+DA2.0w -> need the 64bit version of the compiler. No specific option
+DA1.1 is a bad choice to begin with. *IF* you are doing this to be backward compatible, use +DAportable instead
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2002 03:08 AM
тАО08-30-2002 03:08 AM
Re: compiler problems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2002 03:13 AM
тАО08-30-2002 03:13 AM
SolutionHi,
For a simple c-program the command to
compile for PARISC2.0 would be:
cc -o progname +DA2.0 file.c
If the program consists of more than one
file, add these file after file.c
Note that the +DA2.0 option is not needed
if you compile on a PARISC2.0 machine.
If you compile on a parisc1.1 manchine you
MUST use +DA2.0
Olav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2002 03:24 AM
тАО08-30-2002 03:24 AM
Re: compiler problems
And for gcc equivalent:
# gcc -o xx xx.c
# ./xx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2002 03:49 AM
тАО08-30-2002 03:49 AM
Re: compiler problems
Manny thnaks for your help... I've managed to do that. I have compiled it with the lower 1.1 RISC level as on the box the script originally failed on... however the script still fails due to incompatible hardware!?!?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2002 04:03 AM
тАО08-30-2002 04:03 AM
Re: compiler problems
Hi,
What is the output of the command:
file
and what is the exact error-message you get.
Olav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2002 04:28 AM
тАО08-30-2002 04:28 AM
Re: compiler problems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2002 04:43 AM
тАО08-30-2002 04:43 AM
Re: compiler problems
?? it's free
?? it has great warnings (realy)
?? it compiles GNU stuff without a wink
?? it is *very* indulgent, and supports more features than HPC
Advantage HPc over gcc:
?? it's objects are faster (avarage 26% with what we use here on HP-UX 11.00 2.0)
?? you get HP support
?? it fits better to the PA-RISC architecture