Re: [fluka-discuss]: routines - usrsuw.f issue

From: Julien Bonvalet <julien.bonvalet_at_u-bordeaux.fr>
Date: Fri, 30 Oct 2020 19:18:16 +0100 (CET)

Thanks it works like that!

----- Mail original -----
De: "paola sala" <paola.sala_at_mi.infn.it>
À: "Julien Bonvalet" <julien.bonvalet_at_u-bordeaux.fr>
Cc: "fluka-discuss" <fluka-discuss_at_fluka.org>
Envoyé: Jeudi 29 Octobre 2020 08:20:19
Objet: Re: [fluka-discuss]: routines - usrsuw.f issue

Hello
usrsuw.f is not a user routine,
it is a separate program that runs by itself and sums/processes up the
RESNUCLEI results from fluka runs.
The "make" in the fluka distribution automatically creates the usrsuw
executable in the $FLUPRO/flutil directory, as well as all other auxiliary
codes needed for data processing (usxsuw, usbsuw etc).

The linking procedure aborts because it finds two "main" modules: the
fluka main and the usrsuw main.

So: first run fluka, with your user routines,
then run usrsuw, either from command line or within Flair from the
Data->process tab
Paola
> Dear fluka users,
>
> When I compile my 3 routines : mgdraw + source + usrrnc no problem.
> If I add usrsuw.f the compilation crashes with this error :
>
> Started 2020.10.27 15:21:06
>>>> Linking: /home/bonvalet/FLUKA/flutil/ldpmqmd -o rout -m fluka
>>>> mgdraw_all.o source2.o usrrnc2.o usrsuw.o$FLUPRO =
>>>> /home/bonvalet/FLUKA
> awk: line 0: regular expression compile failed (missing '(')
> )
> /home/bonvalet/FLUKA/flutil/lfluka: 112: [: -le: unexpected operator
> now linking
> /home/bonvalet/FLUKA
> gfortran
> tmpo/dpmjex.o
> tmpo/evdini.o
> tmpo/eventd.o
> tmpo/eveout.o
> tmpo/eveqmd.o
> tmpo/evqmdi.o
> tmpo/idd2f.o
> tmpo/idf2d.o
> tmpo/rqm2pr.o
> tmpo/rqmdex.o
> tmpo/zrdpcm.o
> tmpo/zrrqcm.o
> ar x /home/bonvalet/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/home/bonvalet/FLUKA/flukapro
> -I/home/bonvalet/FLUKA/aamodmvax -v -o rout -Xlinker -Map -Xlinker
> rout.map fluka.o mgdraw_all.o source2.o usrrnc2.o usrsuw.o tmpo/dpmjex.o
> tmpo/evdini.o tmpo/eventd.o tmpo/eveout.o tmpo/eveqmd.o tmpo/evqmdi.o
> tmpo/idd2f.o tmpo/idf2d.o tmpo/rqm2pr.o tmpo/rqmdex.o tmpo/zrdpcm.o
> tmpo/zrrqcm.o -L/home/bonvalet/FLUKA -L/home/bonvalet/FLUKA/interface
> -L/home/bonvalet/FLUKA/latestRQMD -ldpmjet3 -lrqmd -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/home/bonvalet/FLUKA/flukapro
> -I/home/bonvalet/FLUKA/aamodmvax -v -o rout -Xlinker -Map -Xlinker
> rout.map fluka.o mgdraw_all.o source2.o usrrnc2.o usrsuw.o tmpo/dpmjex.o
> tmpo/evdini.o tmpo/eventd.o tmpo/eveout.o tmpo/eveqmd.o tmpo/evqmdi.o
> tmpo/idd2f.o tmpo/idf2d.o tmpo/rqm2pr.o tmpo/rqmdex.o tmpo/zrdpcm.o
> tmpo/zrrqcm.o -L/home/bonvalet/FLUKA -L/home/bonvalet/FLUKA/interface
> -L/home/bonvalet/FLUKA/latestRQMD -ldpmjet3 -lrqmd -lflukahp -l gfortran
> -l m -shared-libgcc
> Using built-in specs.
> COLLECT_GCC=gfortran
> COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper
> OFFLOAD_TARGET_NAMES=nvptx-none
> OFFLOAD_TARGET_DEFAULT=1
> Target: x86_64-linux-gnu
> Configured with: ../src/configure -v --with-pkgversion='Ubuntu
> 8.4.0-1ubuntu1~18.04'
> --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs
> --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr
> --with-gcc-major-version-only --program-suffix=-8
> --program-prefix=x86_64-linux-gnu- --enable-shared
> --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext
> --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu
> --enable-libstdcxx-debug --enable-libstdcxx-time=yes
> --with-default-libstdcxx-abi=new --enable-gnu-unique-object
> --disable-vtable-verify --enable-libmpx --enable-plugin
> --enable-default-pie --with-system-zlib --with-target-system-zlib=auto
> --enable-objc-gc=auto --enable-multiarch --disable-werror
> --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32
> --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none
> --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu
> --host=x86_64-linux-gnu --target=x86_64-linux-gnu
> Thread model: posix
> gcc version 8.4.0 (Ubuntu 8.4.0-1ubuntu1~18.04)
> Reading specs from /usr/lib/gcc/x86_64-linux-gnu/8/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'
> '/home/bonvalet/FLUKA/flukapro' '-I' '/home/bonvalet/FLUKA/aamodmvax' '-v'
> '-o' 'rout' '-L/home/bonvalet/FLUKA' '-L/home/bonvalet/FLUKA/interface'
> '-L/home/bonvalet/FLUKA/latestRQMD' '-shared-libgcc' '-march=x86-64'
> COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/
> LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../:/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'
> '/home/bonvalet/FLUKA/flukapro' '-I' '/home/bonvalet/FLUKA/aamodmvax' '-v'
> '-o' 'rout' '-L/home/bonvalet/FLUKA' '-L/home/bonvalet/FLUKA/interface'
> '-L/home/bonvalet/FLUKA/latestRQMD' '-shared-libgcc' '-march=x86-64'
> /usr/lib/gcc/x86_64-linux-gnu/8/collect2 -plugin
> /usr/lib/gcc/x86_64-linux-gnu/8/liblto_plugin.so
> -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper
> -plugin-opt=-fresolution=/tmp/cc83Vkrt.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 --eh-frame-hdr -m elf_x86_64
> --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2
> -pie -z now -z relro -o rout
> /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/Scrt1.o
> /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/crti.o
> /usr/lib/gcc/x86_64-linux-gnu/8/crtbeginS.o -L/home/bonvalet/FLUKA
> -L/home/bonvalet/FLUKA/interface -L/home/bonvalet/FLUKA/latestRQMD
> -L/usr/lib/gcc/x86_64-linux-gnu/8
> -L/usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu
> -L/usr/lib/gcc/x86_64-linux-gnu/8/../../../../lib -L/lib/x86_64-linux-gnu
> -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib
> -L/usr/lib/gcc/x86_64-linux-gnu/8/../../.. -Map rout.map fluka.o
> mgdraw_all.o source2.o usrrnc2.o usrsuw.o tmpo/dpmjex.o tmpo/evdini.o
> tmpo/eventd.o tmpo/eveout.o tmpo/eveqmd.o tmpo/evqmdi.o tmpo/idd2f.o
> tmpo/idf2d.o tmpo/rqm2pr.o tmpo/rqmdex.o tmpo/zrdpcm.o tmpo/zrrqcm.o
> -ldpmjet3 -lrqmd -lflukahp -lgfortran -lm -lgcc_s -lgcc -lquadmath -lm
> -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-linux-gnu/8/crtendS.o
> /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/crtn.o
> usrsuw.o : Dans la fonction « main » :
> /media/bonvalet/Maxtor/THESE/simus/gekko/fluka/simus/pic/protons/Scandium/alpha_Ca40/usrsuw.f:966
> : définitions multiples de « main »
> fluka.o:/home/psala/releasefluka2020/fluprogfor/mainmvax/(USFLMD):23 :
> défini pour la première fois ici
> collect2: error: ld returned 1 exit status
> Ended: 2020.10.27 15:21:08
>
> Error linking
> Error: executable is not generated
>
> Do you see the problem?
>
> Thanks
>
> Julien CELIA
>


Paola Sala
INFN Milano
tel. Milano +39-0250317374
tel. CERN +41-227679148


__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Fri Oct 30 2020 - 21:38:05 CET

This archive was generated by hypermail 2.3.0 : Fri Oct 30 2020 - 21:38:18 CET