- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Trouble compiling c program
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
тАО10-21-2009 11:09 AM
тАО10-21-2009 11:09 AM
Trouble compiling c program
We have some custom program written in C that we will need to recompile on the Itanium system.
The method to compile these programs on the 11.11 PA-RISC system was
$ cc -Wall program_name.c -o program_name
This syntax is not working on our Itanium 11.23 system.
Here is the error I get on the 11.23 Itanium system.
cc: error 1914: bad form for `-W' option
The C compiler on the 11.11 PA-RISC system is B.11.11.12 C-ANSI-C Compiler
The C compiler on the 11.23 Itanium system is
C.06.15 C/aC++ Compiler
I believe it has to due with the new options in the C compiler, but I am looking for some help from you excellent folks on finding a slolution.
Thanks
Bill
- Tags:
- migration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2009 11:17 AM
тАО10-21-2009 11:17 AM
Re: Trouble compiling c program
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2009 11:45 AM
тАО10-21-2009 11:45 AM
Re: Trouble compiling c program
Also take a look at the release note if you can fid something for W option:
http://docs.hp.com/en/B3901-90031/B3901-90031.pdf
Hth,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2009 12:28 PM
тАО10-21-2009 12:28 PM
Re: Trouble compiling c program
> The C compiler on the 11.11 PA-RISC system
> is B.11.11.12 C-ANSI-C Compiler
Really? "-Wall" sure looks like a GCC
option. I'd try to verify which C compiler
you're actually using. (Unless "B.11.11.12
C-ANSI-C Compiler" is more GCC-compatible
than I'd expect it to be.)
http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Warning-Options.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2009 04:49 PM
тАО10-21-2009 04:49 PM
Re: Trouble compiling c program
For Integrity, the closest option is +wlint.
It appears that the PA C compiler incorrectly parses this as: -Wa,l
Which is ignored unless you are assembling a .s file.
>C.06.15 C/aC++ Compiler
This is obsolete, the latest patch is A.06.23.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2009 10:21 PM
тАО10-21-2009 10:21 PM
Re: Trouble compiling c program
so in the end, the easiest solution might be to just go for gcc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2009 10:32 PM
тАО10-21-2009 10:32 PM
Re: Trouble compiling c program
Certainly, it makes sense to use a command
which is appropriate for your compiler. If
you wish to use the HP compiler, then use a
command which that compiler understands. If
you wish to use a GCC-compatible command,
then use a compiler which can understand that
command. GCC, for example.
The obvious next mystery would be why you're
using that particular command. While it may
have worked better with the older HP
compiler, it never was really appropriate.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2009 01:06 AM
тАО10-22-2009 01:06 AM
Re: Trouble compiling c program
Because the driver didn't give an error?
Right. These two are connected.