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

You are not logged in.

#1 2020-04-26 12:14:31

ing.nicola
Member
Registered: 2017-12-11
Posts: 43

Code aster 14_04_01 + mumps fails installation on Xubuntu 20.0

Attached log files.

Last edited by ing.nicola (2020-04-26 12:18:08)


Attachments:
mumps, Size: 6.66 KiB, Downloads: 50

Offline

#2 2020-04-26 12:15:36

ing.nicola
Member
Registered: 2017-12-11
Posts: 43

Re: Code aster 14_04_01 + mumps fails installation on Xubuntu 20.0

Aster log


Attachments:
config.log, Size: 100.83 KiB, Downloads: 51

Offline

#3 2020-04-30 12:06:42

ing.nicola
Member
Registered: 2017-12-11
Posts: 43

Re: Code aster 14_04_01 + mumps fails installation on Xubuntu 20.0

I'm trying to compile with python3.6.
this works for numps but not for tfel and aster.
Aster has the same problem : cannot create a embedded iterpreter.
It selects pythn3.8 automatically for creation of embedded interpreter. . Can this be changed ?

Last edited by ing.nicola (2020-04-30 12:06:57)

Offline

#4 2020-04-30 17:11:41

tejaswini16
Member
Registered: 2020-04-18
Posts: 11

Re: Code aster 14_04_01 + mumps fails installation on Xubuntu 20.0

remove python3.8 from the system for the period of the installation or try using a python virtual environment

Offline

#5 2020-04-30 22:43:40

sb1966
Member
Registered: 2015-03-16
Posts: 150

Re: Code aster 14_04_01 + mumps fails installation on Xubuntu 20.0

Hi,

remove python3.8 from the system for the period of the installation or try using a python virtual environment

But this is risky. Removing default python may break many dependencies to make the system unstable/unusable.

I do not know how to install virtual python env. Would you please explain the procedure?

Best regards

Sukumar

Offline

#6 2020-05-01 12:02:36

ing.nicola
Member
Registered: 2017-12-11
Posts: 43

Re: Code aster 14_04_01 + mumps fails installation on Xubuntu 20.0

I tried with anaconda. Don't works

Offline

#7 2020-05-04 10:02:14

Irvise
Member
Registered: 2019-12-07
Posts: 6

Re: Code aster 14_04_01 + mumps fails installation on Xubuntu 20.0

Hello.

I have the same problem and I think I have the cause (at the very least for the build failure of ASTER).

Modern systems (such as Xubuntu 20.04 or in my case OpenSuse Tumbleweed) ship Python3.8. Aster needs Python3.5+, therefore Python3.8 should work. HOWEVER, there was a change in Python3.8 that makes the building process fail. Python3.8 no longer returns -lpython3.8 when the build system runs:

python3-config --cflags --libs --ldflags

(to be more precise, the --libs flag does no longer return -lpython3.8). Which is required to run the build (waf, the build system checks this by building a small C program linked against Python). And since the linker does not receive the -lpython3.8 flag, it fails to link the program and then waf exits.

For more information, refer to: docs.python.org/dev/whatsnew/3.8.html#debug-build-uses-the-same-abi-as-release-build and gitlab.com/ita1024/waf/-/merge_requests/2236

It seems that ASTER is using waf 2.0.12, which is older than the patch that was submitted (see link above).

Regarding the Virtual environment: Virt_env allows you to select which Python version to use, so this may be a solution, however, I am not well versed enough to try it.

If anyone knows how to ping a developer/maintainer (or who to ping), do so. Or tell me where can I reach them and explain this issue.
---------

For Mumps, it also fails when I try to build it, but the issue is different. It seems it is failing in the middle of some Python code (it may be related to Python3.8). I have attached Mumps build logs


Attachments:
mumps, Size: 8.74 KiB, Downloads: 37

Offline

#8 2020-06-11 22:08:56

Lazyjan
Member
Registered: 2020-06-11
Posts: 1

Re: Code aster 14_04_01 + mumps fails installation on Xubuntu 20.0

I encountered exactly the same issue as "ing.nicola" when installing CodeAster 14.04 on Ubuntu 20.04 (shipped with Python 3.8.3);  the same errors in "config.log".
As "Irvise" suggests, the trouble seems to stem from different Python version (Python 3.8+).
The installation on Ubuntu 18.04 (LTS, shipped with Python 3.6) helped.

As Windows 10 user, I recommend to install Ubuntu on virtual machine (I have a good experience with VMWare Workstation Player) since the ease of installing various versions of OSs.

Offline