Re: gcc problem (170 Views)
Reply
Advisor
guaggia
Posts: 13
Registered: ‎06-16-2004
Message 1 of 3 (170 Views)
Accepted Solution

gcc problem

I try to compile an application using gcc 3.0.2 on HP-UX 11.0 and I have the following error message :

/usr/ccs/bin/ld: ../asn2c/rts/librts.a: Not a valid library (invalid magic number). Possibly a 64-bit PA archive library (Mismatched ABI).
collect2: ld returned 1 exit status
*** Error exit code 1

Can you help me ?

thank in advance
guaggia
Please use plain text.
Honored Contributor
Elmar P. Kolkman
Posts: 1,179
Registered: ‎10-16-2003
Message 2 of 3 (170 Views)

Re: gcc problem

The error seems to indicate you are trying to build a 32 bit executable, but try to link with a 64 bit library.
More info can help, like the compile options used, the system you are using to build on, etc.
Every problem has at least one solution. Only some solutions are harder to find.
Please use plain text.
Honored Contributor
H.Merijn Brand (procura
Posts: 6,185
Registered: ‎10-13-1997
Message 3 of 3 (170 Views)

Re: gcc problem

And FYI, on HP-UX on PA-RISC there's TWO different GNU gcc compilers needed for 32- and 64bit objects.

gcc/32 cannot build 64bit objects, and gcc/64 cannot build 32bit objects.

IIRC that dual life is solved for Itanium

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation