[software development] gcc 13编译错误
Tofloor
poster avatar
依韵
deepin
2023-12-31 19:11
Author

./configure --prefix=/opt/tools/gcc/13 --enable-threads=posix -enable-checking=release -enable-languages=c,c++ -disable-multilib

报错信息为:

image.png

有没有大佬指点下怎么解决

Reply Favorite View the author
All Replies
把一切操作变成GUI
deepin
Backbone of ecological co-construction group
2023-12-31 21:03
#1

当编译程序时,链接器遇到了一个错误,导致最终链接失败。“final link failed: nonrepresentable section on output”,意思是链接器在编译过程中遇到了无法表示的部分。另一行红色文本显示[Makefile:559: libhwasan.la] Error 1”,错误发生在Makefile中的位置,好像是缺少必要的库文件或者还是文件版本不兼容?

Reply View the author
Ziggy
deepin
2023-12-31 22:20
#2

指定linker为gold看看

Reply View the author