Compiling FORTRAN code with GEMLIB on 64-bit machine

Gary Lackmann gary at ncsu.edu
Tue Aug 14 11:19:13 MDT 2007


Dear Gembuds,

I am trying to compile a wrf-to-GEMPAK converter on a 64-bit IBM 
computer (it has compiled correctly on a number of other platforms), and 
I get through the compilation until the linking stage, when I encounter 
the following error:

[Several separate object files are successfully created prior to 
this...  but then...]

f90 -o wrf2gem -qxlf77  -qextname dateutil.o diagnostics.o gempak.o 
registry.o wrf2gem.o wrf2gemsubs.o  
/bgl/software/encap/netcdf-3.6.1/lib/libnetcdf.a 
/home/gary/gempak/GEMPAK5.10.2/os/linux64/lib/gemlib.a 
/home/gary/gempak/GEMPAK5.10.2/os/linux64/lib/cgemlib.a
/usr/bin/ld: 
/home/gary/gempak/GEMPAK5.10.2/os/linux64/lib/gemlib.a(gdclos.o): 
Relocations in generic ELF (EM: 62)
/home/gary/gempak/GEMPAK5.10.2/os/linux64/lib/gemlib.a: could not read 
symbols: File in wrong format
make: *** [wrf2gem] Error 1


I have installed the 64-bit version of GEMPAK and the libraries, and so 
I'm not sure what the problem could be with the file format.  After some 
fruitless googling, I decided to throw this out to the gembuds in hopes 
that someone has solved this before, or at least can point me in the 
right direction.

Thanks in advance for any hints,
Gary Lackmann




More information about the gembud mailing list