Re: [fluka-discuss]: Source compiling error

From: Alessandro <alex.calamida2_at_tiscalinet.it>
Date: Thu, 11 Jul 2019 12:20:01 +0200

Dear Horvàth,

This is the output of FLUKA when I try to link and create the executable
on the local linux virtual machine:

  now linking
/home/alessandro/Desktop/FLUKA_2
gfortran
ar x /home/alessandro/Desktop/FLUKA_2/libflukahp.a fluka.o
rm: cannot remove 'FNG.map': No such file or directory
gfortran -msse2 -mfpmath=sse -fPIC -O3 -g -mtune=generic
-fexpensive-optimizations -funroll-loops -fstrength-reduce -Wall
-Wuninitialized -Wno-tabs -Wline-truncation -Wno-unused-function
-Wno-unused-parameter -Wno-unused-dummy-argument -Wno-integer-division
-Wno-unused-variable -Wno-conversion -Wunused-label -Waggregate-return
-Wcast-align -Wsystem-headers -ftrapping-math -frange-check -fbackslash
-fdump-core -fbacktrace -ffpe-trap=invalid,zero,overflow
-finit-local-zero -ffixed-form -frecord-marker=4 -funderscoring
-fno-automatic -fd-lines-as-comments -fbounds-check
-I/home/alessandro/Desktop/FLUKA_2/flukapro -v -o FNG -Xlinker -Map
-Xlinker FNG.map fluka.o ../FNG_source2_Z.o
-L/home/alessandro/Desktop/FLUKA_2 -lflukahp
Driving: gfortran -msse2 -mfpmath=sse -fPIC -O3 -g -mtune=generic
-fexpensive-optimizations -funroll-loops -fstrength-reduce -Wall
-Wuninitialized -Wno-tabs -Wline-truncation -Wno-unused-function
-Wno-unused-parameter -Wno-unused-dummy-argument -Wno-integer-division
-Wno-unused-variable -Wno-conversion -Wunused-label -Waggregate-return
-Wcast-align -Wsystem-headers -ftrapping-math -frange-check -fbackslash
-fdump-core -fbacktrace -ffpe-trap=invalid,zero,overflow
-finit-local-zero -ffixed-form -frecord-marker=4 -funderscoring
-fno-automatic -fd-lines-as-comments -fbounds-check
-I/home/alessandro/Desktop/FLUKA_2/flukapro -v -o FNG -Xlinker -Map
-Xlinker FNG.map fluka.o ../FNG_source2_Z.o
-L/home/alessandro/Desktop/FLUKA_2 -lflukahp -l gfortran -l m -shared-libgcc
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
8.3.0-6ubuntu1~18.10.1'
--with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs
--enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++
--prefix=/usr --with-gcc-major-version-only --program-suffix=-8
--program-prefix=x86_64-linux-gnu- --enable-shared
--enable-linker-build-id --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --libdir=/usr/lib
--enable-nls --enable-bootstrap --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-libmpx --enable-plugin
--enable-default-pie --with-system-zlib --with-target-system-zlib
--enable-objc-gc=auto --enable-multiarch --disable-werror
--with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32
--enable-multilib --with-tune=generic
--enable-offload-targets=nvptx-none --without-cuda-driver
--enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 8.3.0 (Ubuntu 8.3.0-6ubuntu1~18.10.1)
Reading specs from /usr/lib/gcc/x86_64-linux-gnu/8/libgfortran.spec
rename spec lib to liborig
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-integer-division' '-Wno-unused-variable' '-Wno-conversion'
'-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'
'/home/alessandro/Desktop/FLUKA_2/flukapro' '-v' '-o' 'FNG'
'-L/home/alessandro/Desktop/FLUKA_2' '-shared-libgcc' '-march=x86-64'
COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../:/lib/:/usr/lib/
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-integer-division' '-Wno-unused-variable' '-Wno-conversion'
'-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'
'/home/alessandro/Desktop/FLUKA_2/flukapro' '-v' '-o' 'FNG'
'-L/home/alessandro/Desktop/FLUKA_2' '-shared-libgcc' '-march=x86-64'
  /usr/lib/gcc/x86_64-linux-gnu/8/collect2 -plugin
/usr/lib/gcc/x86_64-linux-gnu/8/liblto_plugin.so
-plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper
-plugin-opt=-fresolution=/tmp/ccCiekSb.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 --build-id --eh-frame-hdr -m elf_x86_64
--hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2
-pie -z now -z relro -o FNG
/usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/Scrt1.o
/usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/crti.o
/usr/lib/gcc/x86_64-linux-gnu/8/crtbeginS.o
-L/home/alessandro/Desktop/FLUKA_2 -L/usr/lib/gcc/x86_64-linux-gnu/8
-L/usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu
-L/usr/lib/gcc/x86_64-linux-gnu/8/../../../../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/8/../../.. -Map
FNG.map fluka.o ../FNG_source2_Z.o -lflukahp -lgfortran -lm -lgcc_s
-lgcc -lquadmath -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc
/usr/lib/gcc/x86_64-linux-gnu/8/crtendS.o
/usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/crtn.o
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-integer-division' '-Wno-unused-variable' '-Wno-conversion'
'-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'
'/home/alessandro/Desktop/FLUKA_2/flukapro' '-v' '-o' 'FNG'
'-L/home/alessandro/Desktop/FLUKA_2' '-shared-libgcc' '-march=x86-64'
Ended: 2019.07.11 03:14:37

Successful Build
Executable FNG is successfully built

This instead when I try the same thing on the server:

  now linking
/afs/enea.it/por/user/calamida/FLUKA
gfortran
ar x /afs/enea.it/por/user/calamida/FLUKA/libflukahp.a fluka.o
rm: cannot remove ‘/afs/enea.it/por/user/calamida/Sorgentina/FNG.map’:
No such file or directory
gfortran -msse2 -mfpmath=sse -fPIC -O3 -g -mtune=generic
-fexpensive-optimizations -funroll-loops -fstrength-reduce -Wall
-Wuninitialized -Wno-tabs -Wline-truncation -Wno-unused-function
-Wno-unused-parameter -Wno-unused-dummy-argument -Wno-integer-division
-Wno-unused-variable -Wno-conversion -Wunused-label -Waggregate-return
-Wcast-align -Wsystem-headers -ftrapping-math -frange-check -fbackslash
-fdump-core -fbacktrace -ffpe-trap=invalid,zero,overflow
-finit-local-zero -ffixed-form -frecord-marker=4 -funderscoring
-fno-automatic -fd-lines-as-comments -fbounds-check
-I/afs/enea.it/por/user/calamida/FLUKA/flukapro -v -o
/afs/enea.it/por/user/calamida/Sorgentina/FNG -Xlinker -Map -Xlinker
/afs/enea.it/por/user/calamida/Sorgentina/FNG.map fluka.o
FNG_source2_Z.o -L/afs/enea.it/por/user/calamida/FLUKA -lflukahp
Driving: gfortran -msse2 -mfpmath=sse -fPIC -O3 -g -mtune=generic
-fexpensive-optimizations -funroll-loops -fstrength-reduce -Wall
-Wuninitialized -Wno-tabs -Wline-truncation -Wno-unused-function
-Wno-unused-parameter -Wno-unused-dummy-argument -Wno-integer-division
-Wno-unused-variable -Wno-conversion -Wunused-label -Waggregate-return
-Wcast-align -Wsystem-headers -ftrapping-math -frange-check -fbackslash
-fdump-core -fbacktrace -ffpe-trap=invalid,zero,overflow
-finit-local-zero -ffixed-form -frecord-marker=4 -funderscoring
-fno-automatic -fd-lines-as-comments -fbounds-check
-I/afs/enea.it/por/user/calamida/FLUKA/flukapro -v -o
/afs/enea.it/por/user/calamida/Sorgentina/FNG -Xlinker -Map -Xlinker
/afs/enea.it/por/user/calamida/Sorgentina/FNG.map fluka.o
FNG_source2_Z.o -L/afs/enea.it/por/user/calamida/FLUKA -lflukahp -l
gfortran -l m -shared-libgcc
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/opt/gcc730/libexec/gcc/x86_64-redhat-linux/7.3.0/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ./configure --prefix=/opt/gcc730/
--mandir=/usr/share/man --infodir=/usr/share/info --with-gmp=/opt/gmp
--with-mpfr=/opt/mpfr/ --with-mpc=/opt/mpc/ --with-cloog=/opt/cloog/
--enable-bootstrap --enable-shared --enable-threads=posix
-enable-checking=release --enable-languages=c,c++,fortran
-build=x86_64-redhat-linux --disable-multilib
Thread model: posix
gcc version 7.3.0 (GCC)
Reading specs from
/opt/gcc730/lib/gcc/x86_64-redhat-linux/7.3.0/../../../../lib64/libgfortran.spec
rename spec lib to liborig
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-integer-division' '-Wno-unused-variable' '-Wno-conversion'
'-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'
'/afs/enea.it/por/user/calamida/FLUKA/flukapro' '-v' '-o'
'/afs/enea.it/por/user/calamida/Sorgentina/FNG'
'-L/afs/enea.it/por/user/calamida/FLUKA' '-shared-libgcc' '-march=x86-64'
COMPILER_PATH=/opt/gcc730/libexec/gcc/x86_64-redhat-linux/7.3.0/:/opt/gcc730/libexec/gcc/x86_64-redhat-linux/7.3.0/:/opt/gcc730/libexec/gcc/x86_64-redhat-linux/:/opt/gcc730/lib/gcc/x86_64-redhat-linux/7.3.0/:/opt/gcc730/lib/gcc/x86_64-redhat-linux/
LIBRARY_PATH=/opt/gcc730/lib/gcc/x86_64-redhat-linux/7.3.0/:/opt/gcc730/lib/gcc/x86_64-redhat-linux/7.3.0/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/opt/gcc730/lib/gcc/x86_64-redhat-linux/7.3.0/../../../:/lib/:/usr/lib/
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-integer-division' '-Wno-unused-variable' '-Wno-conversion'
'-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'
'/afs/enea.it/por/user/calamida/FLUKA/flukapro' '-v' '-o'
'/afs/enea.it/por/user/calamida/Sorgentina/FNG'
'-L/afs/enea.it/por/user/calamida/FLUKA' '-shared-libgcc' '-march=x86-64'
  /opt/gcc730/libexec/gcc/x86_64-redhat-linux/7.3.0/collect2 -plugin
/opt/gcc730/libexec/gcc/x86_64-redhat-linux/7.3.0/liblto_plugin.so
-plugin-opt=/opt/gcc730/libexec/gcc/x86_64-redhat-linux/7.3.0/lto-wrapper
-plugin-opt=-fresolution=/tmp/cc4ARzVH.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 --eh-frame-hdr -m elf_x86_64
-dynamic-linker /lib64/ld-linux-x86-64.so.2 -o
/afs/enea.it/por/user/calamida/Sorgentina/FNG /lib/../lib64/crt1.o
/lib/../lib64/crti.o
/opt/gcc730/lib/gcc/x86_64-redhat-linux/7.3.0/crtbegin.o
-L/afs/enea.it/por/user/calamida/FLUKA
-L/opt/gcc730/lib/gcc/x86_64-redhat-linux/7.3.0
-L/opt/gcc730/lib/gcc/x86_64-redhat-linux/7.3.0/../../../../lib64
-L/lib/../lib64 -L/usr/lib/../lib64
-L/opt/gcc730/lib/gcc/x86_64-redhat-linux/7.3.0/../../.. -Map
/afs/enea.it/por/user/calamida/Sorgentina/FNG.map fluka.o
FNG_source2_Z.o -lflukahp -lgfortran -lm -lgcc_s -lgcc -lquadmath -lm
-lgcc_s -lgcc -lc -lgcc_s -lgcc
/opt/gcc730/lib/gcc/x86_64-redhat-linux/7.3.0/crtend.o /lib/../lib64/crtn.o
/usr/bin/ld: skipping incompatible
/afs/enea.it/por/user/calamida/FLUKA/libflukahp.a when searching for
-lflukahp
/usr/bin/ld: cannot find -lflukahp
collect2: error: ld returned 1 exit status

I cannot find a clue on the kind of error.

Best regards, Alessandro Calamida.

Il 10/07/2019 16:10, Horváth Dávid ha scritto:
> Dear Alessandro,
>
> it this case maybe the full output of the compiler could help figure it out.
>
> Also, you can try removingparts of your source routine step by step, until you find what part causes the problem. Then create a dummy routine fails to compile, and share that one.
>
> Kind regards,
> Dávid Horváth
>
> Junior Researcher
> Radiation Protection
> ELI Beamlines
>
> E: david.horvath_at_eli-beams.eu
> T: +420 266 051 283
> M: Za Radnicí 835, 25241 Dolní Břežany, Czech Republic
>
>
> ________________________________________
> From: Alessandro <alex.calamida2_at_tiscalinet.it>
> Sent: 10 July 2019 16:00:13
> To: Horváth Dávid; fluka-discuss_at_fluka.org
> Subject: Re: [fluka-discuss]: Source compiling error
>
> Dear Horvàth,
>
> Unfortunately I cannot send you the source. Because it is still a
> prototype version that my bossed want to publish and they forbid me to
> send it.
>
> The problem that I am facing is that on my virtual machina, OS Linuz
> Unix 18, gfortran8.2, the source code compiles perfectly.
>
> On the server cresco, with compiler gfotran 7.3 or g77 it does not compile.
>
> This is the first time that i face this kind of error.
>
> Best regards, Alessandro Calamida.
>
> Il 10/07/2019 15:50, Horváth Dávid ha scritto:
>> Dear Alessandro,
>>
>> sorry, I think I misunderstood your first question.
>>
>> If FLUKA on your server is working correctly, then there shouldn't be any problem compiling your source routine there.
>>
>> Could you send it, to try reproduce the error?
>>
>> Kind regards,
>> Dávid Horváth
>>
>> Junior Researcher
>> Radiation Protection
>> ELI Beamlines
>>
>> E: david.horvath_at_eli-beams.eu
>> T: +420 266 051 283
>> M: Za Radnicí 835, 25241 Dolní Břežany, Czech Republic
>>
>>
>> ________________________________________
>> From: Alessandro <alex.calamida2_at_tiscalinet.it>
>> Sent: 10 July 2019 15:38:16
>> To: Horváth Dávid; fluka-discuss_at_fluka.org
>> Subject: Re: [fluka-discuss]: Source compiling error
>>
>> This errors could happen even with the user source? Because I have
>> another source that compile perfectly with the gfortran8 and the g77.
>>
>> Best regards, Alessandro Calamida.
>>
>> Il 10/07/2019 15:38, Horváth Dávid ha scritto:
>>> Dear Alessandro,
>>>
>>> for gfortran-7 you need to use the fluka2011.2x-linux-gfor64bit-7.4-AA.tar.gz version of FLUKA, which was compiled with gfortran-7.
>>>
>>> Mixing different (major) gfortran versions leads to compilation or runtime errors.
>>>
>>> Kind regards,
>>> Dávid Horváth
>>>
>>> Junior Researcher
>>> Radiation Protection
>>> ELI Beamlines
>>>
>>> E: david.horvath_at_eli-beams.eu
>>> T: +420 266 051 283
>>> M: Za Radnicí 835, 25241 Dolní Břežany, Czech Republic
>>>
>>>
>>> ________________________________________
>>> From: owner-fluka-discuss_at_mi.infn.it <owner-fluka-discuss_at_mi.infn.it> on behalf of Alessandro <alex.calamida2_at_tiscalinet.it>
>>> Sent: 10 July 2019 14:24:14
>>> To: fluka-discuss_at_fluka.org
>>> Subject: [fluka-discuss]: Source compiling error
>>>
>>> Dear FLUKA experts,
>>>
>>> I have found this problem in the compiling of a source that I am
>>> currently using. In a linux enviroment with a gfortran compiler 8.2 it
>>> compiles without any errors. Then, when i pass on the server that has
>>> not the 8.2 version of gfortran but the 7.3 it does not compile any
>>> more. It gives me this kind of errore: -ffpe-trap=invalid,zero,overflow.
>>>
>>> What could it mean?
>>>
>>> Best regards, Alessandro Calamida.
>>>
>>> __________________________________________________________________________
>>> You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
>>>
>>>
>>> ---
>>> Questa email è stata esaminata alla ricerca di virus da AVG.
>>> http://www.avg.com
>>>

__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Thu Jul 11 2019 - 13:28:12 CEST

This archive was generated by hypermail 2.3.0 : Thu Jul 11 2019 - 18:40:14 CEST