bububa / xgboost-go

xgboost go wrapper for c_api
Apache License 2.0
22 stars 7 forks source link

编译报了好多错 #3

Open zhangyang10418 opened 6 years ago

zhangyang10418 commented 6 years ago

在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 tocxa_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 toGOMP_parallel' ../xgboost/../lib/libxgboost.a(c_api.o): In function XGDMatrixCreateFromMat_omp': c_api.cc:(.text+0xe240): undefined reference toGOMP_parallel' c_api.cc:(.text+0xe645): undefined reference to GOMP_parallel' ../xgboost/../lib/libxgboost.a(c_api.o): In functionXGDMatrixCreateFromCSCEx': c_api.cc:(.text+0xeed6): undefined reference to GOMP_parallel' c_api.cc:(.text+0xf209): undefined reference toGOMP_parallel' ../xgboost/../lib/libxgboost.a(data.o): In function xgboost::data::SparsePage::Format::DecideFormat(std::string const&)': data.cc:(.text+0xb52): undefined reference tostd::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 commented 6 years ago

没装openmp