Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Compile Failed: cannot find -lpthreads #754

Open
XBWGC opened this issue Apr 26, 2022 · 3 comments
Open

Compile Failed: cannot find -lpthreads #754

XBWGC opened this issue Apr 26, 2022 · 3 comments

Comments

@XBWGC
Copy link

XBWGC commented Apr 26, 2022

  • commit id:57a24429f3a2f06414131b676c5f0d32a33619d1
  • how to reproduce: follow default steps here
  • error log

image

@gglin001
Copy link

可以试试使用 padlde 的构建环境构建

@zhhsplendid
Copy link
Member

我们这边正在查看中,对于您快速解决,可否先注释掉 cinn/auto_schedule/cost_model/CMakeLists.txt 中的

cc_test(test_cost_model SRCS cost_model_test.cc cost_model.cc DEPS pybind gtest_main)

target_link_libraries(test_cost_model ${PYTHON_LIBRARIES})

@BiynXu
Copy link
Collaborator

BiynXu commented Aug 18, 2022

由于在-DWITH_TESTONG=OFF 的情况下,test_cost_model没有生成,因此链接出现问题。
找不到pthread的报错并不是pthread本身的问题,在解决了上面的链接问题后就不会出现这个log了。
请参考#890

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants