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

You are not logged in.

#1 2017-10-27 23:00:28

mechapple
Member
Registered: 2017-03-21
Posts: 8

waf build error for code_aster

Hello all,

I'm trying to install code_aster on a 64 bit cluster with Scientific Linux.
I got stuck in the final steps of "python setup.py":

*******************************************
>>> Building the product <<<

entering directory '/tmp/install_aster.16351/aster-13.4.0'
Command line : ./waf build
compiling aster...
Command output :
compiling aster...                                                     [FAILED]
Exit code : 1
checking environment... already set
Waf: Entering directory `/tmp/install_aster.16351/aster-13.4.0/build/release'
[   3/7931] Compiling bibfor/algeline/amdapt.F90
[   4/7931] Compiling bibfor/algeline/almulr.F90
[   3/7931] Compiling bibfor/algeline/amdbar.F90
[   4/7931] Compiling bibfor/algeline/amogen.F90
[   5/7931] Compiling bibfor/algeline/antisy.F90
[   6/7931] Compiling bibfor/algeline/apchar.F90
[   7/7931] Compiling bibfor/algeline/apm345.F90
....
....
....
[7921/7931] Compiling build/release/mfront/MetaAcierEPIL_PT/src/MetaAcierEPIL_PT.cxx
[7922/7931] Linking build/release/mfront/libAsterMFrOfficial.so
[7923/7931] Compiling build/release/mfront/libAsterMFrOfficial.so
Waf: Leaving directory `/tmp/install_aster.16351/aster-13.4.0/build/release'
EXIT_COMMAND_16351_00000106=1

*** Exception raised : error during compilation

************************************************
When I look in the setup.dbg file, I see:

<DBG> [7920/7931] Compiling build/release/mfront/Iwan/src/Iwan.cxx
<DBG> [7921/7931] Compiling build/release/mfront/MetaAcierEPIL_PT/src/MetaAcierEPIL_PT.cxx
<DBG> [7922/7931] Linking build/release/mfront/libAsterMFrOfficial.so
<DBG> [7923/7931] Compiling build/release/mfront/libAsterMFrOfficial.so
<DBG> Waf: Leaving directory `/tmp/install_aster.16351/aster-13.4.0/build/release'
<DBG> EXIT_COMMAND_16351_00000106=1
<DBG>                 from /tmp/install_aster.16351/aster-13.4.0/bibc/include/aster.h:22,
<DBG>                 from ../../bibc/utilitai/debugging.c:25:
<DBG> #define _POSIX_C_SOURCE 200112L
<DBG>
<DBG> In file included from /usr/include/execinfo.h:22:0,
<DBG>                 from ../../bibc/utilitai/debugging.c:21:
<DBG> /usr/include/features.h:213:0: note: this is the location of the previous definition
<DBG> #  define _POSIX_C_SOURCE 200809L
<DBG>
<DBG>
<DBG> Build failed
<DBG> Traceback (most recent call last):
<DBG>  File "/tmp/install_aster.16351/aster-13.4.0/.waf-1.8.22-5fa41dedfc4a80e01a7ca1d1c9d570c0/waflib/Task.py", line 110, in process
<DBG>    ret=self.run()
<DBG>  File "/tmp/install_aster.16351/aster-13.4.0/mfront/wscript", line 309, in run
<DBG>    props = getMaterialProperties(libpath, filename, symbol)
<DBG>  File "/tmp/install_aster.16351/aster-13.4.0/mfront/wscript", line 347, in getMaterialProperties
<DBG>    dsl = mfront.getDSL(mfront_filename)
<DBG> ArgumentError: Python argument types in
<DBG>    mfront._mfront.getDSL(str)
<DBG> did not match C++ signature:
<DBG>    getDSL(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)
<DBG>
<DBG> +++ END
*** Exception raised : error during compilation

************************

I've attached the setup.dbg file. I'll be grateful if anyone can provide advice.

Thank you.


Attachments:
setup.tar.gz, Size: 511.79 KiB, Downloads: 49

Offline

#2 2017-10-29 18:13:16

Thomas DE SOZA
Guru
From: EDF
Registered: 2007-11-23
Posts: 3,054

Re: waf build error for code_aster

Hi,

Thanks for reporting that, this is a strange error that we've never seen before.

It looks like a problem when compiling the MFront libraries used by code_aster. This may come from code_aster build system.
We would have to test that on a recent distro to make a precise diagnostic.

In the meantime, here are some advices:
- if you don't need it, just disable MFront (_install_mfront=False in setup.cfg).
- I see you're using GCC 7.1. If Scientific Linux provides an older version (e.g. GCC 5 or 6), you should try using it.

TdS

Offline

#3 2017-10-30 19:48:55

ThTh
Member
From: Lyon, France
Registered: 2007-12-23
Posts: 40
Website

Re: waf build error for code_aster

Thomas DE SOZA wrote:

In the meantime, here are some advices:
- if you don't need it, just disable MFront (_install_mfront=False in setup.cfg).

To disable MFront, you also have to run `waf configure' with --disable-mfront


--
Th. Thomas.

Offline

#4 2017-11-01 19:03:04

mechapple
Member
Registered: 2017-03-21
Posts: 8

Re: waf build error for code_aster

Thank you for getting back to me. Your suggestions were very helpful.

I retried the full aster installation with gcc 5.4 and I faced the same error.

I tried without mfront, by putting
(1) "_install_mfront=False" in setup.cfg
(2) "./waf configure --use-config=aster_full_config --disable-mfront" in products.py

and the installation completed successfully. I've attached the setup.log and setup.dbg files for the two cases.

It seems the mfront module is the culprit (or victim) of the installation process. Is it advisable
to use an older (or newer) version of mfront for the same?


Attachments:
aster_logs.tar.gz, Size: 884.2 KiB, Downloads: 48

Offline

#5 2017-11-03 16:26:58

bhattarai
Member
Registered: 2014-01-31
Posts: 124

Re: waf build error for code_aster

Hi mechapple,

Previously, I found the steps to disable the mfront little confusing, since the detail information was not posted. Recently, you presented the way to modify the product.py file and seem to be easy. I added the command as:

         ('Configure', {
        'command'    :'./waf configure --use-config=aster_full_config --disable-mfront',
            'external' : write_waf_cfg,
            'template' : mfront_env_template,
            'filename' : osp.join(cfg['ASTER_VERSION_DIR'], 'share', 'aster',
                                  'profile_mfront.sh'),
            'config'   : cfg,
         }),

but the aster compilation failed. Could you verify if it is the same way you had done? If not could you please hint me how and where I can correctly do the changes in product.py?

Many thanks in advance.
Bhattarai

Offline

#6 2017-11-03 18:52:16

mechapple
Member
Registered: 2017-03-21
Posts: 8

Re: waf build error for code_aster

line 774-778 in products.py is:

         ('Configure', {
            'command'   : './waf configure --use-config=aster_full_config '
                          '  --install-tests --prefix=%(ASTER_VERSION_DIR)s' % cfg,
            'capturestderr' : False,
         }),

I change it to

         ('Configure', {
            'command'   : './waf configure --use-config=aster_full_config  --disable-mfront'
                          '  --install-tests --prefix=%(ASTER_VERSION_DIR)s' % cfg,
            'capturestderr' : False,
         }),

This is the "aster-full-src-13.4.0" version. Also, I'm not sure you can run code_aster without mfront ..

Offline

#7 2017-11-03 20:11:01

bhattarai
Member
Registered: 2014-01-31
Posts: 124

Re: waf build error for code_aster

Thank you mechapple. The problem is solved now.

Best regards,
Bhattarai

Offline

#8 2018-03-27 19:14:25

Paul Oumaziz
Member
Registered: 2018-03-27
Posts: 2

Re: waf build error for code_aster

Hello,

I'm trying also to install aster-full-13.4 on a centos 6 and I got the same problem during the build of code-aster with mfront. Have you find another solution than install aster without mfront ?

I'm tying to install it with a python from a local install of anaconda. I don't see where the problem could be since on my ubuntu laptop there is no problem. Maybe it comes from my version of gcc which is a 5.4 but not the one of the system.

Thank you

Paul

Offline

#9 2018-04-05 16:26:15

bhattarai
Member
Registered: 2014-01-31
Posts: 124

Re: waf build error for code_aster

Hello Paul,

My apologies for late reply. I did try to install different versions for which installation was not a problem. But specifically aster 13.4 encountered mfront issue. For my computation, I did not do any other follow up other than commenting mfront during installation.

I guess, aster developers might have solved this problem.

Regards,
Bhattarai

Offline

#10 2018-04-05 20:30:04

Paul Oumaziz
Member
Registered: 2018-03-27
Posts: 2

Re: waf build error for code_aster

Hello,

thanks for your answer. The problem may comes from the version of the boost library. With an updated one (1.66.0) the problem has been fixed and I compiled it successfully. However as it is an installation in my home, with a python also install in my home, I got problem when I tried to execute a computation with aster :

Traceback (most recent call last):
  File "/home/oumaziz/softs/aster-13.4/13.4/lib64/aster/Execution/E_SUPERV.py", line 47, in <module>
    import aster_settings
  File "/home/oumaziz/softs/aster-13.4/13.4/lib64/aster/aster_settings.py", line 44, in <module>
    from Execution.i18n import localization
  File "/home/oumaziz/softs/aster-13.4/13.4/lib64/aster/Execution/i18n.py", line 28, in <module>
    import gettext
  File "/home/oumaziz/python-packages/python-2.7.14/lib/python2.7/gettext.py", line 49, in <module>
    import locale, copy, os, re, struct, sys
  File "/home/oumaziz/python-packages/python-2.7.14/lib/python2.7/copy.py", line 52, in <module>
    import weakref
  File "/home/oumaziz/python-packages/python-2.7.14/lib/python2.7/weakref.py", line 14, in <module>
    from _weakref import (
ImportError: cannot import name _remove_dead_weakref
EXECUTION_CODE_ASTER_EXIT_58431-buckler=1

With google search it seems there is a conflict somewhere with the python install. But I don't know where and can't fix the problem.

Finally I will install aster without mfront sad

Regards,
Paul

Offline

Board footer