Code Monkey home page Code Monkey logo

Comments (3)

tqchen avatar tqchen commented on May 3, 2024

See the build guide, in README.md you need to remove -fopenmp flag

from xgboost.

pchankh avatar pchankh commented on May 3, 2024

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.

tqchen avatar tqchen commented on May 3, 2024

Try the new version on the master branch, it should be fixed by now

from xgboost.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.