Showing results for 
Search instead for 
Do you mean 

gcc problem

SOLVED
Go to Solution
Advisor

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
2 REPLIES
Honored Contributor Honored Contributor

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.
Highlighted
Honored Contributor Honored Contributor

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