Operating System - HP-UX
1752676 Members
6202 Online
108789 Solutions
New Discussion

Re: Linker fatal error on Integrity

 
ji_1
Occasional Contributor

HP C ANSI fatal error on Itanium

hello all ,
i installed HP C ANSI on Itanium , and when i tried to do :
cc myfile.c
i got the following error :
ld:mismatched ABI ( not an ELF file) for -lc
Fatal error
could anyone help ? what's wrong ?
Thanks
4 REPLIES 4
KVK
Valued Contributor

Re: HP C ANSI fatal error on Itanium

Hi

Can you try to compile by the following command

#cc -v +DD64 myfile.c

can you provide the output of #file myfile.c

and # file /usr/lib/pa20_64/*sec*
ji_1
Occasional Contributor

Re: HP C ANSI fatal error on Itanium

Hi

Can you try to compile by the following command

#cc -v +DD64 myfile.c

can you provide the output of #file myfile.c

and # file /usr/lib/pa20_64/*sec* /tmp#cc -v +DD64 cprog
cc: informational note 404: NLSPATH is /opt/ansic/lib/nls/msg/%L/%N.cat:/opt/ans
ic/lib/nls/msg/C/%N.cat:
cc: informational note 404: INCLUDIR is INCLUDIR=/usr/include
cc: informational note 404: LPATH is /usr/lib/pa20_64:/opt/langtools/lib/pa20_64
:
/usr/ccs/bin/ld /opt/langtools/lib/pa20_64/crt0.o cprog -u main -lc
cc: informational note 413: Entering Link editor.
ld: I/O error, file "/opt/langtools/lib/pa20_64/crt0.o": No such file or directo
ry
Fatal error.
/tmp#file cprog
cprog: c program text
/tmp#file /usr/lib/pa20_64/*sec*
/usr/lib/pa20_64/librpcsec_gss.1: ELF-64 shared object file - PA-RISC 2.0
(LP64)
/usr/lib/pa20_64/librpcsec_gss.sl: ELF-64 shared object file - PA-RISC 2.0
(LP64)
/usr/lib/pa20_64/libsec.2: ELF-64 shared object file - PA-RISC 2.0 (LP64)
/usr/lib/pa20_64/libsec.sl: ELF-64 shared object file - PA-RISC 2.0 (LP64)


HELP PLEASE

KVK
Valued Contributor

Re: HP C ANSI fatal error on Itanium

Could check ur system patch level & "/opt/langtools/lib/pa20_64/crt0.o : " is this file existing in ur system ?

Is it a new setup or was it working before ?
Dennis Handly
Acclaimed Contributor

Re: Linker fatal error on Integrity

>I installed HP C ANSI on Integrity

>/usr/ccs/bin/ld /opt/langtools/lib/pa20_64/crt0.o ...

 

You have forced installed the PA compiler.  You need the Integrity version.