Paddle paddle 源码安装报错 Segmentation fault

fivyi3re  于 2022-04-21  发布在  Java
关注(0)|答案(2)|浏览(371)

系统环境:Centos 7.9 + cuda10.2

按照官方流程用源码方式安装

https://www.paddlepaddle.org.cn/install/quick?docurl=/documentation/docs/zh/install/compile/linux-compile.html#anchor-5

最后 cmake 后执行 make -j$(nproc) 编译,到最后报错,如下:

[ 99%] Built target paddle_inference_c
[ 99%] Generating .check_symbol
[ 99%] Building CXX object paddle/fluid/pybind/CMakeFiles/paddle_pybind.dir/pybind.cc.o
[ 99%] Built target check_symbol
c++: internal compiler error: Segmentation fault signal terminated program cc1plus
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
make[2]:***[paddle/fluid/pybind/CMakeFiles/paddle_pybind.dir/pybind.cc.o] Error 4
make[1]:***[paddle/fluid/pybind/CMakeFiles/paddle_pybind.dir/all] Error 2
make:***[all] Error 2

似乎像是编译崩溃了,编译的同时 top 观察资源占用情况,发现 cc1plus 内存使用一直涨到 2G左右后崩溃

大概定位了下,应该是编译下面这个地方的时候崩溃的,手动编译同样还是会报错,不清楚是什么问题导致

/usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/paddle_pybind.dir/pybind.cc.o -c /home/paddle/Paddle/paddle/fluid/pybind/pybind.cc

eeq64g8w

eeq64g8w1#

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档常见问题历史IssueAI社区来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the APIFAQGithub Issue and AI community to get the answer.Have a nice day!

jexiocij

jexiocij2#

@hjx3325 你好,请问是否内存被其他地方占用了呢,paddle我们每天都在进行集成编译,编译是没有语法问题的,可能是内存不够的原因,建议make -j1降低并发编译

相关问题