[fluka-discuss]: Re: error while compiling source.f

From: Deepak Akar <akardeep_at_barc.gov.in>
Date: Fri, 24 Nov 2017 13:51:13 +0530

I assume its due to gcc-7.2.0.
In any case please specify whether command "./configure
--disable-multilib" can also cause such problems. I used this because
the configure command was stopping with some message regarding absence
of 32 bit libraries.

On 2017-11-24 13:34, Deepak Akar wrote:
> Dear all!
> I was trying to compile a source file with flair. I got the following
> message. I would like to mention that with earlier version of fluka
> the compilation were not giving such error.
>
>
>
>
>
>
> Started 2017.11.24 13:25:35
>>>> Linking: /usr/local/flukagfor/flutil/lfluka -o abc -m fluka
>>>> extsource.o
> $FLUPRO = /usr/local/flukagfor
> now linking
> /usr/local/flukagfor
> gfortran
> ar x /usr/local/flukagfor/libflukahp.a fluka.o
> 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-unused-variable
> -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/usr/local/flukagfor/flukapro -v -o abc fluka.o
> extsource.o -L/usr/local/flukagfor -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-unused-variable
> -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/usr/local/flukagfor/flukapro -v -o abc fluka.o
> extsource.o -L/usr/local/flukagfor -lflukahp -l gfortran -l m
> -shared-libgcc
> Using built-in specs.
> COLLECT_GCC=gfortran
> COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-pc-linux-gnu/7.2.0/lto-wrapper
> Target: x86_64-pc-linux-gnu
> Configured with: ./configure --disable-multilib
> Thread model: posix
> gcc version 7.2.0 (GCC)
> Reading specs from
> /usr/local/lib/gcc/x86_64-pc-linux-gnu/7.2.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-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'
> '/usr/local/flukagfor/flukapro' '-v' '-o' 'abc'
> '-L/usr/local/flukagfor' '-shared-libgcc' '-march=x86-64'
> COMPILER_PATH=/usr/local/libexec/gcc/x86_64-pc-linux-gnu/7.2.0/:/usr/local/libexec/gcc/x86_64-pc-linux-gnu/7.2.0/:/usr/local/libexec/gcc/x86_64-pc-linux-gnu/:/usr/local/lib/gcc/x86_64-pc-linux-gnu/7.2.0/:/usr/local/lib/gcc/x86_64-pc-linux-gnu/
> LIBRARY_PATH=/usr/local/lib/gcc/x86_64-pc-linux-gnu/7.2.0/:/usr/local/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/local/lib/gcc/x86_64-pc-linux-gnu/7.2.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-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'
> '/usr/local/flukagfor/flukapro' '-v' '-o' 'abc'
> '-L/usr/local/flukagfor' '-shared-libgcc' '-march=x86-64'
> /usr/local/libexec/gcc/x86_64-pc-linux-gnu/7.2.0/collect2 -plugin
> /usr/local/libexec/gcc/x86_64-pc-linux-gnu/7.2.0/liblto_plugin.so
> -plugin-opt=/usr/local/libexec/gcc/x86_64-pc-linux-gnu/7.2.0/lto-wrapper
> -plugin-opt=-fresolution=/tmp/ccik8LqA.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 abc
> /lib/../lib64/crt1.o /lib/../lib64/crti.o
> /usr/local/lib/gcc/x86_64-pc-linux-gnu/7.2.0/crtbegin.o
> -L/usr/local/flukagfor -L/usr/local/lib/gcc/x86_64-pc-linux-gnu/7.2.0
> -L/usr/local/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib64
> -L/lib/../lib64 -L/usr/lib/../lib64
> -L/usr/local/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../.. fluka.o
> extsource.o -lflukahp -lgfortran -lm -lgcc_s -lgcc -lquadmath -lm
> -lgcc_s -lgcc -lc -lgcc_s -lgcc
> /usr/local/lib/gcc/x86_64-pc-linux-gnu/7.2.0/crtend.o
> /lib/../lib64/crtn.o
> /usr/bin/ld: /usr/local/flukagfor/libflukahp.a(geohsm.o): unrecognized
> relocation (0x2a) in section `.text'
> /usr/bin/ld: final link failed: Bad value
> collect2: error: ld returned 1 exit status
> Ended: 2017.11.24 13:25:35
>
> Error linking
> Error: executable is not generated.

__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Fri Nov 24 2017 - 11:27:51 CET

This archive was generated by hypermail 2.3.0 : Fri Nov 24 2017 - 11:27:53 CET