RE: [fluka-discuss]: Can not compile fluka2011.2c-linux-gfor64bitAA using gfortran in CentOS7.2

From: Alberto Ribon <Alberto.Ribon_at_cern.ch>
Date: Wed, 1 Mar 2017 17:08:00 +0000

Hello,

I had a similar problem a few days ago, and the following answer
by Alfredo Ferrari solved the problem for me:

fluka-2011.2c is compiled under gfortran-6.3. One needs gfortran 6.x and
binutils 2.26 to link successfully. There are known compilation issues
with gfortran-4.x, surely for x < 8 but there are suspicions for
all 4.something versions. I strongly advice to use a recent gfortran
version, I know SLC is horribly old in compiler versions, but 5.x
(and now 6.x) are out since a few years, we do not have (yet) evidence
of miscompilations on them, and (6.x) they are also producing
30% faster executables for Fluka...

Regards,
                 Alberto

________________________________
From: owner-fluka-discuss_at_mi.infn.it [owner-fluka-discuss_at_mi.infn.it] on behalf of Jixie Zhang [jixie_at_jlab.org]
Sent: 01 March 2017 17:11
To: FLUKA discussion
Subject: [fluka-discuss]: Can not compile fluka2011.2c-linux-gfor64bitAA using gfortran in CentOS7.2

Hi, All,
I tried to compile fluka2011.2c-linux-gfor64bitAA.tar.gz in CentOS7.2
using gfortran (4.8.5) in 64-bit mode but failed.
Please help!

Here is the error message:
---------------------------------------------------------------------------
/usr/bin/ld: /work/centos72/FLUKA/fluka2011.2c-linux-gfor64bitAA/libflukahp.a(dortno.o): unrecognized relocation (0x2a) in section `.text'
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
----------------------------------------------------------------------------

Here is my os information:
CentOS Linux release 7.2.1511 (Core)
gcc version 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC)

$> yum list binutils
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Installed Packages
binutils.x86_64 2.23.52.0.1-55.el7

I found similar entry here
http://www.fluka.org/web_archive/earchive/new-fluka-discuss/9615.html
saying that binutils>=2.6 will solve this question. Here I have v2.23 installed
but still have this error. Therefore it must come from other dependences.

Please help!



__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Wed Mar 01 2017 - 19:47:19 CET

This archive was generated by hypermail 2.3.0 : Wed Mar 01 2017 - 19:47:21 CET