Operating System - Linux
1753287 Members
5585 Online
108792 Solutions
New Discussion юеВ

Link time error with GCC on HPUX 11.11

 
richard bardwell
New Member

Link time error with GCC on HPUX 11.11

Hi

I am trying to compile my code on HPUX 11.11 with gcc. Everything goes fine in the compilation, but I get the following error at link time:

/usr/ccs/bin/ld: rr.o :Mismatched ABI: 64-bit PA object file found in 32-bit link.

How can I get gcc to know that I am trying to create a 64 bit link ?

Any help will be appreciated !!!

Thanks in advance
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor

Re: Link time error with GCC on HPUX 11.11

You could adopt a radical approach and try a "man gcc" and then look for HPPA options. For example, "-mpa-risc-2-0" will instruct the compiler to emit PARISC 2.0 instructions. In any event, you must ensure that all code modules either all zig or all of them zag (i.e all code modules -- including those in libraries -- must be 32-bit or 64-bit).
If it ain't broke, I can fix that.
Arunvijai_4
Honored Contributor

Re: Link time error with GCC on HPUX 11.11

Hi Richard,

If you are trying to build a 64 bit object, you need to have 64 bit GCC installed in your build system, you can download it from,

http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,7663,00.html

Look for HP-GCC 4.0.3 PA-RISC LP64 (gz, http, 49177 KB).

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"