Re: [fluka-discuss]: Problem compiling fluke 2011.2c-6 on Debian 8

From: Andrea Fontana <andrea.fontana_at_pv.infn.it>
Date: Thu, 9 Nov 2017 17:44:46 +0100

Hi Leon,
  just a couple of suggestions, since I have no access to native Debian,
but I have succesfully tried the following on Ubuntu:

- check the binutils version and updgrade it to a version >= 2.26,
  as it was suggested to other users today for Fedora and CentOS;

- try changing the gfortran version. In Ubuntu (and possibly in Debian,
  but you have to check) it is possible to easily keep different gfortran
  versions, since they are named differently (gfortran-6, gfortran-7 ...).
  While keeping your current version, you can simply make a symbolic link
  to the version you want to try.

  For example, you can install gfortran-6 with:
  apt install gfortran-6

  then backup your current executable (to be able to revert back):
  mv /usr/bin/gfortran /usr/bin/gfortran-4

  and then make a link to the gfortran compiler:
  ln -s /usr/bin/gfortran-6 /usr/bin/gfortran

  This requires superuser access, but after this all users can access
  gfortran-6 by invoking gfortran. It worked on one of our machines...

I hope this helps.
Best regards,
Andrea

Il 08/11/2017 22:20, Flaks, Leonid ha scritto:
> I am trying to compile the latest version of fluka 20112c-6 on Debian 8.8.
> When I run make I got this error:
>
> COLLECT_GCC_OPTIONS='-msse2' '-mfpmath=sse' '-fPIC' '-O3' '-g' '-mtune=generic' '-fexpensive-optimizations' '-funroll-loops' '-Wall' '-Wuninitialized' '-Wno-tabs' '-Wline-truncation' '-Wno-unused-function' '-Wno-unused-parameter' '-Wno-unused-dummy-argument' '-Wno-unused-variable' '-Wunused-label' '-Waggregate-return' '-Wcast-align' '-Wsystem-headers' '-ftrapping-math' '-frange-check' '-fbackslash' '-fbacktrace' '-ffpe-trap=invalid,zero,overflow' '-finit-local-zero' '-ffixed-form' '-frecord-marker=4' '-funderscoring' '-fno-automatic' '-fd-lines-as-comments' '-fbounds-check' '-I' '/GPFS/APC/fluka-2011.2c-6/flukapro' '-v' '-o' 'gplevbin' '-L/GPFS/APC/fluka-2011.2c-6' '-shared-libgcc' '-march=x86-64'
> /usr/lib/gcc/x86_64-linux-gnu/4.9/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/4.9/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/4.9/lto-wrapper -plugin-opt=-fresolution=/tmp/ccV5VOxP.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lquadmath -plugin-opt=-pass-through=-lm -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o gplevbin /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.9/crtbegin.o -L/GPFS/APC/fluka-2011.2c-6 -L/usr/lib/gcc/x86_64-linux-gnu/4.9 -L/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -
L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.9/../../.. gplevbin.o -lflukahp -lgfortran -lm -lgcc_s -lgcc -lquadmath -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-linux-gnu/4.9/crtend.o /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crtn.o
> /usr/bin/ld: /GPFS/APC/fluka-2011.2c-6/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
>
>
> There is another screen full of messages, but no other errors. As a result, flukahp has not been made. I have no problem compiling previous version on the same system.
> gcc version is 4.9.2
> Any suggestions?
>
> Thanks,
> Leon
> __________________________________________________________________________
> You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?idc_info
>
>

-- 
========================================================================
Dr. Andrea Fontana                    tel: +39 0382 987991
Istituto Nazionale                    fax: +39 0382 423241
di Fisica Nucleare
Sezione di Pavia                      e-mail: andrea.fontana_at_pv.infn.it
Via Bassi 6                           web   : www.pv.infn.it/~fontana
27100 PAVIA, Italy
========================================================================
__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?idc_info
Received on Thu Nov 09 2017 - 19:18:34 CET

This archive was generated by hypermail 2.3.0 : Thu Nov 09 2017 - 19:18:41 CET