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

You are not logged in.

#1 2022-06-15 11:08:31

albert
Member
Registered: 2012-01-11
Posts: 14

Tfel and Mumps compilation issues - code_aster 14.6

Hello,
I am installing and compiling code_aster 14.6, on linux Debian Bullseye. I took the updated prerequisites with this version of Debian. The compiler versions are:
gcc (Debian 10.2.1-6) 10.2.1 20210110
GNU Fortran (Debian 10.2.1-6) 10.2.1 20210110
Python 3.9.2
g++ (Debian 10.2.1-6) 10.2.1 20210110
However, compilation fails with tfel 3.2.1 and mumps 5.1.2.
I searched the forum, but I couldn't find a solution to fix this problem.
I am attaching the setup.log and setup.dbg files. It seems that there are incompatibilities of variable declarations when calling subroutines in FORTRAN.

Last edited by albert (2022-06-15 16:48:34)


Attachments:
setup.log, Size: 554.78 KiB, Downloads: 145

Offline

#2 2022-06-15 11:11:33

albert
Member
Registered: 2012-01-11
Posts: 14

Re: Tfel and Mumps compilation issues - code_aster 14.6

Continuation of log files --> setup.dbg


Attachments:
setup.dbg.tar.gz, Size: 233.01 KiB, Downloads: 127

Offline

#3 2022-06-20 22:18:28

osman
Member
Registered: 2012-03-04
Posts: 6

Re: Tfel and Mumps compilation issues - code_aster 14.6

I had the same problem with ubuntu 22.04. I changed setup.cache file added -std=legacy to FCFLAGS flag. Now mumps work but Tfel still failing... Same problem with 15.2  testing too.

Offline

#4 2022-06-21 10:33:38

albert
Member
Registered: 2012-01-11
Posts: 14

Re: Tfel and Mumps compilation issues - code_aster 14.6

I thank you for your answer. I added -std=legacy to the FCFLAGS flag in the setup.cfg file. I restarted a compilation and it didn't change anything.

Offline

#5 2022-07-06 18:06:52

osman
Member
Registered: 2012-03-04
Posts: 6

Re: Tfel and Mumps compilation issues - code_aster 14.6

I changed the compiler to gcc-9/g++-9/gfortran-9.  Now all the pre-reqs install ok. But fails with seg fault at first test.
My system is  ubuntu 22.04. I tried both 14.6 and 15.2 same result. Very close still some flag is missing?

My setup.cfg contains:
CC='/usr/bin/gcc-9'
CXX='/usr/bin/g++-9'
F90='/usr/bin/gfortran-9'
LD=F90
F90FLAGS="-std=legacy -O2 -fPIC"
CXXFLAGS="-fpermissive -fPIC"
CFLAGS="-fno-stack-protector -fPIC"      # for gcc 4.x

USE_FPIC=True     # default is True
PREFER_SHARED_LIBS=True   # False/True

Offline

#6 2022-09-16 16:48:15

jonathonmckaycnl
Member
Registered: 2022-09-16
Posts: 4

Re: Tfel and Mumps compilation issues - code_aster 14.6

I was having the same problem with TFEL, and am still struggling with MUMPS.

I actually ended posting on the TFEL GitHub problems page, and worked out a solution very quickly.
That post is here: github.com/thelfer/tfel/issues/315 (I recognize I'm not permitted to post links, but the whole story is there)
The solution basically involves running the Aster setup until it fails, getting a patched TFEL, changing the TFEL version number in its CMakeList file to be 3.2.1, then running TFEL's setup the way the Aster setup would have (possibly changing a setting so it finds the right python library). Once all that's done, run the Aster setup again and it will skip TFEL since it's already installed where it expects it.

EDIT: I've now also got MUMPS to compile. As suggested above, adding

F90FLAGS="-std=legacy"

to Aster's setup.cfg fixed the compile problem.
Have not tested execution yet.

Last edited by jonathonmckaycnl (2022-09-16 18:29:32)

Offline

#7 2022-09-23 09:36:38

jlucas
Member
Registered: 2021-12-15
Posts: 45

Re: Tfel and Mumps compilation issues - code_aster 14.6

Hello,

Earlier this year I've posted the problem...

compilation errors of code-aster on debian bullseye

no one offered solution. The developing team seams to be putting the effort into the 5-8GB singularity containers which they declare to be the panacea to solve all installation problems.

The gfortran v10 compilation errors seam to get sorted when the following flag is included:

-fallow-argument-mismatch

I've managed to get mumps to compile by adding such file, but on a separate compilation without the waf system, which I do not understand. By editing the Makefile.inc and adding the mentioned flag to OPTF, ie:

#Begin Optimized options
OPTF    = -O -O2 -fPIC -O -DPORD_INTSIZE64 -fopenmp -fallow-argument-mismatc

tfel did not manage to sort out.

Meanwhile, I got used to the singularity containers and indeed is possible to launch code aster without evoking salome, see my post on topic:
viewtopic.php?pid=67668#p67668

I think there might be an alternative way to install the singularity/apptainer container on debian11. apptainer  seams to be the follower from singularity. Currently is still not on the repositories, but the website shows how to proceed to get it packaged for debian.
Singularity is Apptainer?

Offline

#8 2023-07-24 07:55:40

paul18
Member
Registered: 2022-02-17
Posts: 44

Re: Tfel and Mumps compilation issues - code_aster 14.6

Hi,

The post is not recent, but I'm facing the same issue and I'm not figuring out how to fix it; of course all pre-requisites have been installed on my CentOS stream +I tested the "F90FLAGS" option with no sucess.

In attachement all setup files

Does somebody ever solved it?

Thanks for the support

Paul
####################
*** Exception raised : unavailable variables
Problem with : LIBPATH_MFRONT

Installation of   : tfel 3.2.1
Destination       : /opt/Code_Aster/public/tfel-3.2.1
Elapsed time      : 39.80 s
                                                                     
*** Exception None raised : None
See detailed traceback in the logfile
                                                                       [FAILED]


Attachments:
setup_file.tar.gz, Size: 208.8 KiB, Downloads: 49

Offline

#9 2023-07-24 09:14:30

paul18
Member
Registered: 2022-02-17
Posts: 44

Re: Tfel and Mumps compilation issues - code_aster 14.6

I retrieved information's in the "/install_tfel.x" directory, making a "ccmake." (see attachment), but It's out of my skills - maybe it can help (or not)

Note libboost libraries have been installed


Attachments:
boost.PNG, Size: 20.39 KiB, Downloads: 48

Offline

#10 2023-07-24 09:16:41

paul18
Member
Registered: 2022-02-17
Posts: 44

Re: Tfel and Mumps compilation issues - code_aster 14.6

the file with outputs...


Attachments:
recup.txt, Size: 13.92 KiB, Downloads: 76

Offline