- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: collect2: ld returned 1 exit status
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
тАО04-17-2009 03:38 AM
тАО04-17-2009 03:38 AM
collect2: ld returned 1 exit status
we have a itanium processer and i have installed the gcc 3.3.2 for pa-risc processor. I have installed the gcc into a temp folder. Now i want to compile a sample c program
#include
main ()
{
printf ("Test prog C");
}
When i do that i am getting the following error.
collect2: ld returned 1 exit status
any help is appreciated.
- Tags:
- gcc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2009 03:52 AM
тАО04-17-2009 03:52 AM
Re: collect2: ld returned 1 exit status
Why? You should be using the gcc for Itanium.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2009 04:13 AM
тАО04-17-2009 04:13 AM
Re: collect2: ld returned 1 exit status
Please download and install gcc binaries for itanium architecture.
I doubt if gcc for PA-RISC will on itanium machine.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2009 04:15 AM
тАО04-17-2009 04:15 AM
Re: collect2: ld returned 1 exit status
ld: Mismatched ABI (not an ELF file) for -lgcc, found /pa-risc-gcc332/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.3.2/libgcc.a
Fatal error.
collect2: ld returned 1 exit status
then i have replace the ld file with that of the pa-risc ld file. then i am facing the mentioned problem. The thing is it doesnt give any clue other than "collect2: ld returned 1 exit status".
thanks in advance
- Tags:
- ABI mismatch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2009 04:32 AM
тАО04-17-2009 04:32 AM
Re: collect2: ld returned 1 exit status
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2009 04:54 AM
тАО04-17-2009 04:54 AM
Re: collect2: ld returned 1 exit status
"Install the ACXX from HPUX CD if you wan to use gcc for IA please only use itanium specific . if you want to run PA RISC executables in Itanium , use Aries"
what do you mean by "IA" and can you please give some more information about this Aries like where can i get that and what actually does that do (i mean just a bit more information).
Does that mean i can use the gcc for the pa-risc on itanium also? if not what can i do further?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2009 06:12 AM
тАО04-17-2009 06:12 AM
Re: collect2: ld returned 1 exit status
Aries is a binary translator for PA-RISC applications on Itanium. Detailed information about ARIES: http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801/?ciid=0208713ba4f02110713ba4f02110275d6e10RCRD
In the context of Aries, you could also have a look at XPADE which allows you to cross-develop PA-RISC applications on Itanium: http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801?ciid=babe0bfb7d779110VgnVCM100000275d6e10RCRD
Best regards,
Andi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2009 08:37 PM
тАО04-17-2009 08:37 PM
Re: collect2: ld returned 1 exit status
ld: Mismatched ABI (not an ELF file) for -lgcc
>then I replaced the ld file with that of the PA ld file.
>it doesn't give any clue other than "collect2: ld returned 1 exit status".
You can't just do that. You must use:
SDKROOT=/usr/ccs/bin gcc ...
Or tell gcc to replace your IPF ld by a wrapper ld that does:
#!/usr/bin/ksh
export SDKROOT=/usr/ccs/bin
exec $SDKROOT/usr/ccs/bin/ld "$@"
>inukoti: Install the ACXX from HP-UX CD if you wan to use gcc for IA
I'm not sure of the connection? GNU isn't aC++.
>Andi: you could also have a look at XPADE
This requires a aC++ license and isn't GNU.
- Tags:
- SDKROOT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2009 09:32 PM
тАО04-17-2009 09:32 PM
Re: collect2: ld returned 1 exit status
You can't just do that. You must use:
SDKROOT=/usr/ccs/pa gcc ...
Or tell gcc to replace your IPF ld by a wrapper ld that does:
#!/usr/bin/ksh
export SDKROOT=/usr/ccs/pa
exec $SDKROOT/usr/ccs/bin/ld "$@"