pgi-netcdf for moab

Issue #59 new
Iulian Grindeanu created an issue

we support a --download-netcdf option at configure time, for all compilers.

When we test default pgi compiler on ubuntu 14, netcdf 4.3.2 is compiled with pgi mpich wrapper

-pthread option gets added to the libtool archive file in netcdf:

libnetcdf.la:inherited_linker_flags=' -pthread'

-pthread gets propagated to all executables that need netcdf library (all netcdf executables are not linked as a result), and all moab executables (tests, tools, etc). They all fail to link, with pgi linker

The same flag has no problems for intel compilers

Workaround right now is to disable download-netcdf, for pgi configuration, on buildbot

Also, worth mentioning that this issue did not appear on ubuntu 12, it shows up only on ubuntu 14 (where we have newer pgi compilers, actually)

The old netcdf, built with pgi 3 years ago, does not have that flag in *la files

Comments (2)

  1. Vijay M

    This has nothing to do with NetCDF configuration. And more to do with how curl is set up on the system. I actually re-compiled MPI with PGI to see if it resolves the issue and successively did the same for every other dependency. Curl is system installed and the file /usr/lib/x86_64-linux-gnu/libcurl.la shows that -pthread linker flag is system inherited. Libtool is supposed to pass it differently depending on the compiler but apparently its stupid if it sees PGI.

    So the only real fix here is to have a better way of linking to Curl if its a dependency for NetCDF.

  2. Log in to comment