Score
0
Watch 38 Star 91 Fork 25

pkuvcl / xavs2CGPL-2.0

编译错误 Nonrepresentable section on output

Open
hiccupzhu  Opened this issue

编译环境是ubuntu18.04

./configure
make

错误信息如下:

$ make
 [linking execution] xavs2 
gcc -o xavs2  test/test.o libxavs2.a  -m64  -lm -lpthread -ldl
/usr/bin/x86_64-linux-gnu-ld: libxavs2.a(blockcopy8.o): relocation R_X86_64_32 against symbol `xavs2_pb_1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: libxavs2.a(dct8.o): relocation R_X86_64_32 against symbol `xavs2_pd_0' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: libxavs2.a(mc-a.o): relocation R_X86_64_32 against symbol `xavs2_pw_256' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: libxavs2.a(mc-a2.o): relocation R_X86_64_32 against symbol `xavs2_pw_00ff' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: libxavs2.a(pixel-a.o): relocation R_X86_64_32 against symbol `xavs2_pw_1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: libxavs2.a(pixel-util8.o): relocation R_X86_64_32 against symbol `xavs2_pb_1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: libxavs2.a(quant8.o): relocation R_X86_64_32 against symbol `xavs2_pw_1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: libxavs2.a(sad-a.o): relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: libxavs2.a(satd-a.o): relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: libxavs2.a(ssd-a.o): relocation R_X86_64_32 against symbol `xavs2_pw_00ff' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
Makefile:235: recipe for target 'xavs2' failed
make: *** [xavs2] Error 1
total 1 participants

Comments (1)

hiccupzhu 2018-07-25 15:37

已经解决,添加 --enable-pic 选项
如:

./configure --enable-pic

Sign in to comment

Assignees
Labels
Not set
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority