Source.f issues

Dear Experts,
I am trying to compile my old source.f file with the provided python script in my working fluka_work directory. The exact command was neutron.f

It was successfully compiled and “FINISHED”. But, till while I am trying to compile it in Flair, its showing following error

Started 2020.01.09 14:05:49
*-* Compiling: /usr/local/fluka/bin/fff neutron.f
gfortran -c -I/usr/local/fluka/include -g -O3 -Wall -Waggregate-return -Wcast-align -Wline-truncation -Wno-conversion -Wno-integer-division -Wno-tabs -Wno-unused-dummy-argument -Wno-unused-function -Wno-unused-parameter -Wno-unused-variable -Wsystem-headers -Wuninitialized -Wunused-label -mtune=generic -msse2 -mfpmath=sse -fPIC -fexpensive-optimizations -funroll-loops -fstrength-reduce -fno-automatic -finit-local-zero -ffixed-form -fbackslash -funderscoring -fd-lines-as-code -frecord-marker=4 -fbacktrace -frange-check -fbounds-check -fdump-core -ftrapping-math -ffpe-trap=invalid,zero,overflow -o neutron.o neutron.f

*-* Linking: /usr/local/fluka/bin/lfluka -o neutron neutron.o
gfortran -o neutron neutron.o -L/usr/local/fluka/lib -lfluka
/usr/bin/ld: /usr/local/fluka/lib/libfluka.a(fpe.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
Ended: 2020.01.09 14:05:49

Error linking
Error: executable is not generated

Where I am making mistakes?
Thanks in advance


you might have a look at this post which showed a similar issue.

If you are using gfortran 7, please download again the package from the website where a configuration error has been discovered and fixed beginning of the week.