FRENSIE installing and compiling error

  • Thread starter Thread starter emilmammadzada
  • Start date Start date
  • Tags Tags
    Error
Click For Summary

Discussion Overview

The discussion revolves around issues encountered while installing and compiling the FRENSIE code, focusing on the configuration process using CMake and the associated scripts. Participants share errors and troubleshooting steps related to the build instructions and script usage.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Homework-related

Main Points Raised

  • One participant reports an error during the CMake configuration process, indicating unknown arguments related to Boost support.
  • Another participant insists that users should not run CMake directly but instead use the provided frensie.sh script to configure the build.
  • A participant attempts to run the frensie.sh script but encounters a warning about missing source and binary directories, leading to a CMake error regarding the absence of CMakeLists.txt in the build directory.
  • Some participants reference specific build instructions that require editing variables in the frensie.sh script to reflect system paths, questioning how to properly make these changes.
  • Further clarification is provided on which variables in the script may need to be edited, with a note that not all are required.
  • A participant reports a new error when running the frensie.sh script, indicating that the project cannot be installed in the source directory, referencing a specific CMake error message.

Areas of Agreement / Disagreement

Participants generally agree that the frensie.sh script should be used for configuration, but there is uncertainty regarding the correct setup of the script's variables and the implications of the errors encountered. Multiple competing views on how to resolve the issues remain, and the discussion is unresolved.

Contextual Notes

Participants mention specific build instructions and the need to modify script variables, but there is no consensus on the correct values or methods for these modifications. The discussion includes references to potential future changes in CMake behavior regarding directory assumptions.

emilmammadzada
Messages
133
Reaction score
19
TL;DR
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
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   Reactions: emilmammadzada
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.
 
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   Reactions: emilmammadzada
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

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   Reactions: emilmammadzada
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:

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
Replies
18
Views
8K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 2 ·
Replies
2
Views
6K
Replies
5
Views
15K
  • · Replies 3 ·
Replies
3
Views
3K