static linking with gfortran?

Anton Shterenlikht mexas at bristol.ac.uk
Mon Nov 8 12:01:24 UTC 2010


On ia64 -current I'm trying to statically link
against gfortran45 libraries, following from
GCC fortran wiki (http://gcc.gnu.org/wiki/GFortranGettingStarted) :

% gfortran45 -static mach-fort.f90 -o z
% file z
z: ELF 64-bit LSB executable, IA-64, version 1 (SYSV), statically linked, not stripped
% ./z
ELF binary type "0" not known.
./z: Exec format error. Binary file not executable.


What am I missing?

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


More information about the freebsd-questions mailing list