[sundials-users] Build fails on Ubuntu: OpenMP not found

3 views
Skip to first unread message

Peles, Slaven

unread,
Jan 14, 2026, 5:56:36 PMJan 14
to SUNDIAL...@listserv.llnl.gov

Folks,

 

I tried to build SUNDIALS v7.5.0 on Ubuntu with clang-18 compiler. I enabled LAPACK and KLU modules everything else was default settings. I get the error shown below. Is this a known issue or should I submit a bug report? Please let me know what additional debugging information I could provide.

 

Thanks,

Slaven

 

SUNDIALS_GIT_VERSION: v7.5.0

Building SUNDIALS in 'RelWithDebInfo' mode.

Using int64_t for indices

C standard set to 99

C extensions set to ON

Looking for rt library... found

Looking for POSIX timers... FAILED

Appending C RELWITHDEBINFO flags

Appending Fortran RELWITHDEBINFO flags

CMake Error at /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message):

   Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)

Call Stack (most recent call first):

   /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)

   /usr/share/cmake-3.28/Modules/FindOpenMP.cmake:580 (find_package_handle_standard_args)

   cmake/tpl/SundialsOpenMP.cmake:53 (find_package)

   cmake/SundialsSetupTPLs.cmake:39 (include)

   CMakeLists.txt:198 (include)

 

Configuring incomplete, errors occurred!



To unsubscribe from the SUNDIALS-USERS list: write to: mailto:SUNDIALS-USERS-...@LISTSERV.LLNL.GOV

Balos, Cody

unread,
Jan 14, 2026, 6:05:57 PMJan 14
to SUNDIAL...@listserv.llnl.gov
Hi Slaven,

It is strange that CMake cannot find OpenMP. Can you send your CMakeError.log and CMakeOutput.log (usually in the builddir/CMakeFiles directory). Perhaps you don’t have libomp-18-dev installed and need it? 

Thanks,
Cody
Reply all
Reply to author
Forward
0 new messages