PnetCDF question?

Hu, Yao yaohu2 at illinois.edu
Wed Mar 2 16:04:21 CST 2016


Hi There,

I was trying to  install earth system modeling framework (ESMF) on my linux machine (Ubuntu 15.04), I got the following error:

/usr/bin/ld: /usr/local/lib/libpnetcdf.a(mpinetcdf.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libpnetcdf.a: error adding symbols: Bad value

I understand the libpnetcdf.a is a static library and cannot be dynamically linked with. I thus tried to add the flag:

export CXXFLAGS="$CXXFLAGS -fPIC"

before I configure parallel netcdf. Unfortunately, it still generates the static (.a) library. Could you please let me know how to generate the dynamically linked library (.os)? or other suggestions? Thanks in advance.

Sincerely,
Yao

Yao Hu, PhD
Postdoctoral Researcher
National Center for Supercomputing Applications
1205 W Clark St.
Urbana, IL, USA 61801
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/parallel-netcdf/attachments/20160302/f8f723bc/attachment.html>


More information about the parallel-netcdf mailing list