Opened 2 years ago
Last modified 3 months ago
#69636 assigned defect
deal.ii @9.4.2_2+gfortran+openblas: Kokkos_OpenMP.hpp:46:10: fatal error: 'omp.h' file not found
| Reported by: | Matteo-Malve | Owned by: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.9.1 |
| Keywords: | Cc: | Dave-Allured (Dave Allured) | |
| Port: | deal.ii, kokkos |
Description
After a recent selfupdate cannot build deal.ii library's port anymore... :( I'm not an expert, but I've already tried uninstalling it and reinstalling it, and to run a "port upgrade outdated".
sudo port install deal.ii ---> Computing dependencies for deal.ii ---> Fetching archive for deal.ii ---> Attempting to fetch deal.ii-9.4.2_2+gfortran+openblas.darwin_23.arm64.tbz2 from https://fra.de.packages.macports.org/deal.ii ---> Attempting to fetch deal.ii-9.4.2_2+gfortran+openblas.darwin_23.arm64.tbz2 from https://packages.macports.org/deal.ii ---> Attempting to fetch deal.ii-9.4.2_2+gfortran+openblas.darwin_23.arm64.tbz2 from https://nue.de.packages.macports.org/deal.ii ---> Building deal.ii Error: Failed to build deal.ii: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_deal.ii/deal.ii/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Error: Processing of port deal.ii failed
I will now attach main.log
Attachments (4)
Change History (9)
Changed 2 years ago by Matteo-Malve
Changed 2 years ago by Matteo-Malve
| Attachment: | CMakeError.log added |
|---|
Changed 2 years ago by Matteo-Malve
| Attachment: | CMakeOutput.log added |
|---|
comment:1 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)
| Owner: | set to MarcusCalhoun-Lopez |
|---|---|
| Status: | new → assigned |
The main.log contains several attempts to build the port without cleaning in between. The first attempt on March 1 failed with:
/opt/local/include/OpenMP/Kokkos_OpenMP.hpp:46:10: fatal error: 'omp.h' file not found
46 | #include <omp.h>
| ^~~~~~~
The subsequent attempts on March 31 failed with:
Call Stack (most recent call first):
cmake/macros/macro_verbose_include.cmake:19 (INCLUDE)
CMakeLists.txt:138 (VERBOSE_INCLUDE)
CMake Error at cmake/setup_finalize.cmake:137 (MESSAGE):
Configuration error: Cannot compile a test program with the final set of
compiler and linker flags:
CXX flags (RELEASE): -pedantic -fPIC -Wall -Wextra -Wmissing-braces -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wsuggest-override -Wswitch -Wsynth -Wwrite-strings -Wno-deprecated-declarations -Wno-psabi -Wfloat-conversion -Qunused-arguments -Wno-unsupported-friend -Wno-undefined-var-template -Wno-pass-failed -openmp-simd -ftemplate-depth=1024 -Wno-unused-local-typedefs -O2 -funroll-loops -fstrict-aliasing -Wno-unused-local-typedefs
LD flags (RELEASE): -fuse-ld=lld -DKOKKOS_DEPENDENCE
LIBRARIES (RELEASE): /opt/local/lib/libz.dylib;/opt/local/lib/libumfpack.dylib;/opt/local/lib/libcholmod.dylib;/opt/local/lib/libccolamd.dylib;/opt/local/lib/libcolamd.dylib;/opt/local/lib/libcamd.dylib;/opt/local/lib/libsuitesparseconfig.dylib;/opt/local/lib/libamd.dylib;/opt/local/lib/libmetis.dylib;/opt/local/lib/libkokkoscore.dylib;/opt/local/lib/libkokkoscontainers.dylib;/opt/local/lib/libadolc.dylib;/opt/local/libexec/boost/1.76/lib/libboost_iostreams-mt.dylib;/opt/local/libexec/boost/1.76/lib/libboost_serialization-mt.dylib;/opt/local/libexec/boost/1.76/lib/libboost_system-mt.dylib;/opt/local/libexec/boost/1.76/lib/libboost_thread-mt.dylib;/opt/local/libexec/boost/1.76/lib/libboost_regex-mt.dylib;/opt/local/libexec/boost/1.76/lib/libboost_chrono-mt.dylib;/opt/local/libexec/boost/1.76/lib/libboost_date_time-mt.dylib;/opt/local/libexec/boost/1.76/lib/libboost_atomic-mt.dylib;/opt/local/lib/libarpack.dylib;/opt/local/lib/libopenblas.dylib;/opt/local/lib/libassimp.dylib;/opt/local/lib/libgmpxx.dylib;/opt/local/lib/libgmsh.dylib;/opt/local/lib/libgsl.dylib;/opt/local/lib/libgslcblas.dylib;/opt/local/lib/libmuparser.dylib;/opt/local/libexec/opencascade/lib/libTKBO.dylib;/opt/local/libexec/opencascade/lib/libTKBool.dylib;/opt/local/libexec/opencascade/lib/libTKBRep.dylib;/opt/local/libexec/opencascade/lib/libTKernel.dylib;/opt/local/libexec/opencascade/lib/libTKFeat.dylib;/opt/local/libexec/opencascade/lib/libTKFillet.dylib;/opt/local/libexec/opencascade/lib/libTKG2d.dylib;/opt/local/libexec/opencascade/lib/libTKG3d.dylib;/opt/local/libexec/opencascade/lib/libTKGeomAlgo.dylib;/opt/local/libexec/opencascade/lib/libTKGeomBase.dylib;/opt/local/libexec/opencascade/lib/libTKHLR.dylib;/opt/local/libexec/opencascade/lib/libTKIGES.dylib;/opt/local/libexec/opencascade/lib/libTKMath.dylib;/opt/local/libexec/opencascade/lib/libTKMesh.dylib;/opt/local/libexec/opencascade/lib/libTKOffset.dylib;/opt/local/libexec/opencascade/lib/libTKPrim.dylib;/opt/local/libexec/opencascade/lib/libTKShHealing.dylib;/opt/local/libexec/opencascade/lib/libTKSTEP.dylib;/opt/local/libexec/opencascade/lib/libTKSTEPAttr.dylib;/opt/local/libexec/opencascade/lib/libTKSTEPBase.dylib;/opt/local/libexec/opencascade/lib/libTKSTEP209.dylib;/opt/local/libexec/opencascade/lib/libTKSTL.dylib;/opt/local/libexec/opencascade/lib/libTKTopAlgo.dylib;/opt/local/libexec/opencascade/lib/libTKXSBase.dylib;/opt/local/libexec/sundials5/lib/libsundials_idas.dylib;/opt/local/libexec/sundials5/lib/libsundials_arkode.dylib;/opt/local/libexec/sundials5/lib/libsundials_kinsol.dylib;/opt/local/libexec/sundials5/lib/libsundials_nvecserial.dylib;/opt/local/lib/libsymengine.0.11.2.dylib;/opt/local/lib/libflint.dylib;/opt/local/lib/libmpc.dylib;/opt/local/lib/libmpfr.dylib;/opt/local/lib/libgmp.dylib;
I don't know which aspect of the CMake logs corresponds to this failure but it may not be relevant since it may have been caused by the original error. I suggest running sudo port clean deal.ii and then trying again so that we can see which error happens upon a new clean build.
The deal.ii port is outdated (#68123); maybe updating it would help.
The /opt/local/include/OpenMP/Kokkos_OpenMP.hpp file is provided by the kokkos port; maybe the problem lies with that port instead.
comment:2 Changed 2 years ago by Matteo-Malve
Thanks a lot for your quick and extensive answer. I was not aware of the cleaning feature. My bad. Ok, so I ran
sudo port clean deal.ii
and unfortunately it still gives me an error.
sudo port clean deal.ii ---> Cleaning deal.ii sudo port install deal.ii ---> Computing dependencies for deal.ii ---> Fetching archive for deal.ii ---> Attempting to fetch deal.ii-9.4.2_2+gfortran+openblas.darwin_23.arm64.tbz2 from https://fra.de.packages.macports.org/deal.ii ---> Attempting to fetch deal.ii-9.4.2_2+gfortran+openblas.darwin_23.arm64.tbz2 from https://packages.macports.org/deal.ii ---> Attempting to fetch deal.ii-9.4.2_2+gfortran+openblas.darwin_23.arm64.tbz2 from https://nue.de.packages.macports.org/deal.ii ---> Fetching distfiles for deal.ii ---> Verifying checksums for deal.ii ---> Extracting deal.ii ---> Configuring deal.ii ---> Building deal.ii Error: Failed to build deal.ii: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_deal.ii/deal.ii/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Error: Processing of port deal.ii failed
I attach the new log file for this, maybe it will give better insights.
comment:3 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)
| Port: | kokkos added |
|---|---|
| Summary: | Failed build for port deal.ii → deal.ii @9.4.2_2+gfortran+openblas: Kokkos_OpenMP.hpp:46:10: fatal error: 'omp.h' file not found |
| Version: | → 2.9.1 |
Ok, the new log gets us back to:
/opt/local/include/OpenMP/Kokkos_OpenMP.hpp:46:10: fatal error: 'omp.h' file not found
46 | #include <omp.h>
| ^~~~~~~
1 error generated.
so that does appear to be the first problem we need to figure out.
comment:4 Changed 2 years ago by Matteo-Malve
Ok, thanks a lot. I stand by for instructions. Do not hesitate to ask if you need me to try out something.
comment:5 Changed 3 months ago by Dave-Allured (Dave Allured)
| Cc: | Dave-Allured added |
|---|

main.log