- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: gcc/cc compile error
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
тАО09-08-2009 06:40 AM
тАО09-08-2009 06:40 AM
gcc/cc compile error
I have a HP-UX 11.11. I installed from Porting And Archive Centre for HP-UX a gcc compiler. When I try to compile with it I get the below error message. Same if use the cc that came installed.
bash-2.04# cc test.c
/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.
bash-2.04# gcc test.c
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (/var/tmp//ccX0Ejgg.o
) was detected. The linked output may not run on a PA 1.x system.
Can anybody help me with this issue ?
Thanks in advance,
Stefan
- Tags:
- gcc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-08-2009 06:52 AM
тАО09-08-2009 06:52 AM
Re: gcc/cc compile error
This isn't an error, it's a warning (as noted).
This isn't from the compiler, its from the linker.
There is nothing to be concerned about unless you have a very ancient piece of hardware!
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-08-2009 07:10 AM
тАО09-08-2009 07:10 AM
Re: gcc/cc compile error
thanks for the answer.
I cannot build a simple .c source code that contains a printf because of the error.
The model command returns: 9000/785/B2600.
Do you have any ideea how could I fix this ?
Regards,
Stefan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-08-2009 08:53 AM
тАО09-08-2009 08:53 AM
Re: gcc/cc compile error
If you want to build PA-RISC 1.1 code, then you can compile with +DA1.1 as for example:
# cc +DA1.1 -o foo foo.c
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-10-2009 12:23 AM
тАО09-10-2009 12:23 AM
Re: gcc/cc compile error
>I cannot build a simple .c source code that contains a printf because of the error.
You need to show the error.
>JRF: If you want to build PA-RISC 1.1 code, then you can compile with +DA1.1
If you are using a foreign devil compiler you'll need to use something like: -march=1.1
- Tags:
- foreign devil tools