40 Star 97 Fork 27

pkuvcl / xavs2

 / 详情

编译错误 Nonrepresentable section on output

待办的
创建于  
2018-07-25 15:23

编译环境是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

评论 (1)

hiccupzhu 创建了任务
hiccupzhu 更新了任务

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

./configure --enable-pic
Yvonne 修改任务状态为已完成
Yvonne 修改任务状态为待办的

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(1)
C
1
https://gitee.com/pkuvcl/xavs2.git
git@gitee.com:pkuvcl/xavs2.git
pkuvcl
xavs2
xavs2

搜索帮助