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

From: Jixie Zhang <jixie_at_jlab.org>
Date: Mon, 6 Mar 2017 15:25:32 -0500

Dear all,
  Here is an update to this request.
The nominal gcc in centos7.2 is v4.8.5.

Upgrade the gcc to v6.x and updating binutils from v2.23 to >=v2.26
are denied simply because this desktop is a public one. Upgrade binutils
will cause a lot of other pre-installed softwares broken.

Finally I found that the fluka2011.2c-linux-gfor5.3-64bitAA does not require
binutils to be >=v2.26. I installed gcc v5.3 and compile
fluka2011.2c-linux-gfor5.3-64bitAA
successfully.
The executable runs even if I copy it to other centos7.2 without gfortran
v5.3.

  Thank you all for your help and hope this help others.



On Wed, Mar 1, 2017 at 12:57 PM, Jixie Zhang <jixie_at_jlab.org> wrote:

> Dear Alberto,
> Thank you for your quick answer.
> I am using a public farm note in which I have no root privilege.
> I can try to install gcc 6.x and gfortran6.x in my home dir then try again.
> I think I will then encounter with errors like a lot of other dependence
> lib
> incompatible since they came with gcc4.8.5. I will come back if it happens.
>
> On Wed, Mar 1, 2017 at 12:08 PM, Alberto Ribon <Alberto.Ribon_at_cern.ch>
> wrote:
>
>> 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!
>>
>>
>
>
>
> --
> With Best Regards,
> Jixie Zhang
> 757-269-7735 <%28757%29%20269-7735>
> _______________________________________________
>



-- 
With Best Regards,
Jixie Zhang
757-269-7735
_______________________________________________
__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Mon Mar 06 2017 - 22:31:53 CET

This archive was generated by hypermail 2.3.0 : Mon Mar 06 2017 - 22:31:57 CET