Replies : 0 Last Post : February 07, 2019 (Thu) 01:12:52

472

spex compile problem

Posted on : February 07, 2019 (Thu) 01:12:52

by halil

Dear All,

I have a compile problem of spex. I was making my specx with following makefile:

#######################################
# In the case of gfortran
#######################################
fort = gfortran
flag = -O2
omp = -fopenmp
#nomp =
#
program = specx
objs = \
source/$(program).o \
.
.
.
.
$(program): $(objs)
@$(fort) -o $@ $(flag) $(omp) $(objs) $(libs)

source/specx.o: source/specx.f
$(fort) $(flag) -o $(<:.f=.o) -c $<

.f.o:
$(fort) $(flag) $(omp) -o $(<:.f=.o) -c $<

gpd: source/gpd.f
$(fort) $(flag) $(omp) -o $@ $<

spc: source/spc.f
$(fort) $(flag) $(omp) -o $@ $<

However, today I changed something in the specx source code and I faced with such error:

source/specx.o: In function `MAIN__':
specx.f:(.text+0x2e1): relocation truncated to fit: R_X86_64_PC32 against `.bss'
specx.f:(.text+0x37a): relocation truncated to fit: R_X86_64_PC32 against `.bss'
specx.f:(.text+0x51c): relocation truncated to fit: R_X86_64_32 against `.bss'
specx.f:(.text+0x687): relocation truncated to fit: R_X86_64_32S against `.bss'
specx.f:(.text+0xae2): relocation truncated to fit: R_X86_64_PC32 against `.bss'
specx.f:(.text+0xb23): relocation truncated to fit: R_X86_64_PC32 against `.bss'
specx.f:(.text+0xb62): relocation truncated to fit: R_X86_64_PC32 against `.bss'
specx.f:(.text+0xc22): relocation truncated to fit: R_X86_64_PC32 against `.bss'
specx.f:(.text+0xc56): relocation truncated to fit: R_X86_64_PC32 against `.bss'
source/cgc.o: In function `cgc_':
cgc.f:(.text+0x60): relocation truncated to fit: R_X86_64_PC32 against `.bss'
cgc.f:(.text+0xa5): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status
makefile:248: recipe for target 'specx' failed
make: *** [specx] Error 1

Can anybody help me to overcome that problem ?

 
 

POST NEW TOPIC

ID (Email)

Password

このたび、AkaiKKRのページをセキュリティ対策の一環として、システムを変更いたしましので、BBSへの書き込みはアカウント登録が必要です。
お手数かけて申し訳ございませんが、登録ページから新規登録をお願いいたします。

For security reasons, we have renewed the AkaiKKR website. Now, you need your account to send a message to BBS. If you do not have an account yet, please register.