Re: [fluka-discuss]: error while build source.f

From: Francesco Cerutti <Francesco.Cerutti_at_cern.ch>
Date: Wed, 3 May 2017 23:39:29 +0200

Hallo

it seems that you are using gfortran 4.8, did you download the
corresponding FLUKA package, i.e.
fluka2011.2c-linux-gfor5.3-64bitAA.tar.gz
for gfortran < 6?

Best regards

Francesco Cerutti
**************************************************
CERN-EN/STI
CH-1211 Geneva 23
Switzerland
tel. ++41 22 7678962
fax ++41 22 7668854

On Wed, 3 May 2017, Deepak Akar wrote:

> While trying to build source.f using flair the following error appeared. I
> tried both with default main option as well as without default main option.
>
>
> Started 2017.05.03 11:07:48
>> > > Compiling: /usr/local/flukagfor/flutil/fff -b -N source.f
>
>> > > Linking: /usr/local/flukagfor/flutil/lfluka -o y -m fluka source.o
> $FLUPRO = /usr/local/flukagfor
> now linking
> /usr/local/flukagfor
> gfortran
> ar x /usr/local/flukagfor/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-unused-variable
> -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/usr/local/flukagfor/flukapro -v -o y fluka.o source.o
> -L/usr/local/flukagfor -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-unused-variable
> -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/usr/local/flukagfor/flukapro -v -o y fluka.o source.o
> -L/usr/local/flukagfor -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-unused-variable'
> '-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' '/usr/local/flukagfor/flukapro' '-v' '-o' 'y'
> '-L/usr/local/flukagfor' '-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-unused-variable'
> '-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' '/usr/local/flukagfor/flukapro' '-v' '-o' 'y'
> '-L/usr/local/flukagfor' '-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 y
> /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/usr/local/flukagfor
> -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/../../.. fluka.o
> source.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: /usr/local/flukagfor/libflukahp.a(geohsm.o): unrecognized
> relocation (0x2a) in section `.text'
> /usr/bin/ld: final link failed: Bad value
> collect2: error: ld returned 1 exit status
> Ended: 2017.05.03 11:07:48
>
> Error linking
> Error: executable is not generated
>

__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Thu May 04 2017 - 01:59:06 CEST

This archive was generated by hypermail 2.3.0 : Thu May 04 2017 - 01:59:09 CEST