help regarding installation of current develop branch 0.7.1

Hello everyone.

I have run into problem while installing current develop branch. prior to current changes regarding hdf5 only output, i used these commands to install openmc with parallel hdf5

export FC=/opt/phdf5/1.8.15-gnu/bin/h5pfc

cmake -H. -Bbuild
make -s -C build -j

now i installed parallel hdf5 version 1.8.15 in the path shown above. and set FC=h5pfc (bin directory of HDF5 placed in my path variable). i get this error

– The Fortran compiler identification is GNU
– Check for working Fortran compiler: /opt/phdf5/1.8.15-gnu/bin/h5pfc
– Check for working Fortran compiler: /opt/phdf5/1.8.15-gnu/bin/h5pfc – works
– Detecting Fortran compiler ABI info
– Detecting Fortran compiler ABI info - done
– Checking whether /opt/phdf5/1.8.15-gnu/bin/h5pfc supports Fortran 90
– Checking whether /opt/phdf5/1.8.15-gnu/bin/h5pfc supports Fortran 90 – yes
– Found HDF5: /opt/phdf5/1.8.15-gnu/lib/libhdf5hl_fortran.so;/opt/phdf5/1.8.15-gnu/lib/libhdf5_hl.so;/opt/phdf5/1.8.15-gnu/lib/libhdf5_fortran.so;/opt/phdf5/1.8.15-gnu/lib/libhdf5.so;-ldl;-lm (found version “1.8.15”)
CMake Error at CMakeLists.txt:78 (message):
Parallel HDF5 must be used with MPI.

– Configuring incomplete, errors occurred!
See also “/home/osboxes/Work/openmc/build/CMakeFiles/CMakeOutput.log”.

i have also tried using FC=mpif90. now the cmake executes successfully. output is given below

– The Fortran compiler identification is GNU
– Check for working Fortran compiler: /opt/mpich/3.1.3-gnu/bin/mpif90
– Check for working Fortran compiler: /opt/mpich/3.1.3-gnu/bin/mpif90 – works
– Detecting Fortran compiler ABI info
– Detecting Fortran compiler ABI info - done
– Checking whether /opt/mpich/3.1.3-gnu/bin/mpif90 supports Fortran 90
– Checking whether /opt/mpich/3.1.3-gnu/bin/mpif90 supports Fortran 90 – yes
– Detected MPI wrapper: /opt/mpich/3.1.3-gnu/bin/mpif90
– Found HDF5: /opt/phdf5/1.8.15-gnu/lib/libhdf5hl_fortran.so;/opt/phdf5/1.8.15-gnu/lib/libhdf5_hl.so;/opt/phdf5/1.8.15-gnu/lib/libhdf5_fortran.so;/opt/phdf5/1.8.15-gnu/lib/libhdf5.so;-ldl;-lm (found version “1.8.15”)
– Using parallel HDF5
– Found PythonInterp: /usr/bin/python (found version “2.7.6”)
– Configuring done
– Generating done
– Build files have been written to: /home/osboxes/Work/openmc/build

then use the “make -s -C build -j” command. it runs successfully. then i use the "make install " which also happens successfully. but when i use “openmc --version” i get an error

openmc: error while loading shared libraries: libhdf5hl_fortran.so.10: cannot open shared object file: No such file or directory

can you please help me out with this. what i need to do to sort this error. and now should we use FC=mpif90??

Yes, in the upcoming release, if you are using MPI (whether in combination with parallel HDF5 or not), you should use FC=mpif90. CMake now handles finding HDF5 and setting the appropriate compiler/linker flags rather than relying on the h5fc/h5pfc wrappers.

As to the error you’re receiving, you need to make sure that the library directory for HDF5 is on your LD_LIBRARY_PATH environment variable. So, adding the following to your profile should fix it (assuming you are using bash):

export LD_LIBRARY_PATH=/opt/phdf5/1.8.15-gnu/lib:$LD_LIBRARY_PATH

Best,
Paul

Thanks Paul. I was not able to try it today. Will try it first thing tomorrow and let you know. Thanks for your help.

Paul,

Just a heads up that on the newest version of Mac OSX (El Capitan, 10.11) you can’t count on DYLD_LIBRARY_PATH (the equivalent to LD_LIBRARY_PATH for OSX).

They have essentially removed it for security reasons.

Instead, you must use rpaths to embed the path to dynamic libraries into your application binary at compile time.

Basically: the time for LD_LIBRARY_PATH and DYLD_LIBRARY_PATH are at an end.

I haven’t noticed any problems yet with OpenMC due to this, but your email here reminded me about it (we just struggled through this on my own project). So, just thought I would give you guys a heads up.

Derek

Thanks for pointing that out, Derek! At least for the version of CMake that I am using, it looks like the HDF5 library directory is given as an rpath, so no LD_LIBRARY_PATH or DYLD_LIBRARY_PATH hacks should be necessary.

King- if you could try the following and give the output of the linker line, that might be helpful in figuring out what’s going on in your case:

cmake -DCMAKE_VERBOSE_MAKEFILE=on sourcedir
make

Dear Paul,

It worked! using the LD_LIBRARY_PATH for HDF5 fixed the problem. the same solution had to be applied again for libmpifort.so.12 so had to add mpich/lib to LD_LIBRARY_PATH also. i am also placing the output of cmake -DCMAKE_VERBOSE_MAKEFILE=on here for reference

cmake -H. -Bbuild -DCMAKE_VERBOSE_MAKEFILE=on
– The Fortran compiler identification is GNU
– Check for working Fortran compiler: /opt/mpich/3.1.3-gnu/bin/mpif90
– Check for working Fortran compiler: /opt/mpich/3.1.3-gnu/bin/mpif90 – works
– Detecting Fortran compiler ABI info
– Detecting Fortran compiler ABI info - done
– Checking whether /opt/mpich/3.1.3-gnu/bin/mpif90 supports Fortran 90
– Checking whether /opt/mpich/3.1.3-gnu/bin/mpif90 supports Fortran 90 – yes
– Detected MPI wrapper: /opt/mpich/3.1.3-gnu/bin/mpif90
– Found HDF5: /opt/phdf5/1.8.15-gnu/lib/libhdf5hl_fortran.so;/opt/phdf5/1.8.15-gnu/lib/libhdf5_hl.so;/opt/phdf5/1.8.15-gnu/lib/libhdf5_fortran.so;/opt/phdf5/1.8.15-gnu/lib/libhdf5.so;-ldl;-lm (found version “1.8.15”)
– Using parallel HDF5
– Found PythonInterp: /usr/bin/python (found version “2.7.6”)
– Configuring done
– Generating done
– Build files have been written to: /home/osboxes/Work/openmc/build
osboxes@osboxes:~/Work/openmc$ make -s -C build -j
Scanning dependencies of target fox_fsys
[ 1%] [ 2%] [ 3%] Building Fortran object src/xml/fox/fsys/CMakeFiles/fox_fsys.dir/fox_m_fsys_abort_flush.F90.o
Building Fortran object src/xml/fox/fsys/CMakeFiles/fox_fsys.dir/fox_m_fsys_realtypes.f90.o
Building Fortran object src/xml/fox/fsys/CMakeFiles/fox_fsys.dir/fox_m_fsys_array_str.F90.o
[ 7%] [ 7%] [ 7%] [ 7%] [ 7%] Building Fortran object src/xml/fox/fsys/CMakeFiles/fox_fsys.dir/fox_m_fsys_count_parse_input.F90.o
Building Fortran object src/xml/fox/fsys/CMakeFiles/fox_fsys.dir/fox_m_fsys_string.F90.o
Building Fortran object src/xml/fox/fsys/CMakeFiles/fox_fsys.dir/fox_m_fsys_parse_input.F90.o
Building Fortran object src/xml/fox/fsys/CMakeFiles/fox_fsys.dir/fox_m_fsys_format.F90.o
[ 8%] Building Fortran object src/xml/fox/fsys/CMakeFiles/fox_fsys.dir/fox_m_fsys_string_list.F90.o
Building Fortran object src/xml/fox/fsys/CMakeFiles/fox_fsys.dir/fox_m_fsys_varstr.F90.o
Linking Fortran static library …/…/…/…/lib/libfox_fsys.a
/usr/bin/ar cr …/…/…/…/lib/libfox_fsys.a CMakeFiles/fox_fsys.dir/fox_m_fsys_realtypes.f90.o CMakeFiles/fox_fsys.dir/fox_m_fsys_abort_flush.F90.o CMakeFiles/fox_fsys.dir/fox_m_fsys_array_str.F90.o CMakeFiles/fox_fsys.dir/fox_m_fsys_count_parse_input.F90.o CMakeFiles/fox_fsys.dir/fox_m_fsys_format.F90.o CMakeFiles/fox_fsys.dir/fox_m_fsys_parse_input.F90.o CMakeFiles/fox_fsys.dir/fox_m_fsys_string.F90.o CMakeFiles/fox_fsys.dir/fox_m_fsys_string_list.F90.o CMakeFiles/fox_fsys.dir/fox_m_fsys_varstr.F90.o
/usr/bin/ranlib …/…/…/…/lib/libfox_fsys.a
[ 8%] Built target fox_fsys
Scanning dependencies of target fox_utils
[ 9%] [ 10%] Building Fortran object src/xml/fox/utils/CMakeFiles/fox_utils.dir/fox_m_utils_uri.F90.o
Building Fortran object src/xml/fox/utils/CMakeFiles/fox_utils.dir/fox_m_utils_mtprng.F90.o
[ 11%] Building Fortran object src/xml/fox/utils/CMakeFiles/fox_utils.dir/fox_m_utils_uuid.F90.o
[ 11%] Building Fortran object src/xml/fox/utils/CMakeFiles/fox_utils.dir/FoX_utils.f90.o
Linking Fortran static library …/…/…/…/lib/libfox_utils.a
/usr/bin/ar cr …/…/…/…/lib/libfox_utils.a CMakeFiles/fox_utils.dir/FoX_utils.f90.o CMakeFiles/fox_utils.dir/fox_m_utils_mtprng.F90.o CMakeFiles/fox_utils.dir/fox_m_utils_uri.F90.o CMakeFiles/fox_utils.dir/fox_m_utils_uuid.F90.o
/usr/bin/ranlib …/…/…/…/lib/libfox_utils.a
[ 11%] Built target fox_utils
Scanning dependencies of target fox_common
[ 13%] [ 13%] [ 13%] Building Fortran object src/xml/fox/common/CMakeFiles/fox_common.dir/m_common_error.F90.o
Building Fortran object src/xml/fox/common/CMakeFiles/fox_common.dir/m_common_charset.F90.o
Building Fortran object src/xml/fox/common/CMakeFiles/fox_common.dir/m_common_content_model.F90.o
[ 14%] Building Fortran object src/xml/fox/common/CMakeFiles/fox_common.dir/m_common_notations.F90.o
[ 15%] [ 16%] Building Fortran object src/xml/fox/common/CMakeFiles/fox_common.dir/m_common_namecheck.F90.o
Building Fortran object src/xml/fox/common/CMakeFiles/fox_common.dir/m_common_entities.F90.o
[ 17%] Building Fortran object src/xml/fox/common/CMakeFiles/fox_common.dir/m_common_element.F90.o
[ 19%] [ 19%] Building Fortran object src/xml/fox/common/CMakeFiles/fox_common.dir/m_common_attrs.F90.o
Building Fortran object src/xml/fox/common/CMakeFiles/fox_common.dir/m_common_struct.F90.o
[ 20%] [ 20%] [ 21%] [ 22%] [ 23%] Building Fortran object src/xml/fox/common/CMakeFiles/fox_common.dir/m_common_elstack.F90.o
Building Fortran object src/xml/fox/common/CMakeFiles/fox_common.dir/m_common_buffer.F90.o
[ 24%] Building Fortran object src/xml/fox/common/CMakeFiles/fox_common.dir/m_common_entity_expand.F90.o
Building Fortran object src/xml/fox/common/CMakeFiles/fox_common.dir/FoX_common.F90.o
Building Fortran object src/xml/fox/common/CMakeFiles/fox_common.dir/m_common_namespaces.F90.o
Building Fortran object src/xml/fox/common/CMakeFiles/fox_common.dir/m_common_io.F90.o
Linking Fortran static library …/…/…/…/lib/libfox_common.a
/usr/bin/ar cr …/…/…/…/lib/libfox_common.a CMakeFiles/fox_common.dir/FoX_common.F90.o CMakeFiles/fox_common.dir/m_common_attrs.F90.o CMakeFiles/fox_common.dir/m_common_buffer.F90.o CMakeFiles/fox_common.dir/m_common_charset.F90.o CMakeFiles/fox_common.dir/m_common_content_model.F90.o CMakeFiles/fox_common.dir/m_common_element.F90.o CMakeFiles/fox_common.dir/m_common_elstack.F90.o CMakeFiles/fox_common.dir/m_common_entities.F90.o CMakeFiles/fox_common.dir/m_common_entity_expand.F90.o CMakeFiles/fox_common.dir/m_common_error.F90.o CMakeFiles/fox_common.dir/m_common_io.F90.o CMakeFiles/fox_common.dir/m_common_namecheck.F90.o CMakeFiles/fox_common.dir/m_common_namespaces.F90.o CMakeFiles/fox_common.dir/m_common_notations.F90.o CMakeFiles/fox_common.dir/m_common_struct.F90.o
/usr/bin/ranlib …/…/…/…/lib/libfox_common.a
[ 24%] Built target fox_common
Scanning dependencies of target fox_sax
Scanning dependencies of target fox_wxml
[ 26%] [ 26%] Building Fortran object src/xml/fox/wxml/CMakeFiles/fox_wxml.dir/m_wxml_escape.F90.o
Building Fortran object src/xml/fox/sax/CMakeFiles/fox_sax.dir/m_sax_xml_source.F90.o
[ 27%] Building Fortran object src/xml/fox/wxml/CMakeFiles/fox_wxml.dir/m_wxml_core.F90.o
[ 28%] Building Fortran object src/xml/fox/sax/CMakeFiles/fox_sax.dir/m_sax_reader.F90.o
[ 29%] Building Fortran object src/xml/fox/sax/CMakeFiles/fox_sax.dir/m_sax_types.F90.o
[ 30%] Building Fortran object src/xml/fox/sax/CMakeFiles/fox_sax.dir/m_sax_tokenizer.F90.o
[ 31%] Building Fortran object src/xml/fox/wxml/CMakeFiles/fox_wxml.dir/m_wxml_overloads.F90.o
[ 32%] Building Fortran object src/xml/fox/sax/CMakeFiles/fox_sax.dir/m_sax_parser.F90.o
[ 33%] Building Fortran object src/xml/fox/wxml/CMakeFiles/fox_wxml.dir/FoX_wxml.f90.o
Linking Fortran static library …/…/…/…/lib/libfox_wxml.a
/usr/bin/ar cr …/…/…/…/lib/libfox_wxml.a CMakeFiles/fox_wxml.dir/FoX_wxml.f90.o CMakeFiles/fox_wxml.dir/m_wxml_core.F90.o CMakeFiles/fox_wxml.dir/m_wxml_escape.F90.o CMakeFiles/fox_wxml.dir/m_wxml_overloads.F90.o
/usr/bin/ranlib …/…/…/…/lib/libfox_wxml.a
[ 33%] Built target fox_wxml
[ 34%] Building Fortran object src/xml/fox/sax/CMakeFiles/fox_sax.dir/m_sax_operate.F90.o
[ 35%] Building Fortran object src/xml/fox/sax/CMakeFiles/fox_sax.dir/FoX_sax.f90.o
Linking Fortran static library …/…/…/…/lib/libfox_sax.a
/usr/bin/ar cr …/…/…/…/lib/libfox_sax.a CMakeFiles/fox_sax.dir/FoX_sax.f90.o CMakeFiles/fox_sax.dir/m_sax_operate.F90.o CMakeFiles/fox_sax.dir/m_sax_parser.F90.o CMakeFiles/fox_sax.dir/m_sax_reader.F90.o CMakeFiles/fox_sax.dir/m_sax_tokenizer.F90.o CMakeFiles/fox_sax.dir/m_sax_types.F90.o CMakeFiles/fox_sax.dir/m_sax_xml_source.F90.o
/usr/bin/ranlib …/…/…/…/lib/libfox_sax.a
[ 35%] Built target fox_sax
Scanning dependencies of target fox_dom
[ 36%] Building Fortran object src/xml/fox/dom/CMakeFiles/fox_dom.dir/m_dom_error.f90.o
[ 37%] Building Fortran object src/xml/fox/dom/CMakeFiles/fox_dom.dir/m_dom_dom.F90.o
[ 39%] [ 39%] [ 39%] Building Fortran object src/xml/fox/dom/CMakeFiles/fox_dom.dir/m_dom_extras.F90.o
Building Fortran object src/xml/fox/dom/CMakeFiles/fox_dom.dir/m_dom_parse.f90.o
Building Fortran object src/xml/fox/dom/CMakeFiles/fox_dom.dir/m_dom_utils.f90.o
[ 40%] Building Fortran object src/xml/fox/dom/CMakeFiles/fox_dom.dir/FoX_dom.f90.o
Linking Fortran static library …/…/…/…/lib/libfox_dom.a
/usr/bin/ar cr …/…/…/…/lib/libfox_dom.a CMakeFiles/fox_dom.dir/FoX_dom.f90.o CMakeFiles/fox_dom.dir/m_dom_error.f90.o CMakeFiles/fox_dom.dir/m_dom_parse.f90.o CMakeFiles/fox_dom.dir/m_dom_utils.f90.o CMakeFiles/fox_dom.dir/m_dom_dom.F90.o CMakeFiles/fox_dom.dir/m_dom_extras.F90.o
/usr/bin/ranlib …/…/…/…/lib/libfox_dom.a
[ 40%] Built target fox_dom
Scanning dependencies of target openmc
[ 41%] [ 42%] [ 43%] Building Fortran object CMakeFiles/openmc.dir/src/constants.F90.o
[ 43%] Building Fortran object CMakeFiles/openmc.dir/src/endf_header.F90.o
[ 45%] [ 44%] [ 45%] Building Fortran object CMakeFiles/openmc.dir/src/bank_header.F90.o
Building Fortran object CMakeFiles/openmc.dir/src/mesh_header.F90.o
Building Fortran object CMakeFiles/openmc.dir/src/dict_header.F90.o
[ 46%] Building Fortran object CMakeFiles/openmc.dir/src/material_header.F90.o
Building Fortran object CMakeFiles/openmc.dir/src/source_header.F90.o
[ 47%] [ 48%] [ 48%] Building Fortran object CMakeFiles/openmc.dir/src/stl_vector.F90.o
Building Fortran object CMakeFiles/openmc.dir/src/message_passing.F90.o
Building Fortran object CMakeFiles/openmc.dir/src/xml/openmc_fox.F90.o
Building Fortran object CMakeFiles/openmc.dir/src/ppmlib.F90.o
[ 49%] Building Fortran object CMakeFiles/openmc.dir/src/progress_header.F90.o
[ 50%] [ 51%] Building Fortran object CMakeFiles/openmc.dir/src/list_header.F90.o
[ 52%] [ 53%] [ 54%] Building Fortran object CMakeFiles/openmc.dir/src/cmfd_header.F90.o
[ 55%] Building Fortran object CMakeFiles/openmc.dir/src/geometry_header.F90.o
Building Fortran object CMakeFiles/openmc.dir/src/plot_header.F90.o
Building Fortran object CMakeFiles/openmc.dir/src/trigger_header.F90.o
Building Fortran object CMakeFiles/openmc.dir/src/surface_header.F90.o
[ 56%] [ 57%] Building Fortran object CMakeFiles/openmc.dir/src/timer_header.F90.o
Building Fortran object CMakeFiles/openmc.dir/src/vector_header.F90.o
[ 58%] Building Fortran object CMakeFiles/openmc.dir/src/tally_header.F90.o
[ 59%] Building Fortran object CMakeFiles/openmc.dir/src/ace_header.F90.o
[ 60%] Building Fortran object CMakeFiles/openmc.dir/src/set_header.F90.o
[ 61%] Building Fortran object CMakeFiles/openmc.dir/src/matrix_header.F90.o
[ 62%] Building Fortran object CMakeFiles/openmc.dir/src/global.F90.o
[ 64%] [ 64%] [ 65%] Building Fortran object CMakeFiles/openmc.dir/src/random_lcg.F90.o
[ 66%] [ 67%] Building Fortran object CMakeFiles/openmc.dir/src/error.F90.o
Building Fortran object CMakeFiles/openmc.dir/src/cmfd_prod_operator.F90.o
Building Fortran object CMakeFiles/openmc.dir/src/cmfd_loss_operator.F90.o
Building Fortran object CMakeFiles/openmc.dir/src/tally_initialize.F90.o
[ 67%] Building Fortran object CMakeFiles/openmc.dir/src/math.F90.o
[ 68%] [ 69%] [ 70%] Building Fortran object CMakeFiles/openmc.dir/src/string.F90.o
[ 71%] Building Fortran object CMakeFiles/openmc.dir/src/particle_header.F90.o
[ 72%] Building Fortran object CMakeFiles/openmc.dir/src/search.F90.o
Building Fortran object CMakeFiles/openmc.dir/src/xml_interface.F90.o
Building Fortran object CMakeFiles/openmc.dir/src/hdf5_interface.F90.o
[ 73%] Building Fortran object CMakeFiles/openmc.dir/src/cmfd_solver.F90.o
[ 73%] Building Fortran object CMakeFiles/openmc.dir/src/mesh.F90.o
[ 74%] [ 75%] Building Fortran object CMakeFiles/openmc.dir/src/interpolation.F90.o
Building Fortran object CMakeFiles/openmc.dir/src/endf.F90.o
[ 76%] Building Fortran object CMakeFiles/openmc.dir/src/fission.F90.o
[ 77%] Building Fortran object CMakeFiles/openmc.dir/src/output.F90.o
[ 78%] Building Fortran object CMakeFiles/openmc.dir/src/eigenvalue.F90.o
[ 80%] [ 80%] Building Fortran object CMakeFiles/openmc.dir/src/track_output.F90.o
Building Fortran object CMakeFiles/openmc.dir/src/particle_restart_write.F90.o
[ 81%] Building Fortran object CMakeFiles/openmc.dir/src/tally.F90.o
[ 81%] [ 82%] [ 83%] [ 84%] Building Fortran object CMakeFiles/openmc.dir/src/energy_grid.F90.o
[ 84%] Building Fortran object CMakeFiles/openmc.dir/src/cmfd_data.F90.o
Building Fortran object CMakeFiles/openmc.dir/src/state_point.F90.o
Building Fortran object CMakeFiles/openmc.dir/src/summary.F90.o
Building Fortran object CMakeFiles/openmc.dir/src/ace.F90.o
[ 85%] Building Fortran object CMakeFiles/openmc.dir/src/cross_section.F90.o
[ 86%] Building Fortran object CMakeFiles/openmc.dir/src/physics.F90.o
[ 87%] [ 88%] Building Fortran object CMakeFiles/openmc.dir/src/cmfd_input.F90.o
[ 89%] Building Fortran object CMakeFiles/openmc.dir/src/geometry.F90.o
[ 90%] Building Fortran object CMakeFiles/openmc.dir/src/trigger.F90.o
Building Fortran object CMakeFiles/openmc.dir/src/finalize.F90.o
[ 91%] Building Fortran object CMakeFiles/openmc.dir/src/cmfd_execute.F90.o
[ 92%] Building Fortran object CMakeFiles/openmc.dir/src/input_xml.F90.o
[ 93%] [ 94%] Building Fortran object CMakeFiles/openmc.dir/src/source.F90.o
Building Fortran object CMakeFiles/openmc.dir/src/tracking.F90.o
[ 95%] Building Fortran object CMakeFiles/openmc.dir/src/plot.F90.o
[ 96%] Building Fortran object CMakeFiles/openmc.dir/src/particle_restart.F90.o
[ 97%] Building Fortran object CMakeFiles/openmc.dir/src/simulation.F90.o
[ 98%] Building Fortran object CMakeFiles/openmc.dir/src/initialize.F90.o
[ 99%] [100%] Building Fortran object CMakeFiles/openmc.dir/src/doppler.F90.o
Building Fortran object CMakeFiles/openmc.dir/src/main.F90.o
Linking Fortran executable bin/openmc
/opt/mpich/3.1.3-gnu/bin/mpif90 CMakeFiles/openmc.dir/src/input_xml.F90.o CMakeFiles/openmc.dir/src/ppmlib.F90.o CMakeFiles/openmc.dir/src/geometry_header.F90.o CMakeFiles/openmc.dir/src/tally_initialize.F90.o CMakeFiles/openmc.dir/src/source.F90.o CMakeFiles/openmc.dir/src/cmfd_data.F90.o CMakeFiles/openmc.dir/src/tracking.F90.o CMakeFiles/openmc.dir/src/plot_header.F90.o CMakeFiles/openmc.dir/src/ace.F90.o CMakeFiles/openmc.dir/src/cmfd_prod_operator.F90.o CMakeFiles/openmc.dir/src/set_header.F90.o CMakeFiles/openmc.dir/src/state_point.F90.o CMakeFiles/openmc.dir/src/interpolation.F90.o CMakeFiles/openmc.dir/src/geometry.F90.o CMakeFiles/openmc.dir/src/ace_header.F90.o CMakeFiles/openmc.dir/src/cross_section.F90.o CMakeFiles/openmc.dir/src/particle_restart.F90.o CMakeFiles/openmc.dir/src/material_header.F90.o CMakeFiles/openmc.dir/src/message_passing.F90.o CMakeFiles/openmc.dir/src/error.F90.o CMakeFiles/openmc.dir/src/dict_header.F90.o CMakeFiles/openmc.dir/src/endf.F90.o CMakeFiles/openmc.dir/src/doppler.F90.o CMakeFiles/openmc.dir/src/list_header.F90.o CMakeFiles/openmc.dir/src/eigenvalue.F90.o CMakeFiles/openmc.dir/src/trigger.F90.o CMakeFiles/openmc.dir/src/progress_header.F90.o CMakeFiles/openmc.dir/src/simulation.F90.o CMakeFiles/openmc.dir/src/particle_restart_write.F90.o CMakeFiles/openmc.dir/src/mesh.F90.o CMakeFiles/openmc.dir/src/physics.F90.o CMakeFiles/openmc.dir/src/cmfd_solver.F90.o CMakeFiles/openmc.dir/src/vector_header.F90.o CMakeFiles/openmc.dir/src/search.F90.o CMakeFiles/openmc.dir/src/particle_header.F90.o CMakeFiles/openmc.dir/src/main.F90.o CMakeFiles/openmc.dir/src/tally.F90.o CMakeFiles/openmc.dir/src/string.F90.o CMakeFiles/openmc.dir/src/finalize.F90.o CMakeFiles/openmc.dir/src/source_header.F90.o CMakeFiles/openmc.dir/src/surface_header.F90.o CMakeFiles/openmc.dir/src/endf_header.F90.o CMakeFiles/openmc.dir/src/xml_interface.F90.o CMakeFiles/openmc.dir/src/plot.F90.o CMakeFiles/openmc.dir/src/random_lcg.F90.o CMakeFiles/openmc.dir/src/timer_header.F90.o CMakeFiles/openmc.dir/src/constants.F90.o CMakeFiles/openmc.dir/src/fission.F90.o CMakeFiles/openmc.dir/src/math.F90.o CMakeFiles/openmc.dir/src/energy_grid.F90.o CMakeFiles/openmc.dir/src/initialize.F90.o CMakeFiles/openmc.dir/src/hdf5_interface.F90.o CMakeFiles/openmc.dir/src/global.F90.o CMakeFiles/openmc.dir/src/matrix_header.F90.o CMakeFiles/openmc.dir/src/mesh_header.F90.o CMakeFiles/openmc.dir/src/cmfd_loss_operator.F90.o CMakeFiles/openmc.dir/src/cmfd_input.F90.o CMakeFiles/openmc.dir/src/summary.F90.o CMakeFiles/openmc.dir/src/output.F90.o CMakeFiles/openmc.dir/src/trigger_header.F90.o CMakeFiles/openmc.dir/src/tally_header.F90.o CMakeFiles/openmc.dir/src/track_output.F90.o CMakeFiles/openmc.dir/src/cmfd_header.F90.o CMakeFiles/openmc.dir/src/bank_header.F90.o CMakeFiles/openmc.dir/src/cmfd_execute.F90.o CMakeFiles/openmc.dir/src/stl_vector.F90.o CMakeFiles/openmc.dir/src/xml/openmc_fox.F90.o -o bin/openmc -rdynamic -fopenmp -L/opt/phdf5/1.8.15-gnu/lib /opt/phdf5/1.8.15-gnu/lib/libhdf5hl_fortran.so /opt/phdf5/1.8.15-gnu/lib/libhdf5_hl.so /opt/phdf5/1.8.15-gnu/lib/libhdf5_fortran.so /opt/phdf5/1.8.15-gnu/lib/libhdf5.so -ldl -lm lib/libfox_dom.a lib/libfox_wxml.a lib/libfox_sax.a lib/libfox_common.a lib/libfox_utils.a lib/libfox_fsys.a -Wl,-rpath,/opt/phdf5/1.8.15-gnu/lib:
[100%] Built target openmc

thanks for your help :slight_smile:

Glad to hear it worked, although now I’m even more confused because according to the output, the library directory should have been embedded in the executable so that you shouldn’t have needed to set LD_LIBRARY_PATH. I believe mpif90 also uses rpath (at least for MPICH) so that nothing special should be needed at run-time.

One more request: can you run the following command on the openmc executable?

objdump -p build/bin/openmc | egrep ‘RPATH|RUNPATH’

Thanks,
Paul

Hello Paul,

The output of the command is

RUNPATH /opt/phdf5/1.8.15-gnu/lib::/opt/mpich/3.1.3-gnu/lib