Hi All
I downloaded SALOME-9.8.0-native-DB10-SRC on debian 11 and try to build it, but I got lot of error.
Now I’m dealing with the first failed item openturns.
Is anyone could help me to fix this issue?
Thanks
the output as below
cookie@debian:~/SALOME-9.8.0-native-DB10-SRC$ ./sat -t compile SALOME-9.8.0-native -f -p openturns
Executing the compile commands in the build directories of the products of the application SALOME-9.8.0-native
SOURCE directory = /home/cookie/SALOME-9.8.0-native-DB10-SRC/salomeTools/../SOURCES
BUILD directory = /home/cookie/SALOME-9.8.0-native-DB10-SRC/salomeTools/../BUILD
Compilation of openturns ..................... SCRIPT /home/cookie/SALOME-9.8.0-native-DB10-SRC/salomeTools/../PROJECT/products/compil_scripts/openturns-1.17.sh build_dir = /home/cookie/SALOME-9.8.0-native-DB10-SRC/salomeTools/../BUILD/openturns
install_dir = /home/cookie/SALOME-9.8.0-native-DB10-SRC/salomeTools/../INSTALL/openturns
> Run build script /home/cookie/SALOME-9.8.0-native-DB10-SRC/salomeTools/../PROJECT/products/compil_scripts/openturns-1.17.sh
##########################################################################
openturns 1.17
##########################################################################
Cookie_1:
Cookie_2:/home/cookie/SALOME-9.8.0-native-DB10-SRC/salomeTools/../INSTALL/hdf5
Cookie_3:/usr
Cookie_4:/
Cookie_5:
Cookie_6:/home/cookie/SALOME-9.8.0-native-DB10-SRC/salomeTools/../INSTALL/nlopt
Cookie_7:/home/cookie/SALOME-9.8.0-native-DB10-SRC/salomeTools/../BUILD/openturns
*** cmake -DCMAKE_INSTALL_PREFIX:STRING=/home/cookie/SALOME-9.8.0-native-DB10-SRC/salomeTools/../INSTALL/openturns -DCMAKE_BUILD_TYPE:STRING=Release -DPYTHON_EXECUTABLE=/usr/bin/python3 -DSWIG_EXECUTABLE=/usr/bin/swig -DHDF5_DIR:PATH=/home/cookie/SALOME-9.8.0-native-DB10-SRC/salomeTools/../INSTALL/hdf5/share/cmake/hdf5 -DHDF5_USE_STATIC_LIBRARIES:BOOL=OFF -DHDF5_ROOT:PATH=/home/cookie/SALOME-9.8.0-native-DB10-SRC/salomeTools/../INSTALL/hdf5 -DHDF5_hdf5_LIBRARY_RELEASE=/home/cookie/SALOME-9.8.0-native-DB10-SRC/salomeTools/../INSTALL/hdf5/lib -DHDF5_hdf5_hl_LIBRARY_RELEASE=/home/cookie/SALOME-9.8.0-native-DB10-SRC/salomeTools/../INSTALL/hdf5/lib/libhdf5_hl.so -DHDF5_HL_LIBRARY=/home/cookie/SALOME-9.8.0-native-DB10-SRC/salomeTools/../INSTALL/hdf5/lib/libhdf5_hl.so -DHDF5_C_INCLUDE_DIR=/home/cookie/SALOME-9.8.0-native-DB10-SRC/salomeTools/../INSTALL/hdf5/include -DCMINPACK_ROOT_DIR=/usr -DCMINPACK_INCLUDE_DIR=/usr/include/cminpack-1 -DCBLAS_LIBRARIES=/usr/lib/x86_64-linux-gnu/libcblas.so -DBLAS_LIBRARIES=/usr/lib/x86_64-linux-gnu/libblas.so -DNLOPT_INCLUDE_DIRS:STRING=/home/cookie/SALOME-9.8.0-native-DB10-SRC/salomeTools/../INSTALL/nlopt/include -DNLOPT_LIBRARIES:STRING=/home/cookie/SALOME-9.8.0-native-DB10-SRC/salomeTools/../INSTALL/nlopt/lib -DNLOPT_DIR:STRING=/home/cookie/SALOME-9.8.0-native-DB10-SRC/salomeTools/../INSTALL/nlopt
-- The C compiler identification is GNU 10.2.1
-- The CXX compiler identification is GNU 10.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found BLAS: /usr/lib/x86_64-linux-gnu/libblas.so
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for cheev_
-- Looking for cheev_ - not found
-- Looking for cheev_
-- Looking for cheev_ - found
-- A library with LAPACK API found.
-- CBLAS_LIBRARIES is defined... adding to the list of libraries /usr/lib/x86_64-linux-gnu/libcblas.so
-- Could NOT find Spectra (missing: SPECTRA_INCLUDE_DIRS)
-- Found BISON: /bin/bison (found suitable version "3.7.5", minimum required is "2.4")
-- Found FLEX: /bin/flex (found version "2.6.4")
-- Found TBB: /lib/x86_64-linux-gnu/libtbb.so (found version "2020.3")
-- Found HMAT: /lib/x86_64-linux-gnu/cmake/hmat
-- Found LibXml2: /lib/x86_64-linux-gnu/libxml2.so (found version "2.9.10")
CMake Warning (dev) at CMakeLists.txt:249 (find_package):
Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables.
Run "cmake --help-policy CMP0074" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
CMake variable HDF5_ROOT is set to:
/home/cookie/SALOME-9.8.0-native-DB10-SRC/salomeTools/../INSTALL/hdf5
Environment variable HDF5_ROOT is set to:
/home/cookie/SALOME-9.8.0-native-DB10-SRC/salomeTools/../INSTALL/hdf5
For compatibility, CMake is ignoring the variable.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found HDF5: hdf5::hdf5_cpp-shared (found version "1.10.3") found components: CXX
-- Found Boost: /lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found suitable version "1.74.0", minimum required is "1.46")
-- Found MPFR: /lib/x86_64-linux-gnu/libmpfr.so
-- Found MPC: /lib/x86_64-linux-gnu/libmpc.so
-- Looking for R package base - found
-- Found NLopt: /home/cookie/SALOME-9.8.0-native-DB10-SRC/INSTALL/nlopt/lib/libnlopt.so
-- Found NLopt:
-- nlopt::GD_STOGO: fails to build
-- nlopt::GN_AGS: fails to build
-- Found dlib: /lib/x86_64-linux-gnu/cmake/dlib (found version 19.10.0)
CMake Error at /lib/cmake/Ceres/CeresConfig.cmake:92 (message):
Failed to find Ceres - Ceres install root: /, determined from relative path
from CeresConfig.cmake install location: /lib/cmake/Ceres, does not contain
Ceres headers. Either the install directory was deleted, or the install
tree was only partially relocated outside of CMake after Ceres was built.
Call Stack (most recent call first):
/lib/cmake/Ceres/CeresConfig.cmake:149 (ceres_report_not_found)
CMakeLists.txt:363 (find_package)
CMake Warning at CMakeLists.txt:363 (find_package):
Found package configuration file:
/lib/cmake/Ceres/CeresConfig.cmake
but it set Ceres_FOUND to FALSE so package "Ceres" is considered to be NOT
FOUND.
-- Found CMinpack: /lib/x86_64-linux-gnu/libcminpack.so
-- Found CMkinpack ...
-- CMINPACK_LIBRARIES is set to: /lib/x86_64-linux-gnu/libcminpack.so
-- Could NOT find Bonmin (missing: COIN_BONMIN_LIBRARY COIN_INCLUDE_DIR)
-- Could NOT find Ipopt (missing: IPOPT_LIBRARIES IPOPT_INCLUDE_DIRS)
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Searching 16 bit integer - Using unsigned short
-- Check if the system is big endian - little endian
-- French locale not found
-- std::regex found
-- Looking for dirent.h
-- Looking for dirent.h - found
-- Looking for dlfcn.h
-- Looking for dlfcn.h - found
-- Looking for libgen.h
-- Looking for libgen.h - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for stdlib.h
-- Looking for stdlib.h - found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for xlocale.h
-- Looking for xlocale.h - not found
-- Looking for uselocale
-- Looking for uselocale - found
-- Looking for dladdr
-- Looking for dladdr - found
-- Looking for openblas_set_num_threads
-- Looking for openblas_set_num_threads - found
-- Looking for goto_get_num_procs
-- Looking for goto_get_num_procs - found
CMake Warning (dev) at CMakeLists.txt:617 (find_package):
Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables.
Run "cmake --help-policy CMP0074" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Environment variable SWIG_ROOT is set to:
/usr
For compatibility, CMake is ignoring the variable.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found SWIG: /usr/bin/swig (found suitable version "4.0.2", minimum required is "3")
-- Performing Test UNDEFINED_SYMBOLS_ALLOWED - Success
-- Found PythonInterp: /usr/bin/python3 (found version "3.9.2")
-- Found PythonLibs: /lib/x86_64-linux-gnu/libpython3.9.so (found suitable exact version "3.9.2")
-- Found numpy: /home/cookie/.local/lib/python3.9/site-packages/numpy (found version "1.22.4")
-- Found scipy: /usr/lib/python3/dist-packages/scipy (found version "1.6.0")
-- Found pandas: /usr/lib/python3/dist-packages/pandas (found version "1.1.5")
-- Found matplotlib: /usr/lib/python3/dist-packages/matplotlib (found suitable version "3.3.4", minimum required is "1.3.1")
-- Found chaospy: /home/cookie/.local/lib/python3.9/site-packages/chaospy (found version "4.3.7")
-- Found dill: /home/cookie/.local/lib/python3.9/site-packages/dill (found version "0.3.5.1")
-- Found sphinx: /usr/lib/python3/dist-packages/sphinx (found suitable version "3.4.3", minimum required is "1.1")
-- Found numpydoc: /usr/lib/python3/dist-packages/numpydoc (found suitable version "1.1.0", minimum required is "0.9")
-- Found sphinx_gallery: /home/cookie/.local/lib/python3.9/site-packages/sphinx_gallery (found suitable version "0.10.1", minimum required is "0.7")
fatal: not a git repository (or any of the parent directories): .git
-- The following OPTIONAL packages have been found:
* Eigen3
* BISON (required version >= 2.4)
* FLEX
* TBB
* HMAT (required version >= 1.6)
* LibXml2
* HDF5
* Boost (required version >= 1.46)
* MPFR
* MPC
* NLopt
* dlib
* CMinpack
* OpenMP
* SWIG (required version >= 3)
* PythonInterp
* PythonLibs (required version == 3.9.2)
-- The following REQUIRED packages have been found:
* BLAS
* LAPACK
* Threads
-- The following OPTIONAL packages have not been found:
* Spectra
* Ceres
* Bonmin
* Ipopt
-- Configuring incomplete, errors occurred!
See also "/home/cookie/SALOME-9.8.0-native-DB10-SRC/BUILD/openturns/openturns/CMakeFiles/CMakeOutput.log".
See also "/home/cookie/SALOME-9.8.0-native-DB10-SRC/BUILD/openturns/openturns/CMakeFiles/CMakeError.log".
ERROR on cmake
Compilation of openturns ..................... Compilation of openturns ..................... KO
Compilation: KO (0/1)
and the CMakeError.log as below
Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: /home/cookie/SALOME-9.8.0-native-DB10-SRC/BUILD/openturns/openturns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake cmTC_dc465/fast && /usr/bin/gmake -f CMakeFiles/cmTC_dc465.dir/build.make CMakeFiles/cmTC_dc465.dir/build
gmake[1]: Entering directory '/home/cookie/SALOME-9.8.0-native-DB10-SRC/BUILD/openturns/openturns/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_dc465.dir/src.c.o
/usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -O3 -DNDEBUG -o CMakeFiles/cmTC_dc465.dir/src.c.o -c /home/cookie/SALOME-9.8.0-native-DB10-SRC/BUILD/openturns/openturns/CMakeFiles/CMakeTmp/src.c
Linking C executable cmTC_dc465
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_dc465.dir/link.txt --verbose=1
/usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -O3 -DNDEBUG -rdynamic CMakeFiles/cmTC_dc465.dir/src.c.o -o cmTC_dc465
/usr/bin/ld: CMakeFiles/cmTC_dc465.dir/src.c.o: in function `main':
src.c:(.text.startup+0x15): undefined reference to `pthread_create'
/usr/bin/ld: src.c:(.text.startup+0x1f): undefined reference to `pthread_detach'
/usr/bin/ld: src.c:(.text.startup+0x29): undefined reference to `pthread_cancel'
/usr/bin/ld: src.c:(.text.startup+0x35): undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_dc465.dir/build.make:106: cmTC_dc465] Error 1
gmake[1]: Leaving directory '/home/cookie/SALOME-9.8.0-native-DB10-SRC/BUILD/openturns/openturns/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:140: cmTC_dc465/fast] Error 2
Source file was:
#include <pthread.h>
void* test_func(void* data)
{
return data;
}
int main(void)
{
pthread_t thread;
pthread_create(&thread, NULL, test_func, NULL);
pthread_detach(thread);
pthread_cancel(thread);
pthread_join(thread, NULL);
pthread_atfork(NULL, NULL, NULL);
pthread_exit(NULL);
return 0;
}
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/cookie/SALOME-9.8.0-native-DB10-SRC/BUILD/openturns/openturns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake cmTC_9f0ea/fast && /usr/bin/gmake -f CMakeFiles/cmTC_9f0ea.dir/build.make CMakeFiles/cmTC_9f0ea.dir/build
gmake[1]: Entering directory '/home/cookie/SALOME-9.8.0-native-DB10-SRC/BUILD/openturns/openturns/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_9f0ea.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -O3 -DNDEBUG -o CMakeFiles/cmTC_9f0ea.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.18/Modules/CheckFunctionExists.c
Linking C executable cmTC_9f0ea
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_9f0ea.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -O3 -DNDEBUG -rdynamic CMakeFiles/cmTC_9f0ea.dir/CheckFunctionExists.c.o -o cmTC_9f0ea -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_9f0ea.dir/build.make:106: cmTC_9f0ea] Error 1
gmake[1]: Leaving directory '/home/cookie/SALOME-9.8.0-native-DB10-SRC/BUILD/openturns/openturns/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:140: cmTC_9f0ea/fast] Error 2
Determining if the function cheev_ exists failed with the following output:
Change Dir: /home/cookie/SALOME-9.8.0-native-DB10-SRC/BUILD/openturns/openturns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake cmTC_0e5ee/fast && /usr/bin/gmake -f CMakeFiles/cmTC_0e5ee.dir/build.make CMakeFiles/cmTC_0e5ee.dir/build
gmake[1]: Entering directory '/home/cookie/SALOME-9.8.0-native-DB10-SRC/BUILD/openturns/openturns/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_0e5ee.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=cheev_ -O3 -DNDEBUG -o CMakeFiles/cmTC_0e5ee.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.18/Modules/CheckFunctionExists.c
Linking C executable cmTC_0e5ee
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_0e5ee.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=cheev_ -O3 -DNDEBUG -rdynamic CMakeFiles/cmTC_0e5ee.dir/CheckFunctionExists.c.o -o cmTC_0e5ee /usr/lib/x86_64-linux-gnu/libblas.so -lpthread -lm -ldl
/usr/bin/ld: CMakeFiles/cmTC_0e5ee.dir/CheckFunctionExists.c.o: in function `main':
CheckFunctionExists.c:(.text.startup+0xc): undefined reference to `cheev_'
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_0e5ee.dir/build.make:107: cmTC_0e5ee] Error 1
gmake[1]: Leaving directory '/home/cookie/SALOME-9.8.0-native-DB10-SRC/BUILD/openturns/openturns/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:140: cmTC_0e5ee/fast] Error 2
Determining if the include file xlocale.h exists failed with the following output:
Change Dir: /home/cookie/SALOME-9.8.0-native-DB10-SRC/BUILD/openturns/openturns/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake cmTC_f31b7/fast && /usr/bin/gmake -f CMakeFiles/cmTC_f31b7.dir/build.make CMakeFiles/cmTC_f31b7.dir/build
gmake[1]: Entering directory '/home/cookie/SALOME-9.8.0-native-DB10-SRC/BUILD/openturns/openturns/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_f31b7.dir/CheckIncludeFile.c.o
/usr/bin/cc -O3 -DNDEBUG -o CMakeFiles/cmTC_f31b7.dir/CheckIncludeFile.c.o -c /home/cookie/SALOME-9.8.0-native-DB10-SRC/BUILD/openturns/openturns/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/home/cookie/SALOME-9.8.0-native-DB10-SRC/BUILD/openturns/openturns/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: xlocale.h: No such file or directory
1 | #include <xlocale.h>
| ^~~~~~~~~~~
compilation terminated.
gmake[1]: *** [CMakeFiles/cmTC_f31b7.dir/build.make:85: CMakeFiles/cmTC_f31b7.dir/CheckIncludeFile.c.o] Error 1
gmake[1]: Leaving directory '/home/cookie/SALOME-9.8.0-native-DB10-SRC/BUILD/openturns/openturns/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:140: cmTC_f31b7/fast] Error 2