[petsc-dev] ExodusII + Cmake Doesn't Find PnetCDF/NetCDF
Jacob Faibussowitsch
jacob.fai at gmail.com
Thu May 21 19:46:30 CDT 2020
Hello All,
I ran a ./reconfigure —with-clean to update older packages/clean install however I ran into some issues. My arch (lets call it debug-arch) configuration isn’t “Standard” in that I use another arch (master-arch) to house many common packages and point all other arches to it via the “—with-package-name-dir” option.
During the debug-arch configure exodusII does not finish configure with the following error message:
CMake Error at /usr/local/Cellar/cmake/3.17.2/share/cmake/Modules/FindPackageHandleStandardArgs.cma\
ke:164 (message):
Could NOT find PNetCDF (missing: PNetCDF_LIBRARIES PNetCDF_INCLUDE_DIRS)
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.17.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:445 (_FPHS\
A_FAILURE_MESSAGE)
cmake/tribits/common_tpls/find_modules/FindPNetCDF.cmake:216 (find_package_handle_standard_args)
cmake/tribits/common_tpls/utils/AddPackageDependency.cmake:86 (find_package)
cmake/tribits/common_tpls/find_modules/FindNetCDF.cmake:322 (add_package_dependency)
cmake/tribits/common_tpls/FindTPLNetcdf.cmake:70 (find_package)
cmake/tribits/core/package_arch/TribitsProcessEnabledTpl.cmake:106 (INCLUDE)
cmake/tribits/core/package_arch/TribitsGlobalMacros.cmake:1724 (TRIBITS_PROCESS_ENABLED_TPL)
cmake/tribits/core/package_arch/TribitsProjectImpl.cmake:206 (TRIBITS_PROCESS_ENABLED_TPLS)
cmake/tribits/core/package_arch/TribitsProject.cmake:93 (TRIBITS_PROJECT_IMPL)
CMakeLists.txt:46 (TRIBITS_PROJECT)
However checking the Cmake logs I find the following:
Processing enabled TPL: Pnetcdf (enabled explicitly, disable with -DTPL_ENABLE_Pnetcdf=OFF)
-- Pnetcdf_LIBRARY_NAMES='pnetcdf'
-- Searching for libs in Pnetcdf_LIBRARY_DIRS='/Users/jacobfaibussowitsch/NoSync/petscpackages/lib'
-- Searching for a lib in the set "pnetcdf":
-- Searching for lib 'pnetcdf' ...
-- Found lib '/Users/jacobfaibussowitsch/NoSync/petscpackages/lib/libpnetcdf.dylib'
-- TPL_Pnetcdf_LIBRARIES='/Users/jacobfaibussowitsch/NoSync/petscpackages/lib/libpnetcdf.dylib'
-- Searching for headers in Pnetcdf_INCLUDE_DIRS='/Users/jacobfaibussowitsch/NoSync/petscpackages/i\
nclude'
-- Searching for a header file in the set "pnetcdf.h":
-- Searching for header 'pnetcdf.h' ...
-- Found header '/Users/jacobfaibussowitsch/NoSync/petscpackages/include/pnetcdf.h'
-- Found TPL 'Pnetcdf' include dirs '/Users/jacobfaibussowitsch/NoSync/petscpackages/include'
-- TPL_Pnetcdf_INCLUDE_DIRS='/Users/jacobfaibussowitsch/NoSync/petscpackages/include'
Processing enabled TPL: Netcdf (enabled explicitly, disable with -DTPL_ENABLE_Netcdf=OFF)
Indicating that it does indeed find pnetcdf… but saves its location to “TPL_Pnetcdf_INCLUDE_DIRS” instead of the “PNetCDF_INCLUDE_DIRS” which it later searches. I have included both reconfigure scripts, and latest configure.log.
Best regards,
Jacob Faibussowitsch
(Jacob Fai - booss - oh - vitch)
Cell: (312) 694-3391
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20200521/4d9c4aa7/attachment-0004.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reconfigure-arch-darwin-c-debug.py
Type: text/x-python-script
Size: 1031 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20200521/4d9c4aa7/attachment-0002.bin>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20200521/4d9c4aa7/attachment-0005.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reconfigure-master-arch-darwin-c-debug.py
Type: text/x-python-script
Size: 615 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20200521/4d9c4aa7/attachment-0003.bin>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20200521/4d9c4aa7/attachment-0006.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.log
Type: application/octet-stream
Size: 1241585 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20200521/4d9c4aa7/attachment-0001.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20200521/4d9c4aa7/attachment-0007.html>
More information about the petsc-dev
mailing list