Skip to content
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

编译报了好多错 #3

Open
zhangyang10418 opened this issue Aug 22, 2018 · 1 comment
Open

编译报了好多错 #3

zhangyang10418 opened this issue Aug 22, 2018 · 1 comment

Comments

@zhangyang10418
Copy link

在src/github.com/bububa/xgboost-go/example下编译,报了这么多错,如何解决啊?
[example]$ go build

github.com/bububa/xgboost-go/xgboost

../xgboost/../lib/libxgboost.a(c_api.o): In function _Z17prefixsum_inplacePmm._omp_fn.2': c_api.cc:(.text+0x79f): undefined reference to __cxa_throw_bad_array_new_length'
../xgboost/../lib/libxgboost.a(c_api.o): In function prefixsum_inplace(unsigned long*, unsigned long)': c_api.cc:(.text+0x1535): undefined reference to GOMP_parallel'
../xgboost/../lib/libxgboost.a(c_api.o): In function XGDMatrixCreateFromMat_omp': c_api.cc:(.text+0xe240): undefined reference to GOMP_parallel'
c_api.cc:(.text+0xe645): undefined reference to GOMP_parallel' ../xgboost/../lib/libxgboost.a(c_api.o): In function XGDMatrixCreateFromCSCEx':
c_api.cc:(.text+0xeed6): undefined reference to GOMP_parallel' c_api.cc:(.text+0xf209): undefined reference to GOMP_parallel'
../xgboost/../lib/libxgboost.a(data.o): In function xgboost::data::SparsePage::Format::DecideFormat(std::string const&)': data.cc:(.text+0xb52): undefined reference to std::__throw_out_of_range_fmt(char const*, ...)'
data.cc:(.text+0xb67): undefined reference to std::__throw_out_of_range_fmt(char const*, ...)' ../xgboost/../lib/libxgboost.a(data.o): In function xgboost::DMatrix::Load(std::string const&, bool, bool, std::string const&)':
.
.
.

@bububa
Copy link
Owner

bububa commented Aug 24, 2018

没装openmp

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

No branches or pull requests

2 participants