Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem of make on MAC #29

Closed
hiris1228 opened this issue Aug 21, 2014 · 3 comments
Closed

problem of make on MAC #29

hiris1228 opened this issue Aug 21, 2014 · 3 comments

Comments

@hiris1228
Copy link

Hi Guys,

I cannot make on my Mac. Could you please help me?

Below is the information on my terminal when making.

Hiris-Guteki-MacBook-Pro-5:xgboost hirisgu$ make
g++ -Wall -O3 -msse2 -Wno-unknown-pragmas -fopenmp -pthread -lm -o xgboost regrank/xgboost_regrank_main.cpp
In file included from regrank/xgboost_regrank_main.cpp:7:
In file included from regrank/xgboost_regrank.h:12:
In file included from regrank/xgboost_regrank_eval.h:13:
regrank/../utils/xgboost_omp.h:13:2: warning: "OpenMP is not available, compile
to single thread code" [-W#warnings]

warning "OpenMP is not available, compile to single thread code"

^
1 warning generated.
ld: library not found for -lgomp
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [xgboost] Error 1

Some software versions `i have
make:
GNU Make 3.81

gcc:
Hiris-Guteki-MacBook-Pro-5:xgboost hirisgu$ gcc -v
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.3.0
Thread model: posix

@tqchen
Copy link
Member

tqchen commented Aug 21, 2014

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

@tqchen tqchen closed this as completed Aug 21, 2014
@pchankh
Copy link

pchankh commented Aug 24, 2014

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

@tqchen
Copy link
Member

tqchen commented Aug 24, 2014

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

@tqchen tqchen reopened this Aug 24, 2014
@tqchen tqchen closed this as completed Aug 26, 2014
@tqchen tqchen removed the question label Sep 25, 2014
hcho3 pushed a commit to hcho3/xgboost that referenced this issue May 9, 2018
Add support hosts with unresolveable DNS entries.
@lock lock bot locked as resolved and limited conversation to collaborators Oct 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants