Re: [fluka-discuss]: Problem building Fluka2011.2c.6

From: Mina Nozar <nozarm_at_triumf.ca>
Date: Thu, 8 Jun 2017 11:12:43 -0700

Hello Paola,

Thank you. Can this information please be clearly stated on the
download website?

- The website is still saying: requires version >= 4.5.
- Error message (that only appears on certain systems, says'gfortran >=
4.8 is required for running FLUKA!!'
- Looks like gcc version 7 does not work for some (from forum messages)
- And from Francesco, we are hearing: 'presently need * gfortran version 6'

These are different statements.

I have been able to compile 'Fluka2011.2c.6'. with gcc version 5.4.0,
4.4.7, and 4.7.3. But compiling and running are different issues. If
'Fluka2011.2c.6' is supposed to be compiled and run with a specific
version of gcc, it should be clearly stated.

This is important as I was able to get around installing Fluka on three
separate systems last night (prior to receiving this message). I
usually install the latest Fluka versions in the following order: 1) my
laptop, 2) local cluster, 3) remote cluster

1) my laptop:
Ubuntu 16.04.2 LTS
Release: 16.04
gcc version 5.4.0
The installation went smoothly, without any error messages.

2) local cluster:
Scientific Linux release 6.9 (Carbon)
gcc version 4.4.7

3) remote cluster (s)
Various head nodes with different flavours of Linux install but local
installation of gcc is used to compile Fluka.
gcc version 4.7.3

Of the above, I only ran into the installation issue with 'gfortran >=
4.8 is required for running FLUKA!!' on case 3). And I was able to get
around this by simply building 'flukahp' by hand, i.e. from inside flutil:
/./lfluka -o flukahp -m fluka/


Thank you,
Mina


On 2017-06-08 03:19 AM, paola sala wrote:
> Hello Mina
> You are right, the website needs to be updated.
> gfortran<4.8 has been found to mis-compile the code, that's why it is
> no longer accepted.
> The distributed version has been compiled with gfortran 6.3.1, new
> linux distributions already ship gfortran 7.0,
> ... update if you can!
>
> Regards
> Paola
>
> On 06/08/2017 01:21 AM, Mina Nozar wrote:
>>
>> I have not been able to build Fluka2011.2c.6 either with gcc version
>> 4.7.3
>>
>> Since when gfortran >= 4.8 is required to build/run fluka? Website
>> says: version >= 4.5 is sufficient.
>>
>>
>> *GNU/Linux (x86_64)* beta version, requires gcc/gfortran (version >=
>> 4.5)
>>
>> Thank you,
>>
>> Mina
>>
>>
>> [trsim_at_litai05:~/install]$ mv fluka2011.2c.6-linux-gfor64bitAA.tar.gz
>> fluka2011.2c-6-linux-gfor64bitAA.tar.gz
>> [trsim_at_litai05:~/install]$ ~/scripts/installFluka.py -l
>> fluka2011.2c-6-linux-gfor64bitAA.tar.gz fluka2011.2c-6
>> Prepping install directory /home/trsim/install/fluka2011.2c-6...
>> Untarring FLUKA source...
>> Building FLUKA to /home/trsim/install/fluka2011.2c-6...
>> FLUPRO=/g01/home/trsim/install/fluka2011.2c-6 flutil/lfluka -o
>> flukahp -m fluka
>> $FLUPRO = /g01/home/trsim/install/fluka2011.2c-6
>> gfortran >= 4.8 is required for running FLUKA!!
>> cd flutil; FLUPRO=/g01/home/trsim/install/fluka2011.2c-6 make all; cd ..
>> make[1]: Entering directory
>> `/g01/home/trsim/install/fluka2011.2c-6/flutil'
>> /g01/home/trsim/install/fluka2011.2c-6/flutil/fff -N actdline.f
>> gfortran >= 4.8 is required for running FLUKA!!
>> /g01/home/trsim/install/fluka2011.2c-6/flutil/fff -N hpadd.f
>> gfortran >= 4.8 is required for running FLUKA!!
>> /g01/home/trsim/install/fluka2011.2c-6/flutil/fff -N hpc.f
>> gfortran >= 4.8 is required for running FLUKA!!
>> /g01/home/trsim/install/fluka2011.2c-6/flutil/fff -N hpfor.f
>> gfortran >= 4.8 is required for running FLUKA!!
>> gfortran -o actdline actdline.o
>> gfortran: error: actdline.o: No such file or directory
>> make[1]: *** [actdline] Error 1
>> make[1]: Leaving directory
>> `/g01/home/trsim/install/fluka2011.2c-6/flutil'
>> Copying FLUKA build to /home/trsim/build/fluka/fluka2011.2c-6...
>> Setting permissions...
>> Setting default FLUKA build to /home/trsim/build/fluka/fluka2011.2c-6...
>>
>>
>>
>>
>> On 2017-06-07 07:06 AM, Hans Beijers wrote:
>>> Dear Fluka experts, Unfortunately there is a problem building the
>>> latest Fluka2011.2c.6 version, the error meassage is this:
>>> /usr/bin/ld: /home/<username>/Apps/fluka/libflukahp.a(flukam.o):
>>> unrecognized relocation (0x2a) in section `.text'
>>> /usr/bin/ld: final link failed: Bad value
>>> collect2: error: ld returned 1 exit status
>>>
>>> It looks as if my linux version (Ubuntu 14) has a problem with the binutils package, but I have not found a newer package that works with Ubuntu 14. Other relevant information is given below:
>>>
>>> Ubuntu 14.04
>>> kernel: 4.4.0-78-generic
>>> libstdc++6: 6.2.0-3ubuntu11~14.04
>>> gfortran: 6.2.0-3ubuntu11~14.04
>>>
>>> Any help is greatly appreciated, thanks a lot.
>>>
>>> All the best,
>>>
>>> Hans
>>
>



__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Thu Jun 08 2017 - 21:24:04 CEST

This archive was generated by hypermail 2.3.0 : Thu Jun 08 2017 - 21:24:08 CEST