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

From: Senger, Anna Dr. <A.Senger_at_gsi.de>
Date: Thu, 10 Jun 2021 07:41:01 +0000

Dear FLUKA experts.
I have the same problem.

ldd --version
ldd (Debian GLIBC 2.19-18+deb8u10) 2.19
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

ld --version
GNU ld (GNU Binutils) 2.32
Copyright (C) 2019 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.

Best regards
Anna

-----Ursprüngliche Nachricht-----
Von: owner-fluka-discuss_at_mi.infn.it <owner-fluka-discuss_at_mi.infn.it> Im Auftrag von alfredo.ferrari_at_mi.infn.it
Gesendet: Montag, 7. Juni 2021 20:20
An: Eric F. Alemany <ealemany_at_stanford.edu>
Cc: fluka-discuss_at_fluka.org
Betreff: Re: [fluka-discuss]: Error running -o flukahp -m fluka

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-r
> edhat-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/libgfortra
> n.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/:/op
> t/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/:/opt/rh/devt
> oolset-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/ro
> ot/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/collec
> t2
> -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-li
> nux/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


__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Thu Jun 10 2021 - 11:03:34 CEST

This archive was generated by hypermail 2.3.0 : Thu Jun 10 2021 - 11:03:36 CEST