我太绝望了…我在用Ubuntu18.04.3 LTS 对于一个机器人类,我必须用make命令构建他们的项目(在从git克隆之后)。过了一段时间,我收到了以下信息:enter image description here (…)
make[1]: Entering directory '/home/fia/robotics-course/rai/rai/ry'
* UpToDate ../../rai/Kin/libKin.so
* UpToDate ../../rai/Core/libCore.so
* UpToDate ../../rai/KOMO/libKOMO.so
* UpToDate ../../rai/LGP/libLGP.so
g++ -g -march=native -Wall -DRAI_PYBIND `python3-config --cflags` -Wno-terminate -fPIC -std=c++14 -o lgp-py.o -c lgp-py.cpp
* UpToDate ../../rai/Operate/libOperate.so
g++ -g -march=native -Wall -DRAI_PYBIND `python3-config --cflags` -Wno-terminate -fPIC -std=c++14 -o ry.o -c ry.cpp
* UpToDate ../../rai/Perception/libPerception.so
* UpToDate ../../rai/RosCom/libRosCom.so
g++ -L/home/fia/robotics-course/rai/lib -L/usr/local/lib -o libry.so ./lgp-py.o ./ry.o -lCore -lKin -lKOMO -lLGP -lOperate -lRosCom -lPerception `python3-config --ldflags` -lrt -shared
lto1: internal compiler error: in lto_tag_to_tree_code, at lto-streamer.h:1005
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
lto-wrapper: fatal error: g++ returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
../../build/generic.mk:299: recipe for target 'libry.so' failed
make[1]: *** [libry.so] Error 1
make[1]: Target 'default' not remade because of errors.
make[1]: Leaving directory '/home/fia/robotics-course/rai/rai/ry'
***** FAILED rai/rai/ry/libry.so
我假设“内部编译器错误”一行告诉我什么是错误的,但我不知道如何解决它。。。我重新安装了g++并重新下载了几次git存储库,但似乎没有任何效果。我已经在想也许我的操作系统有问题? 我已经考虑过重新安装Ubuntu了。。。在
所以如果有人有主意,我会非常感激! 当做 国际汽联
“内部编译器错误”听起来像是编译器中有一个bug,所以这里有一些解决方法。在
您可以尝试用clang++而不是g++编译它。使用以下方法安装:
然后使用如下方法构建:
^{pr2}$由于错误提到
lto
,您还可以关闭链接时间优化:相关问题 更多 >
编程相关推荐