static linking error: ELF binary type "0" not known. Exec format error. Binary file not executable.

Anton Shterenlikht <[email protected]>
Newsgroups gmane.os.freebsd.devel.ia64
Message-ID <[email protected]>
On ia64 r212643 I'm trying to link some fortran code
against some fortran libraries. Running the resulting
executable gives the above error:

ia64% gfortran45 -c slatec-mach-check.f90 
ia64% gfortran45 -static slatec-mach-check.o -lslatec
ia64% file a.out 
a.out: ELF 64-bit LSB executable, IA-64, version 1 (SYSV), statically linked, not stripped
ia64% ./a.out > /dev/null
ELF binary type "0" not known.
./a.out: Exec format error. Binary file not executable.
ia64% 


On amd64 r214121 this works fine:

amd64% gfortran45 -c slatec-mach-check.f90 
amd64% gfortran45 -static slatec-mach-check.o -lslatec
amd64% file a.out 
a.out: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), statically linked, for FreeBSD 9.0 (900023), not stripped
amd64% ./a.out > /dev/null
amd64% 


Can't check on sparc64 because gcc45 doesn't build there right now.

What could be the problem?

many thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ia64
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.