rust-xgboost icon indicating copy to clipboard operation
rust-xgboost copied to clipboard

Not able to build on ubuntu machine

Open infinite-Joy opened this issue 6 years ago • 1 comments
trafficstars

I have tried to use xgboost 0.1.4 on a mac and it works fine in a Mac, but not building in Ubuntu machines. This is probably because the build procedure uses clang in the backend. Building the original Xgboost (https://github.com/dmlc/xgboost) with make and cmake. I can see that there is a platform dependent build step. https://github.com/davechallis/rust-xgboost/blob/master/xgboost-sys/build.rs#L60. Not sure if this is the source of the problem.

infinite-Joy avatar Mar 25 '19 06:03 infinite-Joy

rust-xgboost uses bindgen to autogenerate a lot of the xgboost C bindings at compile time, this uses clang under the hood to do a lot of that, so pulls it in as a requirement even on linux systems.

The bindgen docs have some info on the requirements: https://github.com/rust-lang/rust-bindgen/blob/master/book/src/requirements.md

I'll add something about this to the README in the near future though to make things clearer.

davechallis avatar Mar 26 '19 10:03 davechallis