Re: [fluka-discuss]: FLUKA with gfortran7

From: Stefan E. Mueller <stefan.mueller_at_hzdr.de>
Date: Sun, 18 Apr 2021 15:02:26 +0200 (CEST)

Dear Alessandro,

regarding the linker, if you can find (or build yourself) a more actual
"ld", that may work - I occasionally build FLUKA on a platform where I use
a "ld"-command which is on a remotely mounted filesystem (by simply adding
the directory on this filesystem which contains the "ld"-command to the
front of the $PATH-variable), and I can install FLUKA with this (provided
the "external" ld-command is compatible with your system).

For the glibc, our system administrator on CentOS has created a glibc/2.31
environment as a module, which can be loaded when needed (it overrides
the standard glibc on the system) - I use this for building FLUKA, once FLUKA
is installed, it is not needed anymore (e.g. for linking user routines etc.
it is not required, at least I do not see any errors/crashes).

Cheers,

         Stefan

--
Stefan E. Mueller
Department of Information Services and Computing - Computational Science
and Institute of Radiation Physics
Helmholtz-Zentrum Dresden-Rossendorf
Tel: +49 (0351) 260 3847
Stefan.Mueller_at_hzdr.de
http://www.hzdr.de
Vorstand: Prof. Dr. Sebastian M. Schmidt, Dr. Diana Stiller
Vereinsregister: VR 1693 beim Amtsgericht Dresden
On Fri, 16 Apr 2021, Alessandro Calamida wrote:
> Dear Stefan,
>
> I checked for the two linkers and I found out that on the server that I have 
> the 2.25 version for the binutils and the 2.17 for the glibc. I will try to 
> ask for a newer version of this libraries but I think that this will be an 
> even harder mission to achieve.
>
> Best reagards and thank you for your time, Alessandro Calamida.
>
> Il 16/04/2021 13:48, Stefan E. Mueller ha scritto:
>> Hi Alessandro -
>> 
>> difficult to say. It fails at the linking stage - maybe there is a problem 
>> with the linker version?
>> 
>> What do you get when you do
>> 
>> ld --version
>> 
>> and
>> 
>> ldd --version
>> 
>> ?
>> 
>> This should give you the version of binutils package and glibc.
>> 
>> FLUKA requires binutils 2.27 (or higher) and glibc version is specified as 
>> 2.32 for the GFortran 9.3 version (even though I installed with 2.31, and
>> it also worked).
>> 
>> Cheers,
>> 
>> Stefan
>> 
>> -- 
>> Stefan E. Mueller
>> Department of Information Services and Computing - Computational Science
>> and Institute of Radiation Physics
>> Helmholtz-Zentrum Dresden-Rossendorf
>> Tel: +49 (0351) 260 3847
>> Stefan.Mueller_at_hzdr.de
>> http://www.hzdr.de
>> 
>> Vorstand: Prof. Dr. Sebastian M. Schmidt, Dr. Diana Stiller
>> Vereinsregister: VR 1693 beim Amtsgericht Dresden
>> 
>> On Fri, 16 Apr 2021, Alessandro Calamida wrote:
>> 
>>> 
>>> The option to activate the gcc9.3 compiler was very well hidden in the
>>> manual. So, it was hard to find it. I activate the new gfortran9 compiler.
>>> Then I gave the variable FLUFOR=gfortran and FLUGFOR=gfortran9. But the 
>>> make
>>> process ended with this message:
>>> 
>>> 
>>> /usr/bin/ld: final link failed: Bad value
>>> 
>>> 
>>> The flukahp executable was not build. How can I fix it.
>>> 
>>> 
>>> Unfortunately I have very few privileges on this server and I cannot use
>>> sudo.
>>> 
>>> 
>>> Best regards and thank you of your time, Alessandro Calamida.
>>> 
>>> 
>>> Il 15/04/2021 20:32, Santana, Mario ha scritto:
>>>  Gfortran 8.4 will not work with gfortran 7 (or even with
>>>  gfortran 8.3x...).
>>> The solution is to use an OS where you can use devtools-9 (or above),
>>> such as centos7 (vs. older systems like rhel6). Many clusters have
>>> different types of machines in the pools.
>>> 
>>> -M
>>> 
>>> 
>>> ____________________________________________________________________________ 
>>> From: owner-fluka-discuss_at_mi.infn.it on behalf of Stefan E. Mueller
>>> Sent: Thursday, April 15, 2021 6:00 AM
>>> To: Alessandro Calamida
>>> Cc: fluka-discuss_at_fluka.org
>>> Subject: Re: [fluka-discuss]: FLUKA with gfortran7
>>> Dear Alessandro,
>>> 
>>> there exists a FLUKA version for gfortran 8.4, did you try to use
>>> this one with gfortran7?
>>> 
>>> I have not tested it myself, but I had the feeling that
>>> compatibility between different gfortran versions was slightly
>>> improving
>>> (but I could be wrong). So it might work.
>>> 
>>> Cheers,
>>> 
>>>  Stefan
>>> 
>>> -- 
>>> Stefan E. Mueller
>>> Department of Information Services and Computing - Computational
>>> Science
>>> and Institute of Radiation Physics
>>> Helmholtz-Zentrum Dresden-Rossendorf
>>> Tel: +49 (0351) 260 3847
>>> Stefan.Mueller_at_hzdr.de
>>> http://www.hzdr.de
>>> 
>>> Vorstand: Prof. Dr. Sebastian M. Schmidt, Dr. Diana Stiller
>>> Vereinsregister: VR 1693 beim Amtsgericht Dresden
>>> 
>>> On Thu, 15 Apr 2021, Alessandro Calamida wrote:
>>> 
>>> > Dear FLUKA experts,
>>> >
>>> > There is a way to have a FLUKA version working with gfortran7?
>>> Beacause on
>>> > the server that I am using, they have erased g77 compiler and they
>>> had at
>>> > maximum gofortran7. Installing gfortran9 manually is quite
>>> impossible because
>>> > I do not have sudo privileges. So, I cannot use FLUKA there anymore.
>>> >
>>> > Best regards and thank you for your time, Alessandro Calamida.
>>> >
>>> >
>>> > --
>>> > Questa e-mail  stata controllata per individuare virus con Avast
>>> antivirus.
>>> > https://www.avast.com/antivirus
>>> >
>>> >
>>> >
>>> __________________________________________________________________________ 
>>> > You can manage unsubscription from this mailing list at
>>> > https://www.fluka.org/fluka.php?id=acc_info
>>> >
>>> >
>>> 
>>> 
>>> [icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]
>>> Mail priva di virus. www.avast.com
>>> 
>>> 
>
> -- 
> Questa e-mail  stata controllata per individuare virus con Avast antivirus.
> https://www.avast.com/antivirus
>
> __________________________________________________________________________
> You can manage unsubscription from this mailing list at 
> https://www.fluka.org/fluka.php?id=acc_info
>
>



__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info

Received on Sun Apr 18 2021 - 16:59:37 CEST

This archive was generated by hypermail 2.3.0 : Sun Apr 18 2021 - 16:59:42 CEST