- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Error message when attempting to test gcc
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
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
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
06-12-2012 01:29 PM
06-12-2012 01:29 PM
Hi,
I added gcc 2.95.3 to an HP-UX 10.20 32-bit machine ( I do realize that HP-UX 10.20 is old but we need to keep this system because of some clients). I created a hello.c test file in my /test directory. I then attempted to test the gcc with the following command: gcc /test/hello.c -o /test/hello.exe
The error message below was output:
/usr/ccs/bin/ld: Can't find library for -lgcc
I am not sure how to resolve this issue. Any help would be appreciated. Thanks.
Solved! Go to Solution.
- Tags:
- gcc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2012 03:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2012 06:34 AM
06-13-2012 06:34 AM
Re: Error message when attempting to test gcc
Hi Dennis
Thanks for replying.
To answer your question, I just installed the both the OS and gcc on this machine a few weeks ago so gcc has never worked on this machine before.
I do have libgcc.a under /usr/pa20_32/lib. I tried adding both /usr/pa20_32/lib and /usr/pa20_32/lib/libgcc.a to /etc/PATH. I then tried testing gcc again but got the same error.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2012 07:30 AM
06-13-2012 07:30 AM
Re: Error message when attempting to test gcc
Hi Dennis,
I was able to solve this issue by creating the following symbolic link:
ln -s /usr/pa20_32/lib/libgcc.a /usr/lib/libgcc.a
Thanks for the advice on missing the libgcc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2012 05:53 PM
06-13-2012 05:53 PM
Re: Error message when attempting to test gcc
>/etc/PATH
This contains paths to binaries, not libs. ld(1) uses LPATH for that. Or add -L path on the link line.
>by creating the following symbolic link: ln -s /usr/pa20_32/lib/libgcc.a
That's strange, I thought /usr/pa20_32/lib/ would only be for HP products and for performance, not gcc.