Re: [fluka-discuss]: Error running -o flukahp -m fluka

From: <alfredo.ferrari_at_mi.infn.it>
Date: Mon, 7 Jun 2021 20:20:05 +0200

Dear Eric

it seems there is an incompatibility with either the system libraries,
glic, or the loader, binutils, wrt Fluka on your system.

Very likely you have versions older than the ones used to build the
distribution for gfortran-9.3.

Could you please report to the list the glibc and binutils versions by
issuing the commands below?

You can find out the binutils version by doing

ldd --version

and the glibc-version with

ld --version

I would like to know how many users have this problem, in order to assess
if it is worthwhile/urgent to try to setup a virtual machine with older
versions and build a (further) Fluka version for those running into this
proble,

Cheers
Alfredo


> Dear FLUKA experts.
>
> I have installed FLUKA by following the README file instructions and the
> archive email from other users
>
> There is a an executable that was built "flukahp.map" after running
> "make"
>
> Also, after running " flutil/lfluka -o flukahp -m fluka"
>
> I have the following output (sorry about the length of the output). Please
> note at the end there is an error message: collect2: error: ld returned 1
> exit status
>
> How can I fix this issue?
>
> Thank you for your help
>
> root_at_mt-manager.stanford.edu [Wed Jun 02!08:36:08]:/opt/FLUKA#
> flutil/lfluka -o flukahp -m fluka
> $FLUPRO = /opt/FLUKA
> now linking
> /opt/FLUKA
> gfortran
> ar x /opt/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/opt/FLUKA/flukapro
> -I/opt/FLUKA/aamodmvax -v -o flukahp -Xlinker -Map -Xlinker flukahp.map
> fluka.o -L/opt/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/opt/FLUKA/flukapro
> -I/opt/FLUKA/aamodmvax -v -o flukahp -Xlinker -Map -Xlinker flukahp.map
> fluka.o -L/opt/FLUKA -lflukahp -l gfortran -l m -shared-libgcc
> Using built-in specs.
> COLLECT_GCC=gfortran
> COLLECT_LTO_WRAPPER=/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/lto-wrapper
> Target: x86_64-redhat-linux
> Configured with: ../configure --enable-bootstrap
> --enable-languages=c,c++,fortran,lto
> --prefix=/opt/rh/devtoolset-9/root/usr
> --mandir=/opt/rh/devtoolset-9/root/usr/share/man
> --infodir=/opt/rh/devtoolset-9/root/usr/share/info
> --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared
> --enable-threads=posix --enable-checking=release --enable-multilib
> --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions
> --enable-gnu-unique-object --enable-linker-build-id
> --with-gcc-major-version-only --with-linker-hash-style=gnu
> --with-default-libstdcxx-abi=gcc4-compatible --enable-plugin
> --enable-initfini-array
> --with-isl=/builddir/build/BUILD/gcc-9.3.1-20200408/obj-x86_64-redhat-linux/isl-install
> --disable-libmpx --enable-gnu-indirect-function --with-tune=generic
> --with-arch_32=x86-64 --build=x86_64-redhat-linux
> Thread model: posix
> gcc version 9.3.1 20200408 (Red Hat 9.3.1-2) (GCC)
> Reading specs from
> /opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/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' '/opt/FLUKA/flukapro' '-I'
> '/opt/FLUKA/aamodmvax' '-v' '-o' 'flukahp' '-L/opt/FLUKA' '-shared-libgcc'
> '-march=x86-64'
> COMPILER_PATH=/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/:/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/:/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/:/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/:/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/
> LIBRARY_PATH=/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/:/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../:/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' '/opt/FLUKA/flukapro' '-I'
> '/opt/FLUKA/aamodmvax' '-v' '-o' 'flukahp' '-L/opt/FLUKA' '-shared-libgcc'
> '-march=x86-64'
> /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/collect2
> -plugin
> /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/liblto_plugin.so
> -plugin-opt=/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/lto-wrapper
> -plugin-opt=-fresolution=/tmp/ccpqNo4G.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 --no-add-needed --eh-frame-hdr
> --hash-style=gnu -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2
> -o flukahp /lib/../lib64/crt1.o /lib/../lib64/crti.o
> /opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/crtbegin.o
> -L/opt/FLUKA -L/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9
> -L/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../lib64
> -L/li!
> b/../lib64 -L/usr/lib/../lib64
> -L/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../..
> -Map flukahp.map fluka.o -lflukahp -lgfortran -lm -lgcc_s -lgcc
> -lquadmath -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc
> /opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/crtend.o
> /lib/../lib64/crtn.o
> /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld:
> /opt/FLUKA/libflukahp.a(shptot.o): in function `master.0.shptot_':
> /disk6/fluka/git/MYBUILDS/GCC9/fluprogfor/elsmvax/shptot.f:3733: undefined
> reference to `_ZGVbN2v_log'
> /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld:
> /disk6/fluka/git/MYBUILDS/GCC9/fluprogfor/elsmvax/shptot.f:3733: undefined
> reference to `_ZGVbN2v_log'
> /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld:
> /disk6/fluka/git/MYBUILDS/GCC9/fluprogfor/elsmvax/shptot.f:3733: undefined
> reference to `_ZGVbN2v_log'
> /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld:
> /disk6/fluka/git/MYBUILDS/GCC9/fluprogfor/elsmvax/shptot.f:3733: undefined
> reference to `_ZGVbN2v_log'
> /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld:
> /disk6/fluka/git/MYBUILDS/GCC9/fluprogfor/elsmvax/shptot.f:3733: undefined
> reference to `_ZGVbN2v_log'
> /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld:
> /opt/FLUKA/libflukahp.a(shptot.o):/disk6/fluka/git/MYBUILDS/GCC9/fluprogfor/elsmvax/shptot.f:3733:
> more undefined references to `_ZGVbN2v_log' follow
> /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld:
> /opt/FLUKA/libflukahp.a(ncdtrd.o): in function `ncdtrd_':
> /disk6/fluka/git/MYBUILDS/GCC9/fluprogfor/evffrmvax/ncdtrd.f:192:
> undefined reference to `_ZGVbN2vv_pow'
> /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld:
> /disk6/fluka/git/MYBUILDS/GCC9/fluprogfor/evffrmvax/ncdtrd.f:192:
> undefined reference to `_ZGVbN2vv_pow'
> /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld:
> /disk6/fluka/git/MYBUILDS/GCC9/fluprogfor/evffrmvax/ncdtrd.f:194:
> undefined reference to `_ZGVbN2vv_pow'
> /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld:
> /disk6/fluka/git/MYBUILDS/GCC9/fluprogfor/evffrmvax/ncdtrd.f:194:
> undefined reference to `_ZGVbN2vv_pow'
> /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld:
> /disk6/fluka/git/MYBUILDS/GCC9/fluprogfor/evffrmvax/ncdtrd.f:194:
> undefined reference to `_ZGVbN2vv_pow'
> /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld:
> /opt/FLUKA/libflukahp.a(ncdtrd.o):/disk6/fluka/git/MYBUILDS/GCC9/fluprogfor/evffrmvax/ncdtrd.f:194:
> more undefined references to `_ZGVbN2vv_pow' follow
> /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld:
> /opt/FLUKA/libflukahp.a(unfldp.o): in function `unfldp_':
> /disk6/fluka/git/MYBUILDS/GCC9/fluprogfor/preeqmvax/unfldp.f:59: undefined
> reference to `_ZGVbN2v_exp'
> /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld:
> /disk6/fluka/git/MYBUILDS/GCC9/fluprogfor/preeqmvax/unfldp.f:59: undefined
> reference to `_ZGVbN2v_exp'
> /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld:
> /disk6/fluka/git/MYBUILDS/GCC9/fluprogfor/preeqmvax/unfldp.f:59: undefined
> reference to `_ZGVbN2v_exp'
> /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld:
> /disk6/fluka/git/MYBUILDS/GCC9/fluprogfor/preeqmvax/unfldp.f:59: undefined
> reference to `_ZGVbN2v_exp'
> /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld:
> /disk6/fluka/git/MYBUILDS/GCC9/fluprogfor/preeqmvax/unfldp.f:59: undefined
> reference to `_ZGVbN2v_exp'
> /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld:
> /opt/FLUKA/libflukahp.a(unfldp.o):/disk6/fluka/git/MYBUILDS/GCC9/fluprogfor/preeqmvax/unfldp.f:59:
> more undefined references to `_ZGVbN2v_exp' follow
> /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld:
> /opt/FLUKA/libflukahp.a(pgrv98.o): in function `pgrv98_':
> /disk6/fluka/git/MYBUILDS/GCC9/fluprogfor/nundismvax/pgrv98.f:206:
> undefined reference to `_ZGVbN2v_log'
> /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld:
> /disk6/fluka/git/MYBUILDS/GCC9/fluprogfor/nundismvax/pgrv98.f:206:
> undefined reference to `_ZGVbN2v_log'
> /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld:
> /disk6/fluka/git/MYBUILDS/GCC9/fluprogfor/nundismvax/pgrv98.f:206:
> undefined reference to `_ZGVbN2v_log'
> /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld:
> /disk6/fluka/git/MYBUILDS/GCC9/fluprogfor/nundismvax/pgrv98.f:206:
> undefined reference to `_ZGVbN2v_log'
> /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld:
> /disk6/fluka/git/MYBUILDS/GCC9/fluprogfor/nundismvax/pgrv98.f:206:
> undefined reference to `_ZGVbN2v_log'
> /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld:
> /opt/FLUKA/libflukahp.a(pgrv98.o):/disk6/fluka/git/MYBUILDS/GCC9/fluprogfor/nundismvax/pgrv98.f:206:
> more undefined references to `_ZGVbN2v_log' follow
> collect2: error: ld returned 1 exit status
>
>
> Eric F. Alemany
> Systems Administrator for Research
> EXO - Extended Operations
> Stanford Medicine - Technology & Digital Services
>
>
>
> “One for All, All for One"
>
>
>
>
>
> __________________________________________________________________________
> You can manage unsubscription from this mailing list at
> https://www.fluka.org/fluka.php?id=acc_info
>
>


__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Mon Jun 07 2021 - 22:13:47 CEST

This archive was generated by hypermail 2.3.0 : Mon Jun 07 2021 - 22:13:49 CEST