首页 Paddle框架 帖子详情
1.8版本编译报错
收藏
快速回复
Paddle框架 问答深度学习 2057 1
1.8版本编译报错
收藏
快速回复
Paddle框架 问答深度学习 2057 1

系统:UBUNTU 20

平台:X86_64

Paddle版本:release/1.8

按照官网的说明编译时报错:

步骤:

1. mkdir build && cd build

2. cmake .. -DPY_VERSION=3.8 -DWITH_GPU=OFF -DWITH_TESTING=OFF -DCMAKE_BUILD_TYPE=Release

问题:

cat /home/yuewuya/Public/openSource/Paddle/build/CMakeFiles/CMakeError.log
Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: /home/yuewuya/Public/openSource/Paddle/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_70817/fast && /usr/bin/make -f CMakeFiles/cmTC_70817.dir/build.make CMakeFiles/cmTC_70817.dir/build
make[1]: Entering directory '/home/yuewuya/Public/openSource/Paddle/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_70817.dir/src.c.o
/usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -o CMakeFiles/cmTC_70817.dir/src.c.o -c /home/yuewuya/Public/openSource/Paddle/build/CMakeFiles/CMakeTmp/src.c
Linking C executable cmTC_70817
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_70817.dir/link.txt --verbose=1
/usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -rdynamic CMakeFiles/cmTC_70817.dir/src.c.o -o cmTC_70817
/usr/bin/ld: CMakeFiles/cmTC_70817.dir/src.c.o: in function `main':
src.c:(.text+0x46): undefined reference to `pthread_create'
/usr/bin/ld: src.c:(.text+0x52): undefined reference to `pthread_detach'
/usr/bin/ld: src.c:(.text+0x63): undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_70817.dir/build.make:87: cmTC_70817] Error 1
make[1]: Leaving directory '/home/yuewuya/Public/openSource/Paddle/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_70817/fast] Error 2

有没有人遇到或解决类似的问题?

0
收藏
回复
全部评论(1)
时间顺序
HolliZhao
#2 回复于2020-07

这个问题可以到PaddlePaddle的Github上查找或反馈下:https://github.com/PaddlePaddle/Paddle/issues

0
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户