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

You are not logged in.

#1 2017-08-13 18:35:38

winksaville
Member
Registered: 2017-08-04
Posts: 19

[SOLVED]aster-full-src-13.4.0 install fails MFrontBehaviour.h not foun

I'm running a recent Arch Linux using a python virtual env with Python 2.7.13 and downloaded aster-full-src-13.4.0-2.noarch.tar.gz:

(python2venv) wink@wink-desktop:~/dev
$ md5sum aster-full-src-13.4.0-2.noarch.tar.gz 
c2e73834a03411f6a11bf04491b017a7  aster-full-src-13.4.0-2.noarch.tar.gz

Running install I got a compilation error:

(python2venv) wink@wink-desktop:~/dev/aster-full-src-13.4.0
$ python setup.py install --prefix=/home/wink/opt/aster
...
[7336/7926] Compiling bibc/supervis/dll_yacs.c
Waf: Leaving directory `/tmp/install_aster.14250/aster-13.4.0/build/release'
EXIT_COMMAND_14250_00000101=1

 *** Exception raised : error during compilation
...

In setup.dbg I see:

<DBG> [7336/7926] Compiling bibc/supervis/dll_yacs.c
<DBG> Waf: Leaving directory `/tmp/install_aster.14250/aster-13.4.0/build/release'
<DBG> EXIT_COMMAND_14250_00000101=1
<DBG> +++ STANDARD ERROR: ../../bibc/supervis/dll_mfront.c:31:10: fatal error: MFrontBehaviour.h: No such file or directory
<DBG> #include "MFrontBehaviour.h"
<DBG>          ^~~~~~~~~~~~~~~~~~~
<DBG> compilation terminated.
<DBG> 
<DBG> Build failed
<DBG> -> task in 'asterexec' failed (exit status 1): 
<DBG> 	{task 140051457807248: c dll_mfront.c -> dll_mfront.c.1.o}
<DBG> ['/usr/bin/gcc', '-O2', '-fno-stack-protector', '-fPIC', '-fPIC', '-fno-strict-aliasing', '-march=x86-64', '-mtune=generic', '-fstack-protector-strong', '-march=x86-64', '-mtune=generic', '-fstack-protector-strong', '-I/home/wink/opt/aster/public/hdf5-1.8.14/include', '-I/home/wink/opt/aster/public/med-3.2.1/include', '-I/home/wink/opt/aster/public/mumps-5.1.1/include', '-I/home/wink/opt/aster/public/mumps-5.1.1/include_seq', '-I/home/wink/opt/aster/public/metis-5.1.0/include', '-I/home/wink/opt/aster/public/scotch-6.0.4/include', '-I/home/wink/opt/aster/public/mfront-3.0.0/include', '-I/tmp/install_aster.14250/aster-13.4.0/bibc/include', '-I/tmp/install_aster.14250/aster-13.4.0/bibcxx/include', '-I/tmp/install_aster.14250/aster-13.4.0/bibfor/include', '-I/tmp/install_aster.14250/aster-13.4.0/bibcxx', '-I/tmp/install_aster.14250/aster-13.4.0/build/release/bibc/include', '-I/tmp/install_aster.14250/aster-13.4.0/bibc/include', '-I/tmp/install_aster.14250/aster-13.4.0/build/release', '-I/lib/python2.7/site-packages/numpy/core/include', '-I/home/wink/python2venv/include/python2.7', '-D_MAIN_=main', '-DNPY_NO_PREFIX', '-DHAVE_MFRONT=1', '-DTFEL_ARCH64', '-DNO_RUNTIME_CHECK_BOUNDS', '-DNDEBUG', '-DASTER_ARCH=64', '-DHAVE_PYEMBED=1', '-DNDEBUG', '../../bibc/supervis/dll_mfront.c', '-c', '-o', '/tmp/install_aster.14250/aster-13.4.0/build/release/bibc/supervis/dll_mfront.c.1.o']
<DBG> +++ END
 *** Exception raised : error during compilation

What have I done wrong?

Last edited by winksaville (2017-08-27 17:17:56)


Attachments:
setup-log-dbg.tgz, Size: 483.04 KiB, Downloads: 62

Offline

#2 2017-08-13 19:46:04

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

Re: [SOLVED]aster-full-src-13.4.0 install fails MFrontBehaviour.h not foun

Hello,

Nothing "wrong". I've the same problem and no solution for the moment


Code_Asterの開発者

Offline

#3 2017-08-14 09:53:15

IV_CoAs
Member
From: Tampere
Registered: 2013-07-12
Posts: 29

Re: [SOLVED]aster-full-src-13.4.0 install fails MFrontBehaviour.h not foun

Try to disable MFront (probably setting "_install_mfront = False " to setup.cfg) or other command which disable MFront.

When I compiled, I get error in MFront part, but in didn't stop Aster compiling. It is looking possible, that without MFront You can compile rest.

BR Ilkka

Offline

#4 2017-08-14 18:43:33

winksaville
Member
Registered: 2017-08-04
Posts: 19

Re: [SOLVED]aster-full-src-13.4.0 install fails MFrontBehaviour.h not foun

AsterO'dactyle: thanks for the reply, I'm glad I'm not alone.

IV_CoAs:

I added _install_mfront = False which you can see in setup.log:

Reading config file '/home/wink/dev/aster-full-src-13.4.0/setup.cfg'...
 PREFER_SHARED_LIBS (from cfg) : False
 PREFER_COMPILER (from cfg) : 'GNU'
      ASTER_ROOT (from cfg) : '/opt/aster'
        MAXDEPTH (from cfg) : 5
      USE_LOCATE (from cfg) : False
 _install_mfront (from cfg) : False

But I get the same error, although we do see at mfront was skipped in the summary
so we know the _install_mfront did its job:

<DBG> ../../bibc/supervis/dll_mfront.c:31:10: fatal error: MFrontBehaviour.h: No such file or directory
<DBG> #include "MFrontBehaviour.h"
<DBG>          ^~~~~~~~~~~~~~~~~~~
<DBG> compilation terminated.
<DBG> 
<DBG> Build failed
<DBG> -> task in 'asterexec' failed (exit status 1): 
<DBG> 	{task 139801681486736: c dll_mfront.c -> dll_mfront.c.1.o}
<DBG> ['/usr/bin/gcc', '-O2', '-fno-stack-protector', '-fPIC', '-fPIC', '-fno-strict-aliasing', '-march=x86-64', '-mtune=generic', '-fstack-protector-strong', '-march=x86-64', '-mtune=generic', '-fstack-protector-strong', '-I/home/wink/opt/aster/public/hdf5-1.8.14/include', '-I/home/wink/opt/aster/public/med-3.2.1/include', '-I/home/wink/opt/aster/public/mumps-5.1.1/include', '-I/home/wink/opt/aster/public/mumps-5.1.1/include_seq', '-I/home/wink/opt/aster/public/metis-5.1.0/include', '-I/home/wink/opt/aster/public/scotch-6.0.4/include', '-I/include', '-I/tmp/install_aster.23659/aster-13.4.0/bibc/include', '-I/tmp/install_aster.23659/aster-13.4.0/bibcxx/include', '-I/tmp/install_aster.23659/aster-13.4.0/bibfor/include', '-I/tmp/install_aster.23659/aster-13.4.0/bibcxx', '-I/tmp/install_aster.23659/aster-13.4.0/build/release/bibc/include', '-I/tmp/install_aster.23659/aster-13.4.0/bibc/include', '-I/tmp/install_aster.23659/aster-13.4.0/build/release', '-I/lib/python2.7/site-packages/numpy/core/include', '-I/home/wink/python2venv/include/python2.7', '-D_MAIN_=main', '-DNPY_NO_PREFIX', '-DHAVE_MFRONT=1', '-DTFEL_ARCH64', '-DNO_RUNTIME_CHECK_BOUNDS', '-DNDEBUG', '-DASTER_ARCH=64', '-DHAVE_PYEMBED=1', '-DNDEBUG', '../../bibc/supervis/dll_mfront.c', '-c', '-o', '/tmp/install_aster.23659/aster-13.4.0/build/release/bibc/supervis/dll_mfront.c.1.o']
<DBG> +++ END
 *** Exception raised : error during compilation

--------------------------------------------------------------------------------
     SUMMARY OF INSTALLATION
--------------------------------------------------------------------------------

 Installation of   : hdf5 1.8.14
Destination       : /home/wink/opt/aster/public/hdf5-1.8.14
Elapsed time      : 57.24 s
                                                                      [  OK  ]
 Installation of   : med 3.2.1
Destination       : /home/wink/opt/aster/public/med-3.2.1
Elapsed time      : 66.38 s
                                                                      [  OK  ]
 Installation of   : gmsh 2.12.0
Destination       : /home/wink/opt/aster/public/gmsh-2.12.0-Linux
Elapsed time      : 0.52 s
                                                                      [  OK  ]
 Installation of   : grace 5.1.23
Destination       : /home/wink/opt/aster/public/grace-5.1.23
Elapsed time      : 23.25 s
                                                                      [  OK  ]
 Installation of   : gibi 2000
Destination       : /home/wink/opt/aster/public/gibi-2000
Elapsed time      : 0.20 s
                                                                      [  OK  ]
 Installation of   : scotch 6.0.4
Destination       : /home/wink/opt/aster/public/scotch-6.0.4
Elapsed time      : 22.46 s
                                                                      [  OK  ]
 Installation of   : astk 1.13.10
Destination       : /home/wink/opt/aster/lib/python2.7/site-packages
Elapsed time      : 1.12 s
                                                                      [  OK  ]
 Installation of   : metis 5.1.0
Destination       : /home/wink/opt/aster/public/metis-5.1.0
Elapsed time      : 5.61 s
                                                                      [  OK  ]
 Installation of   : mfront (version unavailable)
Destination       : unknown
Elapsed time      : 0.00 s
                                                                      [ SKIP ]
 Installation of   : mumps 5.1.1
Destination       : /home/wink/opt/aster/public/mumps-5.1.1
Elapsed time      : 90.75 s
                                                                      [  OK  ]
 Installation of   : homard 11.7
Destination       : /home/wink/opt/aster/public/homard-11.7
Elapsed time      : 0.80 s
                                                                      [  OK  ]
 Installation of   : aster 13.4.0
Destination       : /home/wink/opt/aster
Elapsed time      : 112.66 s
                                                                      
*** Exception <class 'as_setup.SetupMakeError'> raised : error during compilation
See detailed traceback in the logfile
                                                                       [FAILED]
Exit code : 4
 Installation of   : Code_Aster + 12 of its prerequisites 
Destination       : /home/wink/opt/aster
Elapsed time      : 396.14 s
                                                                      [  OK  ]

I can actually solve the compile problem by adding the following to "aster-13.4.0/wscript" at line 211,
which which appends to INCLUDES the path to MFrontBehaviour.h:

    paths = self.srcnode.ant_glob('bibcxx/mfront', src=True, dir=True)
    paths = [d.abspath() for d in paths]
    self.env.append_value('INCLUDES', paths)

But then I get a link error as we see from the attached setup.dbg.1:

<DBG> [7912/7926] Linking build/release/bibc/aster
<DBG> Waf: Leaving directory `/tmp/install_aster.17763/aster-13.4.0/build/release'
<DBG> EXIT_COMMAND_17763_00000101=1
<DBG> +++ STANDARD ERROR: In file included from /home/wink/python2venv/include/python2.7/Python.h:8:0,
<DBG>                 from /tmp/install_aster.17763/aster-13.4.0/bibc/include/aster.h:22,
<DBG>                 from ../../bibc/utilitai/debugging.c:25:
<DBG> /home/wink/python2venv/include/python2.7/pyconfig.h:1190:0: warning: "_POSIX_C_SOURCE" redefined
<DBG> #define _POSIX_C_SOURCE 200112L
<DBG> 
<DBG> In file included from /usr/include/execinfo.h:21:0,
<DBG>                 from ../../bibc/utilitai/debugging.c:21:
<DBG> /usr/include/features.h:257:0: note: this is the location of the previous definition
<DBG> # define _POSIX_C_SOURCE 200809L
<DBG> 
<DBG> 
<DBG> bibc/supervis/dll_mfront.c.1.o: In function `mfront_get_mater_prop_':
<DBG> dll_mfront.c:(.text+0x1f1): undefined reference to `getTridimMaterialPropertiesNames'
<DBG> collect2: error: ld returned 1 exit status
<DBG> 
<DBG> Build failed
<DBG> -> task in 'asterexec' failed (exit status 1): 
<DBG>    task details in: /tmp/install_aster.17763/aster-13.4.0/build/release/asterexec.log
<DBG> +++ END
 *** Exception raised : error during compilation

--------------------------------------------------------------------------------
     SUMMARY OF INSTALLATION
--------------------------------------------------------------------------------

 Installation of   : hdf5 1.8.14
Destination       : /home/wink/opt/public/hdf5-1.8.14
Elapsed time      : 57.09 s
                                                                      [  OK  ]
 Installation of   : med 3.2.1
Destination       : /home/wink/opt/public/med-3.2.1
Elapsed time      : 66.48 s
                                                                      [  OK  ]
 Installation of   : gmsh 2.12.0
Destination       : /home/wink/opt/public/gmsh-2.12.0-Linux
Elapsed time      : 0.52 s
                                                                      [  OK  ]
 Installation of   : grace 5.1.23
Destination       : /home/wink/opt/public/grace-5.1.23
Elapsed time      : 23.69 s
                                                                      [  OK  ]
 Installation of   : gibi 2000
Destination       : /home/wink/opt/public/gibi-2000
Elapsed time      : 0.21 s
                                                                      [  OK  ]
 Installation of   : scotch 6.0.4
Destination       : /home/wink/opt/public/scotch-6.0.4
Elapsed time      : 22.84 s
                                                                      [  OK  ]
 Installation of   : astk 1.13.10
Destination       : /home/wink/opt/lib/python2.7/site-packages
Elapsed time      : 1.13 s
                                                                      [  OK  ]
 Installation of   : metis 5.1.0
Destination       : /home/wink/opt/public/metis-5.1.0
Elapsed time      : 5.63 s
                                                                      [  OK  ]
 Installation of   : mfront 3.0.0
Destination       : /home/wink/opt/public/mfront-3.0.0
Elapsed time      : 89.55 s
                                                                      [  OK  ]
 Installation of   : mumps 5.1.1
Destination       : /home/wink/opt/public/mumps-5.1.1
Elapsed time      : 92.43 s
                                                                      [  OK  ]
 Installation of   : homard 11.7
Destination       : /home/wink/opt/public/homard-11.7
Elapsed time      : 0.83 s
                                                                      [  OK  ]
 Installation of   : aster 13.4.0
Destination       : /home/wink/opt
Elapsed time      : 121.85 s
                                                                      
*** Exception <class 'as_setup.SetupMakeError'> raised : error during compilation
See detailed traceback in the logfile
                                                                       [FAILED]
Exit code : 4
 Installation of   : Code_Aster + 12 of its prerequisites 
Destination       : /home/wink/opt
Elapsed time      : 498.21 s
                                                                      [  OK  ]

Anyone, any other suggestions?


Attachments:
setup-log-dbg.1.tgz, Size: 495.03 KiB, Downloads: 63

Offline

#5 2017-08-16 19:41:34

IV_CoAs
Member
From: Tampere
Registered: 2013-07-12
Posts: 29

Re: [SOLVED]aster-full-src-13.4.0 install fails MFrontBehaviour.h not foun

Looking MFront is one way or other problem: I did in my platform (Ubuntu 16.04) fresh installation and in my platform MFront compiling was failed, but Aster was OK.

Maybe try compile Aster using waf from extracted aster-13.4.0.tgz and config no_mfront:
"
./waf clean
export ASTER_ROOT=<Path to aster root>
./waf configure --use-config-dir=$ASTER_ROOT/13.4/share/aster  \
--enable-openmp --enable-med --enable-hdf5 --enable-mumps --embed-mumps \
--use-config=own_config,no_mfront --maths-libs=auto --prefix=$ASTER_ROOT/13.4
./waf build -p
./waf install
"
You probably need to built own "own_config.py" file, where You set library path and include path. I was able to use it, but naturally I don't how it is with Your environment.

BR Ilkka

Offline

#6 2017-08-17 07:18:32

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

Re: [SOLVED]aster-full-src-13.4.0 install fails MFrontBehaviour.h not foun

The problem seems related to MFront support in Aster, not to MFront by itself: the missing header is not provided by MFront.

@IV_CoAs: I checked on Ubuntu 17.10 (I don't have access to Ubuntu 16.04 right now). The TFEL-3.0.0 version builds fine. To my knowledge, there is no installation issue with this version, except an issue  concerning the usage of a deprecated package in the LaTeX documentation (See Ticket #72). However, du to this issue, generation of the documentation is currently disabled in the Aster distribution. If you have other issues, do not hesitate to report it on the MFront website. I won't mind if you just attach your setup.dbg file.

Offline

#7 2017-08-17 12:17:59

IV_CoAs
Member
From: Tampere
Registered: 2013-07-12
Posts: 29

Re: [SOLVED]aster-full-src-13.4.0 install fails MFrontBehaviour.h not foun

"
CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
Imported targets not available for Boost version
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:210 (find_package)


-- Could NOT find Boost
CMake Error at CMakeLists.txt:215 (message):
Boost libraries not found.
"
It is looking, that I don't have libboost installed.

BR Ilkka

Offline

#8 2017-08-17 15:29:41

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

Re: [SOLVED]aster-full-src-13.4.0 install fails MFrontBehaviour.h not foun

Hi IV_CoAs,
This could have its place on the TFEL website. This problem is probably related to:

#57 More robust detection of python versions: avoid mismatch between the python libraries, the python interpreter and the boost python library

See the TFEL website for details (I am not allowed to post links...): (https://) sourceforge.net/p/tfel/tickets/57

This has been fixed in (the unreleased) TFEL-3.0.2 and barely boils down changing the python and boost-python detection by cmake: the built-in mechanisms can be tricked if two versions of python are installed side-by-side. It can also fails to detect the appropriate boost-python library (ex: use boost-python for python 2.7 and python-libs version 3.4).

Such problems are difficult to find before users' feed-backs.

Normally, the 3.0.x branch could be tagged at any moment and contains only small fixes such as this one. See the release-notes for the TFEL-3.0.1 and TFEL-3.0.2 versions (tfel.sourceforge.net/release-notes-3.0.2.html).

I still did not convince the Aster team to set a tag and use it for their release, but I don't despair convincing them with some time smile

In the future, if you still have problems installing MFront, please do not hesitate to open a ticket on the sourceforge website.

Best,
Thomas

Offline

#9 2017-08-17 20:38:34

winksaville
Member
Registered: 2017-08-04
Posts: 19

Re: [SOLVED]aster-full-src-13.4.0 install fails MFrontBehaviour.h not foun

@thomas.helfer, yes the problem I'm having isn't directly to do with MFront. The MFrontBehaviour.h file is part of CA and I can actually compile problem by modifing wscript as I said in my second post:

I can actually solve the compile problem by adding the following to "aster-13.4.0/wscript" at line 211,
which which appends to INCLUDES the path to MFrontBehaviour.h:

paths = self.srcnode.ant_glob('bibcxx/mfront', src=True, dir=True)
    paths = [d.abspath() for d in paths]
    self.env.append_value('INCLUDES', paths)

So still looking for a solution.

Offline

#10 2017-08-26 17:28:13

mathieu.courtois
Administrator
From: France
Registered: 2007-11-21
Posts: 1,148

Re: [SOLVED]aster-full-src-13.4.0 install fails MFrontBehaviour.h not foun

A new package aster-full-src-13.4.0-3 is available and should solve these problems.

Please have a look at https://bitbucket.org/code_aster/codeas … dCodeAster for compiling a version of code_aster from its source repository.

MC


Code_Aster release : last unstable on Ubuntu 16.04 64 bits - GNU Compilers

Please do not forget to tag your first post as *SOLVED* when it is!

Offline

#11 2018-04-29 14:20:27

dutchtallman
Member
Registered: 2018-04-29
Posts: 6

Re: [SOLVED]aster-full-src-13.4.0 install fails MFrontBehaviour.h not foun

IV_CoAs wrote:

"It is looking, that I don't have libboost installed."

The French page of the pre-requisites mentions you have to install the pre-requisite: libboost-python-dev. This is not yet mentioned on the English page of the pre-requisites.

Offline

Board footer