[fluka-discuss]: fluka/libflukahp.a(flukam.o): unrecognized relocation (0x2a) in section `.text'

From: Yip, Kin <kinyip_at_bnl.gov>
Date: Wed, 24 Apr 2019 20:18:35 +0000

Hi,

I try to build "fluka" (64 bit) in a machine of Scientific Linux 7.3 with kernel 3.10.0-693.11.6.el7.x86_64 .

Its gcc is of version 4.8.5 .

It finishes when I "make". But when I try to do (sitting in the $FLUPRO directory) :

$FLUPRO/flutil/lfluka -mfluka

It failed with the messages :
=====================
/usr/bin/ld: /u0b/kinyip/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
=======================================

If I try "$FLUPRO/flutil/ldpmqmd ", the outcome is about the same (failure).

I put the complete output at the end of this email. Any idea how to fix this ??


Kin

===================================== complete output ==========================================

$FLUPRO = /u0b/kinyip/fluka
 now linking
/u0b/kinyip/fluka
gfortran
ar x /u0b/kinyip/fluka/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-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/u0b/kinyip/fluka/flukapro -v -o flukahp -Xlinker -Map -Xlinker flukahp.map fluka.o -L/u0b/kinyip/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/u0b/kinyip/fluka/flukapro -v -o flukahp -Xlinker -Map -Xlinker flukahp.map fluka.o -L/u0b/kinyip/fluka -lflukahp -l gfortran -l m -shared-libgcc
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC)
Reading specs from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/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' '/u0b/kinyip/fluka/flukapro' '-v' '-o' 'flukahp' '-L/u0b/kinyip/fluka' '-shared-libgcc' '-march=x86-64'
COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/:/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/:/usr/lib/gcc/x86_64-redhat-linux/
LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/4.8.5/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../:/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' '/u0b/kinyip/fluka/flukapro' '-v' '-o' 'flukahp' '-L/u0b/kinyip/fluka' '-shared-libgcc' '-march=x86-64'
 /usr/libexec/gcc/x86_64-redhat-linux/4.8.5/collect2 --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o flukahp /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtbegin.o -L/u0b/kinyip/fluka -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../.. -Map flukahp.map fluka.o -lflukahp -lgfortran -lm -lgcc_s -lgcc -lquadmath -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtend.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crtn.o
/usr/bin/ld: /u0b/kinyip/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


__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Wed Apr 24 2019 - 23:32:17 CEST

This archive was generated by hypermail 2.3.0 : Wed Apr 24 2019 - 23:32:27 CEST