Welcome to the forums. Please post in English or French.

You are not logged in.

#1 2018-05-24 14:54:58

rodolpho101
Member
Registered: 2018-05-24
Posts: 4

Mfront compilation failed

I'm trying to install code aster stable version 13.4 (I'm alredy used the 12.6 version), but I found a problem in compilation of mfront package and I'm not found the required package, can someone help-me?

entering directory '/tmp/install_mfront.7435'
Extracting mfront-3.0.0-1.tar.gz...                                    [  OK  ]
--- 5668 files extracted
leaving directory '/tmp/install_mfront.7435'

>>> Configuration <<<

entering directory '/tmp/install_mfront.7435/mfront-3.0.0'
Command line : mkdir build ; cd build ; cmake .. -DTFEL_SVN_REVISION=3.0.0 -DCMAKE_BUILD_TYPE=Release -Dlocal-castem-header=ON -Denable-fortran=ON -DPython_ADDITIONAL_VERSIONS=2.7 -Denable-python=ON -Denable-python-bindings=ON -Denable-cyrano=ON -Denable-aster=ON -Ddisable-reference-doc=ON -Ddisable-website=ON -Denable-portable-build=OFF -DCMAKE_INSTALL_PREFIX=/opt/aster/public/mfront-3.0.0
configure mfront installation...
Command output :
-- The C compiler identification is GNU 5.5.0
-- The CXX compiler identification is GNU 5.5.0
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at CMakeLists.txt:4 (cmake_policy):
  The OLD behavior for policy CMP0005 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at CMakeLists.txt:6 (cmake_policy):
  The OLD behavior for policy CMP0026 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


-- Looking for include file fenv.h
-- Looking for include file fenv.h - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- 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
-- The Fortran compiler identification is GNU 5.5.0
-- Check for working Fortran compiler: /usr/bin/gfortran
-- Check for working Fortran compiler: /usr/bin/gfortran  -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/bin/gfortran supports Fortran 90
-- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
-- fortran support enabled
-- enabling flag 'Wno-conversion'
-- enabling flag 'Wall'
-- enabling flag 'W'
-- enabling flag 'Wextra'
-- enabling flag 'pedantic'
-- enabling flag 'Wshadow'
-- enabling flag 'Wpointer-arith'
-- enabling flag 'Wcast-qual'
-- enabling flag 'Wcast-align'
-- enabling flag 'Wwrite-strings'
-- enabling flag 'Wctor-dtor-privacy'
-- enabling flag 'Wnon-virtual-dtor'
-- enabling flag 'Woverloaded-virtual'
-- enabling flag 'Wreturn-type'
-- enabling flag 'Wfloat-equal'
-- enabling flag 'Wno-endif-labels'
-- enabling flag 'Wsign-compare'
-- enabling flag 'Wmissing-format-attribute'
-- enabling flag 'Wno-multichar'
-- enabling flag 'Wno-deprecated-declarations'
-- enabling flag 'Wpacked'
-- enabling flag 'Wredundant-decls'
-- enabling flag 'Wunknown-pragmas'
-- enabling flag 'Wundef'
-- enabling flag 'Wreorder'
-- enabling flag 'Wno-conversion'
-- enabling flag 'Wdouble-promotion'
-- enabling flag 'Winit-self'
-- enabling flag 'Wlogical-op'
-- enabling flag 'Wmissing-declarations'
-- enabling flag 'Wmissing-include-dirs'
-- enabling flag 'Wnoexcept'
-- enabling flag 'Wold-style-cast'
-- enabling flag 'Wsign-conversion'
-- enabling flag 'Wsign-promo'
-- enabling flag 'Wstrict-null-sentinel'
-- enabling flag 'Wtrampolines'
-- enabling flag 'Wvector-operation-performance'
-- enabling flag 'Wzero-as-null-pointer-constant'
-- enabling flag 'Wignored-qualifiers'
-- enabling flag 'Wsequence-point'
-- enabling flag 'Wswitch'
-- enabling flag 'Wsuggest-final-types'
-- enabling flag 'Wsuggest-final-methods'
-- enabling flag 'Wsuggest-override'
-- enabling flag 'Wswitch-bool'
-- enabling flag 'Wlogical-not-parentheses'
-- enabling flag 'Wsizeof-array-argument'
-- enabling flag 'Wbool-compare'
-- flag 'Wshift-negative-value' disabled
-- flag 'Wshift-overflow' disabled
-- flag 'Wtautological-compare' disabled
-- flag 'Wnull-dereference' disabled
-- flag 'Wduplicated-cond' disabled
-- flag 'Wmisleading-indentation' disabled
-- enabling flag 'Wlong-long'
-- enabling flag 'Wdisabled-optimization'
-- enabling flag 'fvisibility=hidden'
-- enabling flag 'fvisibility-inlines-hidden'
-- enabling flag 'march=native'
-- enabling flag 'ftree-vectorize'
-- enabling flag 'ffast-math'
-- enabling [[ noreturn ]] attribute
-- aster support enabled
-- cyrano support enabled
-- Could NOT find Gnuplot (missing: GNUPLOT_EXECUTABLE)
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found version "2.7.15rc1")
-- Found PythonInterp: /usr/bin/python2.7 (found version "2.7.15")
-- found python
-- python include path   /usr/include/python2.7
-- python libraries path /usr/lib/x86_64-linux-gnu
-- python library        python2.7
CMake Warning at /usr/share/cmake-3.10/Modules/FindBoost.cmake:567 (message):
  Imported targets and dependency information not available for Boost version
  (all versions older than 1.33)
Call Stack (most recent call first):
  /usr/share/cmake-3.10/Modules/FindBoost.cmake:907 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.10/Modules/FindBoost.cmake:1558 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:210 (find_package)


-- Could NOT find Boost
CMake Error at CMakeLists.txt:215 (message):
  Boost libraries not found.

  Required packages are :


-- Configuring incomplete, errors occurred!
See also "/tmp/install_mfront.7435/mfront-3.0.0/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/install_mfront.7435/mfront-3.0.0/build/CMakeFiles/CMakeError.log".
EXIT_COMMAND_7435_00000069=1
configure mfront installation...                                       [FAILED]
Exit code : 1
-- The C compiler identification is GNU 5.5.0
-- The CXX compiler identification is GNU 5.5.0
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at CMakeLists.txt:4 (cmake_policy):
The OLD behavior for policy CMP0005 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances.  Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at CMakeLists.txt:6 (cmake_policy):
The OLD behavior for policy CMP0026 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances.  Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.


-- Looking for include file fenv.h
-- Looking for include file fenv.h - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- 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
-- The Fortran compiler identification is GNU 5.5.0
-- Check for working Fortran compiler: /usr/bin/gfortran
-- Check for working Fortran compiler: /usr/bin/gfortran  -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/bin/gfortran supports Fortran 90
-- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
-- fortran support enabled
-- enabling flag 'Wno-conversion'
-- enabling flag 'Wall'
-- enabling flag 'W'
-- enabling flag 'Wextra'
-- enabling flag 'pedantic'
-- enabling flag 'Wshadow'
-- enabling flag 'Wpointer-arith'
-- enabling flag 'Wcast-qual'
-- enabling flag 'Wcast-align'
-- enabling flag 'Wwrite-strings'
-- enabling flag 'Wctor-dtor-privacy'
-- enabling flag 'Wnon-virtual-dtor'
-- enabling flag 'Woverloaded-virtual'
-- enabling flag 'Wreturn-type'
-- enabling flag 'Wfloat-equal'
-- enabling flag 'Wno-endif-labels'
-- enabling flag 'Wsign-compare'
-- enabling flag 'Wmissing-format-attribute'
-- enabling flag 'Wno-multichar'
-- enabling flag 'Wno-deprecated-declarations'
-- enabling flag 'Wpacked'
-- enabling flag 'Wredundant-decls'
-- enabling flag 'Wunknown-pragmas'
-- enabling flag 'Wundef'
-- enabling flag 'Wreorder'
-- enabling flag 'Wno-conversion'
-- enabling flag 'Wdouble-promotion'
-- enabling flag 'Winit-self'
-- enabling flag 'Wlogical-op'
-- enabling flag 'Wmissing-declarations'
-- enabling flag 'Wmissing-include-dirs'
-- enabling flag 'Wnoexcept'
-- enabling flag 'Wold-style-cast'
-- enabling flag 'Wsign-conversion'
-- enabling flag 'Wsign-promo'
-- enabling flag 'Wstrict-null-sentinel'
-- enabling flag 'Wtrampolines'
-- enabling flag 'Wvector-operation-performance'
-- enabling flag 'Wzero-as-null-pointer-constant'
-- enabling flag 'Wignored-qualifiers'
-- enabling flag 'Wsequence-point'
-- enabling flag 'Wswitch'
-- enabling flag 'Wsuggest-final-types'
-- enabling flag 'Wsuggest-final-methods'
-- enabling flag 'Wsuggest-override'
-- enabling flag 'Wswitch-bool'
-- enabling flag 'Wlogical-not-parentheses'
-- enabling flag 'Wsizeof-array-argument'
-- enabling flag 'Wbool-compare'
-- flag 'Wshift-negative-value' disabled
-- flag 'Wshift-overflow' disabled
-- flag 'Wtautological-compare' disabled
-- flag 'Wnull-dereference' disabled
-- flag 'Wduplicated-cond' disabled
-- flag 'Wmisleading-indentation' disabled
-- enabling flag 'Wlong-long'
-- enabling flag 'Wdisabled-optimization'
-- enabling flag 'fvisibility=hidden'
-- enabling flag 'fvisibility-inlines-hidden'
-- enabling flag 'march=native'
-- enabling flag 'ftree-vectorize'
-- enabling flag 'ffast-math'
-- enabling [[ noreturn ]] attribute
-- aster support enabled
-- cyrano support enabled
-- Could NOT find Gnuplot (missing: GNUPLOT_EXECUTABLE)
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found version "2.7.15rc1")
-- Found PythonInterp: /usr/bin/python2.7 (found version "2.7.15")
-- found python
-- python include path   /usr/include/python2.7
-- python libraries path /usr/lib/x86_64-linux-gnu
-- python library        python2.7
CMake Warning at /usr/share/cmake-3.10/Modules/FindBoost.cmake:567 (message):
Imported targets and dependency information not available for Boost version
(all versions older than 1.33)
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindBoost.cmake:907 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake-3.10/Modules/FindBoost.cmake:1558 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:210 (find_package)


-- Could NOT find Boost
CMake Error at CMakeLists.txt:215 (message):
Boost libraries not found.

Required packages are :


-- Configuring incomplete, errors occurred!
See also "/tmp/install_mfront.7435/mfront-3.0.0/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/install_mfront.7435/mfront-3.0.0/build/CMakeFiles/CMakeError.log".
EXIT_COMMAND_7435_00000069=1

*** Exception raised : error during configure

Offline

#2 2018-05-24 18:28:25

thomas.helfer
Member
Registered: 2013-09-26
Posts: 86

Re: Mfront compilation failed

Hi,
It seems that `cmake` was not able to find `Boost/Python`.

Can you attach the files:
- "/tmp/install_mfront.7435/mfront-3.0.0/build/CMakeFiles/CMakeOutput.log".
- "/tmp/install_mfront.7435/mfront-3.0.0/build/CMakeFiles/CMakeError.log".

Can you also see in the logs of aster installation process if something related to Boost went wrong ? Maybe you don't have the libpython2.7-dev package install, so that the compilation of `Boost/Python` is skipped.

Regards

Thomas

Offline

#3 2018-05-24 18:49:09

rodolpho101
Member
Registered: 2018-05-24
Posts: 4

Re: Mfront compilation failed

Hi thomas, thank you for this reply. I attached the logs in this post. I already installed the package libpython2.7-dev before the compilation.


Attachments:
CMakeError.log, Size: 9.41 KiB, Downloads: 17

Offline

#4 2018-05-24 19:24:40

thomas.helfer
Member
Registered: 2013-09-26
Posts: 86

Re: Mfront compilation failed

Nothing useful in  "CMakeError.log".
Could you attach /tmp/install_mfront.7435/mfront-3.0.0/build/CMakeFiles/CMakeOutput.log ?
Regards,
Thomas

Offline

#5 2018-05-24 21:06:32

AsterO'dactyle
Administrator
Registered: 2007-11-29
Posts: 194

Re: Mfront compilation failed

rodolpho101 wrote:

Hi thomas, thank you for this reply. I attached the logs in this post. I already installed the package libpython2.7-dev before the compilation.

Hello,

See https://www.code-aster.org/V2/spip.php?article91

Prerequisites:
=>you have to install  python-dev AND libboost-python-dev (for MFront)


Code_Asterの開発者

Offline

#6 2018-05-25 11:26:16

rodolpho101
Member
Registered: 2018-05-24
Posts: 4

Re: Mfront compilation failed

Thank you very much AsterO'dactyle! This option makes the compilation OK. My problem is solved.

Offline

Board footer