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)
- Horizontal Federated Learning with Secure Features RFC
- [bug] Python - Cuda error (without using Cuda) HOT 5
- Pandas 2.2: Index.format is deprecated
- ArrayInterface handler for cuDF DataFrame cannot yet handle Boolean columns HOT 1
- src/metric/auc.cc:322: Check failed: auc <= local_area HOT 1
- XGBoost4j-spark CrossValidation train FAILED on multi-GPU environment: : Multiple processes running on same CUDA device is not supported! HOT 1
- [jvm-packages] Scaladoc is not working in latest XGBoost
- [CI] Tracker for improving build and CI/CD infrastructure
- [CI] Set up a nightly pipeline to test with dev versions of RAPIDS
- xgboost predict takes a long time
- xgboost4j_2.12:1.7.6 's (ml/dmlc/xgboost4j/java/XGBoostJNI.XGBoosterPredict) much slower than 0.90 in some model HOT 6
- NumPy 2.0 support HOT 2
- Tutorial on c-api distributed training of xgboost HOT 2
- Python 3.12 `xgboost.core.XGBoostError: Invalid Parameter format for nthread expect int but value='-1'` when `DMatrix` used with `import googlecloudprofiler`. HOT 6
- [CI] Retire Mac Mini worker in BuildKite
- [RFC] New logo for XGBoost HOT 1
- c-ares and BoringSSL version in xgboost 2.0.3 HOT 6
- Federated horizontal result does not align with basic training without federation
- monotone_constraints not working with xgb.regressor (python)
- xgboost 2.0.1 is breaking on rootless docker. HOT 2
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.