FRENSIE installing and compiling error

  • Thread starter emilmammadzada
  • Start date
  • Tags
    Error
In summary, cmake was unable to find the correct system paths. I edited the Frensie.sh file and added the appropriate system paths.
  • #1
emilmammadzada
118
19
TL;DR Summary
FRENSIE installing and compiling error
When i want compiling to Frensie code , app gave me this error
emil@DESKTOP-:~/FRENSIE-pub/build$ cmake ..
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- The Fortran compiler identification is GNU 11.3.0
-- 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
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /usr/bin/gfortran - skipped
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP_Fortran: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Found SWIG: /usr/bin/swig4.0 (found suitable version "4.0.2", minimum required is "4.0.0")
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.18", minimum required is "2.7")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable version "2.7.18", minimum required is "2.7")
-- Found NumPy: version "1.16.6" /home/emil/.local/lib/python2.7/site-packages/numpy/core/include
-- Found Boost: /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake (found suitable version "1.72.0", minimum required is "1.72.0") found components: test_exec_monitor
CMake Error at cmake/EnableBoostSupport.cmake:25 (IF):
if given arguments:

"EQUAL" "RELEASE"

Unknown arguments specified
Call Stack (most recent call first):
CMakeLists.txt:170 (ENABLE_BOOST_SUPPORT)-- Configuring incomplete, errors occurred!
See also "/home/emil/FRENSIE-pub/build/CMakeFiles/CMakeOutput.log".
 
Engineering news on Phys.org
  • #2
You are not supposed to run cmake yourself!, you are supposed to copy and run the script frensie.sh to configure. That runs cmake. It's in the folder scripts, but follow the build instructions.
 
  • Like
Likes emilmammadzada
  • #3
Alex A said:
You are not supposed to run cmake yourself!, you are supposed to copy and run the script frensie.sh to configure. That runs cmake. It's in the folder scripts, but follow the build instructions.
I did the same, it gave an error
emil@DESKTOP-:~/FRENSIE-pub/build$ l
frensie.sh*
emil@DESKTOP-:~/FRENSIE-pub/build$ ./frensie.sh
cmake version 3.22.1

CMake suite maintained and supported by Kitware (kitware.com/cmake).
CMake Warning:
No source or binary directory provided. Both will be assumed to be the
same as the current working directory, but note that this warning will
become a fatal error in future CMake releases.CMake Error: The source directory "/home/emil/FRENSIE-pub/build" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
 
  • #4
Did you do build instruction 5,
"change the variables in the script to reflect the desired system paths (if the basic build instructions where use for a package the PACKAGE_PREFIX variable can be left blank in the script)."
 
  • Like
Likes emilmammadzada
  • #5
Alex A said:
Did you do build instruction 5,
"change the variables in the script to reflect the desired system paths (if the basic build instructions where use for a package the PACKAGE_PREFIX variable can be left blank in the script)."
How should I change the variables in that file? Is it in the CmakeList.txt file?
 

Attachments

  • CMakeLists.txt.txt
    10.8 KB · Views: 89
  • #6
Edit this section in the script,
Code:
HDF5_PREFIX_PATH=
MOAB_PREFIX_PATH=
DAGMC_PREFIX_PATH=
BOOST_PREFIX_PATH=
MPI_PREFIX_PATH=
ROOT_PREFIX_PATH=
SWIG_PREFIX_PATH=
DOXYGEN_PREFIX_PATH=
FRENSIE_SRC=
FRENSIE_INSTALL=
XSDIR_PATH=

Not everything is required.
 
  • Like
Likes emilmammadzada
  • #7
Alex A said:
Edit this section in the script,
Code:
HDF5_PREFIX_PATH=
MOAB_PREFIX_PATH=
DAGMC_PREFIX_PATH=
BOOST_PREFIX_PATH=
MPI_PREFIX_PATH=
ROOT_PREFIX_PATH=
SWIG_PREFIX_PATH=
DOXYGEN_PREFIX_PATH=
FRENSIE_SRC=
FRENSIE_INSTALL=
XSDIR_PATH=

Not everything is required.
I have added the fensie.sh.App give me this error
[emil@DESKTOP-:~/FRENSIE-pub/build$ ./frensie.sh
cmake version 3.22.1

CMake suite maintained and supported by Kitware (kitware.com/cmake).
CMake Error at cmake/EnforceOutOfSourceBuild.cmake:20 (MESSAGE):
This project cannot be installed in the source directory.
Call Stack (most recent call first):
CMakeLists.txt:32 (ENFORCE_OUT_OF_SOURCE_BUILD)-- Configuring incomplete, errors occurred!
See also "/home/emil/FRENSIE-pub/build/CMakeFiles/CMakeOutput.log".]
[
EXTRA_ARGS=$@
HDF5_PREFIX_PATH=
MOAB_PREFIX_PATH=
DAGMC_PREFIX_PATH=
BOOST_PREFIX_PATH=/usr/include/boost
MPI_PREFIX_PATH=
ROOT_PREFIX_PATH=
SWIG_PREFIX_PATH=/usr/bin/swig
DOXYGEN_PREFIX_PATH=/usr/bin/doxygen
FRENSIE_SRC=/home/emil/FRENSIE-pub/build
FRENSIE_INSTALL=/home/emil/FRENSIE-pub
XSDIR_PATH=/home/emil/FRENSIE-pub/packages/data/xsdir]
 
Last edited:

FAQ: FRENSIE installing and compiling error

What is causing the "missing dependencies" error during the FRENSIE installation?

This error typically occurs when one or more required libraries or tools are not installed on your system. Ensure that all dependencies listed in the FRENSIE documentation are installed, including compilers, MPI libraries, and any specific numerical libraries. Use your package manager to install any missing dependencies.

How do I resolve the "CMake configuration failed" error?

This error often arises from incorrect paths or missing files in the CMake configuration. Double-check the paths to your dependencies and ensure that CMake is pointed to the correct directories. Additionally, verify that your CMake version meets the minimum required version specified by FRENSIE.

Why am I getting a "permission denied" error during compilation?

This error usually occurs when you do not have the necessary write permissions in the directory where you are trying to compile FRENSIE. Ensure you have the appropriate permissions, or try running the compilation process as an administrator or with elevated privileges using commands like sudo on Unix-based systems.

What should I do if I encounter "undefined reference" errors during linking?

"Undefined reference" errors typically indicate that the linker cannot find the necessary object files or libraries. Ensure that all required libraries are correctly specified in your linker settings and that their paths are correctly included. Also, confirm that the libraries are compatible with your compiler and architecture.

How can I fix the "incompatible compiler" error?

This error suggests that the compiler you are using is not compatible with FRENSIE. Check the FRENSIE documentation for the recommended or required compilers and their versions. Install a compatible compiler and ensure that your environment variables (e.g., CC and CXX) are set to use the correct compiler.

Back
Top