相关疑难解决方法(0)

ld:找不到-lomp的库

在macOS Sierra中,启用openmp的xgboost安装总是失败.

来自https://xgboost.readthedocs.io/en/latest/build.html,

我试过了:

cp make/config.mk ./config.mk; make -j4

随着,

export CC=/usr/local/Cellar/llvm/4.0.0_1/bin/clang
export CXX=/usr/local/Cellar/llvm/4.0.0_1/bin/clang++
export CXX1X=/usr/local/Cellar/llvm/4.0.0_1/bin/clang++
Run Code Online (Sandbox Code Playgroud)

它失败了,

clang-4.0clang-4.0: : warning: argument unused during compilation: '-pthread' [-Wunused-command-line-argument]warning:
argument unused during compilation: '-pthread' [-Wunused-command-line-argument]
ld: library not found for -lomp
ld: library not found for -lomp
clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)

llvm支持openmp,但它失败了 ld: library not found for -lomp

相关问题 在Mac上安装xgboost - ld:找不到库

但是,clang-omp去了boneyard,并停止了llvm的OpenMP支持.

我已经钻了,(有-v选项)

/usr/local/Cellar/llvm/4.0.0_1/bin/clang++ -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude …
Run Code Online (Sandbox Code Playgroud)

machine-learning llvm xgboost

4
推荐指数
2
解决办法
1781
查看次数

标签 统计

llvm ×1

machine-learning ×1

xgboost ×1