Comments (3)
See the build guide, in README.md you need to remove -fopenmp flag
from xgboost.
Hi guys,
I am also getting errors on my mac with 10.9 trying out the R interface. Failed to compile.
g++-4.2 -Wall -O3 -msse2 -Wno-unknown-pragmas -pthread -lm -o xgboost src/xgboost_main.cpp src/io/io.cpp
In file included from src/learner/./objective-inl.hpp:17,
from src/learner/./objective.h:64,
from src/learner/learner-inl.hpp:13,
from src/xgboost_main.cpp:10:
src/learner/./../utils/omp.h:12:2: warning: #warning "OpenMP is not available, compile to single thread code"
g++-4.2 -Wall -O3 -msse2 -Wno-unknown-pragmas -fPIC -pthread -lm -shared -o wrapper/libxgboostwrapper.so wrapper/xgboost_wrapper.cpp src/io/io.cpp
In file included from wrapper/../src/learner/./objective-inl.hpp:17,
from wrapper/../src/learner/./objective.h:64,
from wrapper/../src/learner/learner-inl.hpp:13,
from wrapper/xgboost_wrapper.cpp:9:
wrapper/../src/learner/./../utils/omp.h:12:2: warning: #warning "OpenMP is not available, compile to single thread code"
➜ xgboost-master mske R
zsh: command not found: mske
➜ xgboost-master make R
g++-4.2 -Wall -O3 -msse2 -Wno-unknown-pragmas -fPIC -pthread -lm -shared -o wrapper/libxgboostR.so wrapper/xgboost_wrapper.cpp wrapper/xgboost_R.cpp src/io/io.cpp
In file included from wrapper/../src/learner/./objective-inl.hpp:17,
from wrapper/../src/learner/./objective.h:64,
from wrapper/../src/learner/learner-inl.hpp:13,
from wrapper/xgboost_wrapper.cpp:9:
wrapper/../src/learner/./../utils/omp.h:12:2: warning: #warning "OpenMP is not available, compile to single thread code"
In file included from wrapper/xgboost_R.cpp:8:
wrapper/../src/utils/omp.h:12:2: warning: #warning "OpenMP is not available, compile to single thread code"
Undefined symbols for architecture x86_64:
"_INTEGER", referenced from:
_XGDMatrixCreateFromMat_R in ccC7CufM.o
_XGDMatrixSetInfo_R in ccC7CufM.o
_XGDMatrixCreateFromCSC_R in ccC7CufM.o
"_REAL", referenced from:
_XGBoosterPredict_R in ccC7CufM.o
_XGDMatrixGetInfo_R in ccC7CufM.o
_XGDMatrixCreateFromMat_R in ccC7CufM.o
_XGDMatrixSetInfo_R in ccC7CufM.o
_XGDMatrixCreateFromCSC_R in ccC7CufM.o
_XGBoosterBoostOneIter_R in ccC7CufM.o
"_R_CHAR", referenced from:
_XGBoosterDumpModel_R in ccC7CufM.o
_XGBoosterSaveModel_R in ccC7CufM.o
_XGBoosterLoadModel_R in ccC7CufM.o
_XGBoosterSetParam_R in ccC7CufM.o
_XGDMatrixGetInfo_R in ccC7CufM.o
_XGDMatrixSaveBinary_R in ccC7CufM.o
_XGDMatrixCreateFromFile_R in ccC7CufM.o
...
"_R_ClearExternalPtr", referenced from:
__BoosterFinalizer in ccC7CufM.o
__DMatrixFinalizer in ccC7CufM.o
"_R_DimSymbol", referenced from:
_XGDMatrixCreateFromMat_R in ccC7CufM.o
"_R_ExternalPtrAddr", referenced from:
_XGBoosterDumpModel_R in ccC7CufM.o
_XGBoosterSaveModel_R in ccC7CufM.o
_XGBoosterLoadModel_R in ccC7CufM.o
_XGBoosterPredict_R in ccC7CufM.o
_XGBoosterUpdateOneIter_R in ccC7CufM.o
_XGBoosterSetParam_R in ccC7CufM.o
__BoosterFinalizer in ccC7CufM.o
...
"_R_MakeExternalPtr", referenced from:
_XGDMatrixCreateFromFile_R in ccC7CufM.o
_XGBoosterCreate_R in ccC7CufM.o
_XGDMatrixCreateFromMat_R in ccC7CufM.o
_XGDMatrixCreateFromCSC_R in ccC7CufM.o
"_R_NilValue", referenced from:
_XGDMatrixCreateFromFile_R in ccC7CufM.o
_XGBoosterCreate_R in ccC7CufM.o
_XGDMatrixCreateFromMat_R in ccC7CufM.o
_XGDMatrixCreateFromCSC_R in ccC7CufM.o
"_R_RegisterCFinalizerEx", referenced from:
_XGDMatrixCreateFromFile_R in ccC7CufM.o
_XGBoosterCreate_R in ccC7CufM.o
_XGDMatrixCreateFromMat_R in ccC7CufM.o
_XGDMatrixCreateFromCSC_R in ccC7CufM.o
"_Rf_allocVector", referenced from:
_XGBoosterPredict_R in ccC7CufM.o
_XGDMatrixGetInfo_R in ccC7CufM.o
"_Rf_asChar", referenced from:
_XGBoosterDumpModel_R in ccC7CufM.o
_XGBoosterSaveModel_R in ccC7CufM.o
_XGBoosterLoadModel_R in ccC7CufM.o
_XGBoosterSetParam_R in ccC7CufM.o
_XGDMatrixGetInfo_R in ccC7CufM.o
_XGDMatrixSaveBinary_R in ccC7CufM.o
_XGDMatrixCreateFromFile_R in ccC7CufM.o
...
"_Rf_asInteger", referenced from:
_XGBoosterPredict_R in ccC7CufM.o
_XGBoosterUpdateOneIter_R in ccC7CufM.o
_XGDMatrixSaveBinary_R in ccC7CufM.o
_XGDMatrixCreateFromFile_R in ccC7CufM.o
_XGBoosterEvalOneIter_R in ccC7CufM.o
"_Rf_asReal", referenced from:
_XGDMatrixCreateFromMat_R in ccC7CufM.o
"_Rf_getAttrib", referenced from:
_XGDMatrixCreateFromMat_R in ccC7CufM.o
"_Rf_length", referenced from:
_XGBoosterCreate_R in ccC7CufM.o
_XGBoosterEvalOneIter_R in ccC7CufM.o
_XGDMatrixSetInfo_R in ccC7CufM.o
_XGDMatrixCreateFromCSC_R in ccC7CufM.o
_XGBoosterBoostOneIter_R in ccC7CufM.o
"_Rf_mkString", referenced from:
_XGBoosterEvalOneIter_R in ccC7CufM.o
"_Rf_protect", referenced from:
_XGBoosterPredict_R in ccC7CufM.o
_XGDMatrixGetInfo_R in ccC7CufM.o
_XGDMatrixCreateFromFile_R in ccC7CufM.o
_XGBoosterCreate_R in ccC7CufM.o
_XGDMatrixCreateFromMat_R in ccC7CufM.o
_XGDMatrixCreateFromCSC_R in ccC7CufM.o
"_Rf_unprotect", referenced from:
_XGBoosterPredict_R in ccC7CufM.o
_XGDMatrixGetInfo_R in ccC7CufM.o
_XGDMatrixCreateFromFile_R in ccC7CufM.o
_XGBoosterCreate_R in ccC7CufM.o
_XGDMatrixCreateFromMat_R in ccC7CufM.o
_XGDMatrixCreateFromCSC_R in ccC7CufM.o
"_VECTOR_ELT", referenced from:
_XGBoosterCreate_R in ccC7CufM.o
_XGBoosterEvalOneIter_R in ccC7CufM.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [wrapper/libxgboostR.so] Error 1
➜ xgboost-master
Any help appreciated.
Dr Patrick
from xgboost.
Try the new version on the master branch, it should be fixed by now
from xgboost.
Related Issues (20)
- Model with External memory doesn't work with categorical features - with reproducible experiment (Python) HOT 1
- XGBoostError: [15:33:38] C:\buildkite-agent\builds\buildkite-windows-cpu-autoscaling-group-i-0b3782d1791676daf-1\xgboost\xgboost-ci-windows\src\data\data.cc:277: All feature_types must be one of {int, float, i, q, c}. HOT 1
- Set DMatrix feature_names when passing in a dask dataframe HOT 2
- Weighting isnt applied when using custom/sklearn eval_metric callback via sklearn API HOT 1
- multi-output regression - memory overload HOT 2
- xgboost too slow HOT 10
- Are There Ways to Identify Which Subsample of Data an XGBoost Tree Was Fitted On? HOT 2
- Proposal: Consistent package naming convention HOT 2
- Support cuPy array in custom objective with the sklearn interface.
- segfault when `X` is `None` in `.fit()`
- KeyError: "None of [Int64Index([1, 1, 1, 1, 1, 1, 1, 1, 1, 1,\n ...\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n dtype='int64', length=163)] are in the [columns]" HOT 2
- Mismatch of split_conditions loading via `json.load` and `load_model` HOT 4
- Custom objective for multi-output regression with multi_strategy=multi_output_tree HOT 2
- Allow users to set the logger level in XGBoost-PySpark HOT 4
- Is there a way to update tree node split thresholds using new data without changes tree structures ?
- No response using xgboost after uwsgi integration with flask HOT 17
- exact tree training does not seem to colsample bynode HOT 2
- Invalid classes inferred from unique values of `y`. HOT 3
- RROR ml.dmlc.xgboost4j.java.RabitTracker:[AutoML] Uncaught exception thrown by worker: java.lang.InterruptedException: null HOT 1
- Start from previous boosting rounds for training continuation.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xgboost.