RE: [fluka-discuss]: error while compiling source.f

From: Deepak Akar <akardeep_at_barc.gov.in>
Date: Tue, 28 Nov 2017 10:39:44 +0530

Issue got solved after installing binutils 2.26.

On 2017-11-27 16:16, Deepak Akar wrote:
> Hello Andrea!!
> I tried with fortran 6.2 but the same output occurred.
> Will check with binutils version.
> The problem occurs only while compiling source.f, otherwise
> simulations are finished in routine manner.
>
>
> On 2017-11-27 14:11, Andrea Fontana wrote:
>> Hello Deepak,
>> in addition to the gfortran version, you should check the binutils
>> version (required >2.26).
>>
>> From your output, though, it seems that you are indeed using
>> gfortran7.
>> Please make sure you have gfortran6 and try again.
>>
>> Andrea
>>
>>> I tried with gfortran 6.2 also and similar problem appeared.
>>>
>>>
>>>
>>>
>>> On 2017-11-24 14:19, Versaci Roberto wrote:
>>>> I believe it is because you using gfortran7 to compile. Have a look
>>>> at
>>>> this:
>>>>
>>>> http://www.fluka.org/web_archive/earchive/new-fluka-discuss/10854.html
>>>>
>>>> ________________________________________
>>>> From: owner-fluka-discuss_at_mi.infn.it
>>>> [owner-fluka-discuss_at_mi.infn.it]
>>>> on behalf of Deepak Akar [akardeep_at_barc.gov.in]
>>>> Sent: 24 November 2017 09:04
>>>> To: fluka-discuss_at_fluka.org
>>>> Subject: [fluka-discuss]: error while compiling source.f
>>>>
>>>> Dear all!
>>>> I was trying to compile a source file with flair. I got the
>>>> following
>>>> message. I would like to mention that with earlier version of fluka
>>>> the
>>>> compilation were not giving such error.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Started 2017.11.24 13:25:35
>>>>>>> Linking: /usr/local/flukagfor/flutil/lfluka -o abc -m fluka
>>>>>>> extsource.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 abc fluka.o
>>>> extsource.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 abc fluka.o
>>>> extsource.o -L/usr/local/flukagfor -lflukahp -l gfortran -l m
>>>> -shared-libgcc
>>>> Using built-in specs.
>>>> COLLECT_GCC=gfortran
>>>> COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-pc-linux-gnu/7.2.0/lto-wrapper
>>>> Target: x86_64-pc-linux-gnu
>>>> Configured with: ./configure --disable-multilib
>>>> Thread model: posix
>>>> gcc version 7.2.0 (GCC)
>>>> Reading specs from
>>>> /usr/local/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib64/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' 'abc'
>>>> '-L/usr/local/flukagfor'
>>>> '-shared-libgcc' '-march=x86-64'
>>>> COMPILER_PATH=/usr/local/libexec/gcc/x86_64-pc-linux-gnu/7.2.0/:/usr/local/libexec/gcc/x86_64-pc-linux-gnu/7.2.0/:/usr/local/libexec/gcc/x86_64-pc-linux-gnu/:/usr/local/lib/gcc/x86_64-pc-linux-gnu/7.2.0/:/usr/local/lib/gcc/x86_64-pc-linux-gnu/
>>>> LIBRARY_PATH=/usr/local/lib/gcc/x86_64-pc-linux-gnu/7.2.0/:/usr/local/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/local/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../:/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' 'abc'
>>>> '-L/usr/local/flukagfor'
>>>> '-shared-libgcc' '-march=x86-64'
>>>> /usr/local/libexec/gcc/x86_64-pc-linux-gnu/7.2.0/collect2 -plugin
>>>> /usr/local/libexec/gcc/x86_64-pc-linux-gnu/7.2.0/liblto_plugin.so
>>>> -plugin-opt=/usr/local/libexec/gcc/x86_64-pc-linux-gnu/7.2.0/lto-wrapper
>>>> -plugin-opt=-fresolution=/tmp/ccik8LqA.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 --eh-frame-hdr -m elf_x86_64
>>>> -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o abc
>>>> /lib/../lib64/crt1.o
>>>> /lib/../lib64/crti.o
>>>> /usr/local/lib/gcc/x86_64-pc-linux-gnu/7.2.0/crtbegin.o
>>>> -L/usr/local/flukagfor
>>>> -L/usr/local/lib/gcc/x86_64-pc-linux-gnu/7.2.0
>>>> -L/usr/local/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib64
>>>> -L/lib/../lib64 -L/usr/lib/../lib64
>>>> -L/usr/local/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../.. fluka.o
>>>> extsource.o -lflukahp -lgfortran -lm -lgcc_s -lgcc -lquadmath -lm
>>>> -lgcc_s -lgcc -lc -lgcc_s -lgcc
>>>> /usr/local/lib/gcc/x86_64-pc-linux-gnu/7.2.0/crtend.o
>>>> /lib/../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.11.24 13:25:35
>>>>
>>>> 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
>>>>
>>>>
>>>> __________________________________________________________________________
>>>> You can manage unsubscription from this mailing list at
>>>> https://www.fluka.org/fluka.php?id¬c_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

__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Tue Nov 28 2017 - 07:24:09 CET

This archive was generated by hypermail 2.3.0 : Tue Nov 28 2017 - 07:24:11 CET