1751974 Members
4327 Online
108784 Solutions
New Discussion

gcc EF_IA_64_ABI64 error

 
jackie_siu
Advisor

gcc EF_IA_64_ABI64 error

Hi,

I am trying to compile a c program in HP-UX 64bit box. I am getting error as below:

*************************************
d: Mismatched Data ABI. Expected None but found EF_IA_64_ABI64 in file cz_public.o
Fatal error.
collect2: ld returned 1 exit status
*** Error exit code 1


************************************

The command that I am using is as below:

gcc -D_INCLUDE_POSIX_SOURCE -mlp64 -O2 -o confirm dupresist.o cz_public.o PublicFunc.o cz_confirm.o public.o /home/incharg2/xujl/public/pubobj/login.o /home/incharg2/xujl/public/pubobj/basicfunc.o \
/home/incharg2/xujl/public/pubobj/cast5.o /home/incharg2/xujl/public/pubobj/cast5box.o /home/incharg2/xujl/public/pubobj/stdafx.o /home/incharg2/xujl/public/pubobj/md5.o -L/oracle/app/oracle/product/9.2.0/precomp/lib -L/oracle/app/oracle/product/9.2.0/lib -I -lclntsh -lxnet -lm

$ uname -a
HP-UX SRBZ-1 B.11.23 U ia64 3806704606 unlimited-user license

This is an old program and i have successfully compiled it on AIX systems. Do anybody tell me what happened?
Thanks
1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: gcc EF_IA_64_ABI64 error

ld: Mismatched Data ABI. Expected None but found EF_IA_64_ABI64 in file cz_public.o

This probably indicates that you are trying to link PA executables with IPF executables.

What does "file cz_public.o" show?
Did you remove those .o files and recompile from scratch?

Can you add this option: -Wl,-t
This may point to dupresist.o as not being compiled on IPF.