23lukia@tongji_edu_cn
New Member
The version of CESM is 1.2.0, when I install zlib and hdf5, it shows the error as follows:Making install in src
make[1]: Entering directory `/vol6/home/xxxxx/usr/yuhz/Tongji/hdf5/hdf5/hdf5-1.8.11/src'
CCLD libhdf5.la
/usr/bin/ld: /vol6/home/xxxxx/usr/yuhz/Tongji/netcdf/ed/lib/libz.a(inflate.o): relocation R_X86_64_32S against `zcfree' can not be used when making a shared object; recompile with -fPIC
/vol6/home/xxxxx/usr/yuhz/Tongji/netcdf/ed/lib/libz.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [libhdf5.la] Error 1
make[1]: Leaving directory `/vol6/home/xxxxx/usr/yuhz/Tongji/hdf5/hdf5/hdf5-1.8.11/src'
make: *** [install-recursive] Error 1
Maybe it caused by gcc's version. Which version of gcc is required at least in CESM 1.2.0? Thanks.
make[1]: Entering directory `/vol6/home/xxxxx/usr/yuhz/Tongji/hdf5/hdf5/hdf5-1.8.11/src'
CCLD libhdf5.la
/usr/bin/ld: /vol6/home/xxxxx/usr/yuhz/Tongji/netcdf/ed/lib/libz.a(inflate.o): relocation R_X86_64_32S against `zcfree' can not be used when making a shared object; recompile with -fPIC
/vol6/home/xxxxx/usr/yuhz/Tongji/netcdf/ed/lib/libz.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [libhdf5.la] Error 1
make[1]: Leaving directory `/vol6/home/xxxxx/usr/yuhz/Tongji/hdf5/hdf5/hdf5-1.8.11/src'
make: *** [install-recursive] Error 1
Maybe it caused by gcc's version. Which version of gcc is required at least in CESM 1.2.0? Thanks.