Atom topic feed | site map | contact | login | Protection des données personnelles | Powered by FluxBB | réalisation artaban
You are not logged in.
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)
Offline
Continuation of log files --> setup.dbg
Offline
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
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
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
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
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
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]
Offline
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
Offline