[CIG-SHORT] the netcdf option in pylith installer

Hongfeng Yang hyang at whoi.edu
Fri Jul 8 20:47:03 PDT 2011


Hi all,

I have been running the pylith installer to build pylith on my linux 
workstation. But I failed in building netcdf4.1.1 after the 
configuration. It seems to relate to the fortran compiler and/or 
libraries. Error message is the following:

libtool: link: gfortran -shared  .libs/fort-attio.o .libs/fort-control.o 
.libs/fort-dim.o .libs/fort-genatt.o .libs/fort-geninq.o 
.libs/fort-genvar.o .libs/fort-lib.o .libs/fort-misc.o 
.libs/fort-v2compat.o .libs/fort-vario.o .libs/fort-var1io.o 
.libs/fort-varaio.o .libs/fort-varmio.o .libs/fort-varsio.o  
-Wl,--whole-archive ../f90/.libs/libnetcdff90.a -Wl,--no-whole-archive  
-Wl,-rpath -Wl,/home/hyang/cig/build/netcdf-build/libsrc/.libs 
-Wl,-rpath -Wl,/home/hyang/pylith/lib -L/lib -L/home/hyang/pylith/lib 
../libsrc/.libs/libnetcdf.so 
-L/opt/intel/composerxe-2011.4.191/compiler/lib/intel64 
-L/opt/intel/composerxe-2011.4.191/mkl/lib/intel64 
-L/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2 
-L/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/../../.. 
-L/usr/lib/x86_64-linux-gnu -lgfortran -lm -lc -lgcc_s    -Wl,-soname 
-Wl,libnetcdff.so.4 -o .libs/libnetcdff.so.4.0.0
/usr/bin/ld: ../f90/.libs/libnetcdff90.a(netcdf.o): relocation 
R_X86_64_32 against `.bss' can not be used when making a shared object; 
recompile with -fPIC
../f90/.libs/libnetcdff90.a(netcdf.o): could not read symbols: Bad value

I have tried gfortran and ifort as the fortran compiler. Both of them 
give the same error.

Have anyone experienced this kind of error in building pylith?

My OS is Ubuntu 11.04.

Thanks,

Hongfeng Yang


-- 
Postdoc Investigator
Woods Hole Oceanographic Institution
Dept. Geology and Geophysics
266 Woods Hole Rd
Woods Hole, MA 02543



More information about the CIG-SHORT mailing list