-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PaddlePaddle使用gcc4.9源码编译失败 #6382
Comments
你好 请补充下Paddle版本、编译器信息、机器系统信息 等信息, 这里有个类似的issue: #4863 建议使用docker进行编译 |
错误信息应该是这个,跟cmake版本应该没有关系。 |
请问GCC版本是多少呢? |
GCC是4.9.3 |
我来试下这个gcc版本吧。 |
恩。据说0.11版本要发布了,希望安装可以简单点。 |
请问,你们安装的gpu版本的是gcc4.8吗?也许,我应该尝试降低gcc来安装 |
我们的工作环境都是使用的gcc 4.8.3,系统是centos,cmake会输出版本信息:
另外我的docker镜像系统是Ubuntu 16.04(https://github.com/PaddlePaddle/Paddle/blob/develop/Dockerfile#L3 ),gcc版本也是4.8(https://github.com/PaddlePaddle/Paddle/blob/develop/Dockerfile#L28 )。 |
请问,你复现我的这个错误了吗?我是不是应该安装ubantu14.04啊 |
我gcc 4.9都没装成功,:flushed: |
那我是在ubantu16.04中回到gcc4.8呢,还是在ubantu14.04中按照gcc4.8比较好?还是说,最新的0.11据说要出来,我再等等? |
Ubuntu 16.04使用gcc4.8应该没问题的。你现在用的是develop分支的代码吧,不用等0.11。 |
我在用deepspeech的代码,因为,docker中的服务器和主机的客户端的通信问题,只能采用不docker的安装方式,而且要求paddle的版本是0.10,所以,只能使用源码编译,因为pip安装的版本还是不够。怎么说呢?希望paddle可以更优化安装方式吧,虽然是docker使用的确很灵活方便。 |
@john81529 多谢你的支持,我安装了gcc4.9.2,已经复现了这个错误(改了下标题),将会尽快解决这个问题,抱歉给你带来了困扰。
请问pip安装具体是什么问题?可以另外提一个issue,我们这边会尽力解决。
这个又是什么问题呢? |
你好,这个问题我已经开了新的issue,然后也有人帮我回答了,然而,并没有什么用处。 |
已经提PR #6442 修复gcc4.9的编译问题。如果你还希望使用gcc4.9 源码编译Paddle,可以拉下来试试~ |
好的,谢谢了。 |
@john81529 源码编译的问题,我们还是在这个issue里面追踪吧。 确认一下,你是不是用的PR #6442 里面的分支,因为代码还在review,还没有merge到Paddle的主线中。使用这个分支,请使用以下命令:
另外,编译这个分支之前,请使用
机器上已经有cuda和cudnn,则不需要重新安装,只要设置好CUDA_ROOT和CUDNN_ROOT就行。上述错误跟cuda环境没有关系。 |
嗯。好的。不过,我的使用deepspeech的问题已经解决了,在docker中也是可以通信的。我真的放弃源码编译了。一直麻烦你了。 |
希望你能帮忙验证一下吧,毕竟我也跟了这么久,你要是编译不成功,都不确定这个问题是不是fix了哦,拜托了~ |
好的,我试试。 |
依然出现错误: -- Paddle version is 0.0.0 You are in 'detached HEAD' state. You can look around, make experimental If you want to create a new branch to retain commits you create, you may git checkout -b HEAD 目前位于 15595d8... Merge pull request #1 from PaddlePaddle/no_noexcept_in_function_pointers You are in 'detached HEAD' state. You can look around, make experimental If you want to create a new branch to retain commits you create, you may git checkout -b HEAD 目前位于 b63a064... Merge pull request #6 from Xreki/fix_use_omp_option You are in 'detached HEAD' state. You can look around, make experimental If you want to create a new branch to retain commits you create, you may git checkout -b HEAD 目前位于 1df91d3... v2.1.1 release version bump You are in 'detached HEAD' state. You can look around, make experimental If you want to create a new branch to retain commits you create, you may git checkout -b HEAD 目前位于 649f04d... Added Pascal nvcc flags, bumped version You are in 'detached HEAD' state. You can look around, make experimental If you want to create a new branch to retain commits you create, you may git checkout -b HEAD 目前位于 7759264... repair wrong namespace problem You are in 'detached HEAD' state. You can look around, make experimental If you want to create a new branch to retain commits you create, you may git checkout -b HEAD 目前位于 a6a166d... Update the version in CMakeLists.txt to 0.3.5 You are in 'detached HEAD' state. You can look around, make experimental If you want to create a new branch to retain commits you create, you may git checkout -b HEAD 目前位于 5089329... zlib 1.2.8 You are in 'detached HEAD' state. You can look around, make experimental If you want to create a new branch to retain commits you create, you may git checkout -b HEAD 目前位于 9f75c5a... Merge pull request #2337 from sergiocampama/deprecation You are in 'detached HEAD' state. You can look around, make experimental If you want to create a new branch to retain commits you create, you may git checkout -b HEAD 目前位于 ec44c6c... Merge pull request #821 from mazong1123/master paddle/math/tests/CMakeFiles/test_float16_gpu.dir/build.make:63: recipe for target 'paddle/math/tests/CMakeFiles/test_float16_gpu.dir/test_float16_gpu_generated_test_float16.cu.o' failed You are in 'detached HEAD' state. You can look around, make experimental If you want to create a new branch to retain commits you create, you may git checkout -b HEAD 目前位于 ba482ec... doc: corrected version in readme You are in 'detached HEAD' state. You can look around, make experimental If you want to create a new branch to retain commits you create, you may git checkout -b HEAD 目前位于 7066106... Bug 1472: fix warning |
我觉得吧,您也不用纠结了,实在不行就算了。 |
主要是其他用户可能也会遇到相同问题,所以我们得把它给解决了。 |
恩恩。也许是我这些天各种方式安装paddle,很多文件都没有删除之类的,也许有冲突。 |
@john81529 多谢你的尝试,非常感谢你的支持。从你的log可以看出,这次的错误信息是: In file included from /home/yyh/Paddle/paddle/math/tests/test_float16.cpp:12:0:
/home/yyh/Paddle/paddle/math/float16.h:23:42: fatal error: unsupported/Eigen/CXX11/Tensor: 没有那个文件或目录
#include "unsupported/Eigen/CXX11/Tensor"
^
compilation terminated.
In file included from /home/yyh/Paddle/paddle/math/tests/test_float16.cu:12:0:
/home/yyh/Paddle/paddle/math/float16.h:23:42: fatal error: unsupported/Eigen/CXX11/Tensor: 没有那个文件或目录
#include "unsupported/Eigen/CXX11/Tensor"
^
compilation terminated.
CMake Error at test_float16_gpu_generated_test_float16.cu.o.cmake:203 (message):
Error generating
/home/yyh/Paddle/build/paddle/math/tests/CMakeFiles/test_float16_gpu.dir//./test_float16_gpu_generated_test_float16.cu.o
paddle/math/tests/CMakeFiles/test_float16_gpu.dir/build.make:63: recipe for target 'paddle/math/tests/CMakeFiles/test_float16_gpu.dir/test_float16_gpu_generated_test_float16.cu.o' failed
make[2]: *** [paddle/math/tests/CMakeFiles/test_float16_gpu.dir/test_float16_gpu_generated_test_float16.cu.o] Error 1
CMakeFiles/Makefile2:3620: recipe for target 'paddle/math/tests/CMakeFiles/test_float16_gpu.dir/all' failed
make[1]: *** [paddle/math/tests/CMakeFiles/test_float16_gpu.dir/all] Error 2
make[1]: *** 正在等待未完成的任务....
paddle/math/tests/CMakeFiles/test_float16.dir/build.make:62: recipe for target 'paddle/math/tests/CMakeFiles/test_float16.dir/test_float16.cpp.o' failed
make[2]: *** [paddle/math/tests/CMakeFiles/test_float16.dir/test_float16.cpp.o] Error 1
CMakeFiles/Makefile2:3725: recipe for target 'paddle/math/tests/CMakeFiles/test_float16.dir/all' failed
make[1]: *** [paddle/math/tests/CMakeFiles/test_float16.dir/all] Error 2 据我判断,这个已经不是gcc4.9的问题了,我们新加入的一个功能的支持编译配置方面存在些问题。#6408 应该能解决这个问题,你需要执行下:
辛苦了~ |
我编译安装后生成这样的文件paddlepaddle_gpu-0.0.0-cp27-cp27mu-linux_x86_64.whl,不过使用还是没问题的,deepspeech文件可以运行。多谢了。 |
@john81529 太棒了!
你这个生成文件,就是没有正确显示版本号,这个问题我们的FAQ里面有提到:http://www.paddlepaddle.org/docs/develop/documentation/zh/faq/build_and_install/index_cn.html#cmake-paddle0-0-0 。 非常感谢你的支持。我们的编译系统可能存在很多不完善的地方,请多多包涵。我们会努力改善,:smile: |
不不,提供这么优秀的工具已经很不错了,对我的帮助非常大。是我要感谢你们。 |
问题解决,关闭issue. |
新的错误,我的cmake是3.5的,需要降到3.4.1吗
The text was updated successfully, but these errors were encountered: