Re: [fluka-discuss]: Issues installing FLUKA

From: Eric F. Alemany <ealemany_at_stanford.edu>
Date: Wed, 2 Jun 2021 15:44:01 +0000

Dear Alfredo,

Thank you for your reply.

Indeed, there is a there is 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

Thank you again 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/l!
 ib/../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"
 

On 6/2/21, 1:03 AM, "alfredo.ferrari_at_mi.infn.it" <alfredo.ferrari_at_mi.infn.it> wrote:

    Dear Eric
    
    did you check inside /opt/FLUKA that the default executable (flukahp) has
    been built?
    
    The messages you report do not show what the problem is.
    
    You can also go to /opt/FLUKA and manually issue:
    
    flutil/lfluka -o flukahp -m fluka
    
    and let us know what happens
    
    Regards
    Alfredo
    
> Dear FUKA users.
>
> I am new to FLUKA. I am running CentOS 7 (note: I am more familiar with
> Ubunut). I am trying to install FLUKA I followed the README file
> instructions and the archive email from other users but I do not seem to
> be able to install FLUKA.
> I installed devtoolset-9 and permanently added the Development ToolSet to
> my environment by adding in my ~/.bashrc file this line: source
> scl_source enable devtoolset-9.
> When I run gfortran --version it shows version "GNU Fortran (GCC) 9.3.1
> 20200408 (Red Hat 9.3.1-2)"
> I ran "export FLUKA=/opt/FLUKA" as well as " export FLUFOR=gfortran"
> After unzipping the "fluka2021.2-data.tar.gz" and the
> "fluka2021.2-linux-gfor64bit-9.3-AA.tar.gz"
> I ran "make"
> There were many output lines However, the last ones were
>
> b/../lib64/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' '/opt/FLUKA/flukapro' '-I'
> '/opt/FLUKA/aamodmvax' '-v' '-o' 'usbmax' '-L/opt/FLUKA' '-shared-libgcc'
> '-march=x86-64'
> make[1]: Leaving directory '/opt/FLUKA/flutil'
>
> What am I doing wrong?
>
> Thank you all for your input.
>
> Best,
> Eric
>
>
> Eric F. Alemany
> Systems Administrator for Research
> EXO - Extended Operations
>
> Stanford Medicine - Technology & Digital Services
>
>
>
> __________________________________________________________________________
> 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 Wed Jun 02 2021 - 19:35:07 CEST

This archive was generated by hypermail 2.3.0 : Wed Jun 02 2021 - 19:35:09 CEST