osx - MacOS Sierra xgboost jvm package installtion error -
i trying build osx sierra jvm package. mvn -dskiptests install seems fail , 5 following error
cmake error @ /usr/local/cellar/cmake/3.7.2/share/cmake/modules/cmakedetermineccompiler.cmake:48 (message): not find compiler set in environment variable cc: gcc-6. call stack (most recent call first): cmakelists.txt:2 (project) cmake error: cmake_c_compiler not set, after enablelanguage cmake error: cmake_cxx_compiler not set, after enablelanguage -- configuring incomplete, errors occurred! see "/users/rjohri/xgboost/build/cmakefiles/cmakeoutput.log". building java wrapper cd .. mkdir -p build cd build cmake .. -duse_s3:bool=off -duse_openmp:bool=off -dplugin_updater_gpu:bool=off -duse_azure:bool=off -duse_hdfs:bool=off -djvm_bindings:bool=on traceback (most recent call last): file "create_jni.py", line 88, in <module> run("cmake .. " + " ".join(args) + maybe_generator) file "create_jni.py", line 51, in run subprocess.check_call(command, shell=true, **kwargs) file "/users/rjohri/anaconda/lib/python2.7/subprocess.py", line 540, in check_call raise calledprocesserror(retcode, cmd) subprocess.calledprocesserror: command 'cmake .. -duse_s3:bool=off -duse_openmp:bool=off -dplugin_updater_gpu:bool=off -duse_azure:bool=off -duse_hdfs:bool=off -djvm_bindings:bool=on' returned non-zero exit status 1 [error] command execution failed. org.apache.commons.exec.executeexception: process exited error: 1 (exit value: 1) @ org.apache.commons.exec.defaultexecutor.executeinternal(defaultexecutor.java:404) @ org.apache.commons.exec.defaultexecutor.execute(defaultexecutor.java:166) @ org.codehaus.mojo.exec.execmojo.executecommandline(execmojo.java:804) @ org.codehaus.mojo.exec.execmojo.executecommandline(execmojo.java:751) @ org.codehaus.mojo.exec.execmojo.execute(execmojo.java:313) @ org.apache.maven.plugin.defaultbuildpluginmanager.executemojo(defaultbuildpluginmanager.java:134) @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:207) @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:153) @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:145) @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproject(lifecyclemodulebuilder.java:116) @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproject(lifecyclemodulebuilder.java:80) @ org.apache.maven.lifecycle.internal.builder.singlethreaded.singlethreadedbuilder.build(singlethreadedbuilder.java:51) @ org.apache.maven.lifecycle.internal.lifecyclestarter.execute(lifecyclestarter.java:128) @ org.apache.maven.defaultmaven.doexecute(defaultmaven.java:307) @ org.apache.maven.defaultmaven.doexecute(defaultmaven.java:193) @ org.apache.maven.defaultmaven.execute(defaultmaven.java:106) @ org.apache.maven.cli.mavencli.execute(mavencli.java:863) @ org.apache.maven.cli.mavencli.domain(mavencli.java:288) @ org.apache.maven.cli.mavencli.main(mavencli.java:199) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:497) @ org.codehaus.plexus.classworlds.launcher.launcher.launchenhanced(launcher.java:289) @ org.codehaus.plexus.classworlds.launcher.launcher.launch(launcher.java:229) @ org.codehaus.plexus.classworlds.launcher.launcher.mainwithexitcode(launcher.java:415) @ org.codehaus.plexus.classworlds.launcher.launcher.main(launcher.java:356) [info] ------------------------------------------------------------------------ [info] reactor summary: [info] [info] xgboost-jvm ........................................ success [ 4.922 s] [info] xgboost4j .......................................... failure [ 1.799 s] [info] xgboost4j-spark .................................... skipped [info] xgboost4j-flink .................................... skipped [info] xgboost4j-example .................................. skipped [info] ------------------------------------------------------------------------ [info] build failure [info] ------------------------------------------------------------------------ [info] total time: 6.851 s [info] finished at: 2017-08-15t10:10:03+01:00 [info] final memory: 25m/391m [info] ------------------------------------------------------------------------ [error] failed execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:exec (native) on project xgboost4j: command execution failed. process exited error: 1 (exit value: 1) -> [help 1]
i have updated config.mk include gcc compiler
# choice of compiler, default use system preference. export cc = gcc-6 export cxx = g++-6
but seems needs me change else? not sure other changes need do. build xgboost package ./build.sh ran , installed single thread version of xgboost. failure happened when tried install jvm package. make -j4 doesn't work me suggested in documentation has issues fopenmp , gives following error
makefile:31: make [/applications/xcode.app/contents/developer/usr/bin/make] - checked ok g++-6 -std=c++11 -wall -wno-unknown-pragmas -iinclude -idmlc-core/include -irabit/include -i/include -o3 -funroll-loops -msse2 -fpic -fopenmp -o xgboost build/cli_main.o build/learner.o build/logging.o build/c_api/c_api.o build/c_api/c_api_error.o build/common/common.o build/common/hist_util.o build/data/data.o build/data/simple_csr_source.o build/data/simple_dmatrix.o build/data/sparse_page_dmatrix.o build/data/sparse_page_raw_format.o build/data/sparse_page_source.o build/data/sparse_page_writer.o build/gbm/gblinear.o build/gbm/gbm.o build/gbm/gbtree.o build/metric/elementwise_metric.o build/metric/metric.o build/metric/multiclass_metric.o build/metric/rank_metric.o build/objective/multiclass_obj.o build/objective/objective.o build/objective/rank_obj.o build/objective/regression_obj.o build/predictor/cpu_predictor.o build/predictor/predictor.o build/tree/tree_model.o build/tree/tree_updater.o build/tree/updater_colmaker.o build/tree/updater_fast_hist.o build/tree/updater_histmaker.o build/tree/updater_prune.o build/tree/updater_refresh.o build/tree/updater_skmaker.o build/tree/updater_sync.o dmlc-core/libdmlc.a rabit/lib/librabit.a -pthread -lm -fopenmp make: g++-6: no such file or directory ar crv lib/libxgboost.a g++-6 -std=c++11 -wall -wno-unknown-pragmas -iinclude -idmlc-core/include -irabit/include -i/include -o3 -funroll-loops -msse2 -fpic -fopenmp -shared -o lib/libxgboost.dylib build/learner.o build/logging.o build/c_api/c_api.o build/c_api/c_api_error.o build/common/common.o build/common/hist_util.o build/data/data.o build/data/simple_csr_source.o build/data/simple_dmatrix.o build/data/sparse_page_dmatrix.o build/data/sparse_page_raw_format.o build/data/sparse_page_source.o build/data/sparse_page_writer.o build/gbm/gblinear.o build/gbm/gbm.o build/gbm/gbtree.o build/metric/elementwise_metric.o build/metric/metric.o build/metric/multiclass_metric.o build/metric/rank_metric.o build/objective/multiclass_obj.o build/objective/objective.o build/objective/rank_obj.o build/objective/regression_obj.o build/predictor/cpu_predictor.o build/predictor/predictor.o build/tree/tree_model.o build/tree/tree_updater.o build/tree/updater_colmaker.o build/tree/updater_fast_hist.o build/tree/updater_histmaker.o build/tree/updater_prune.o build/tree/updater_refresh.o build/tree/updater_skmaker.o build/tree/updater_sync.o dmlc-core/libdmlc.a rabit/lib/librabit.a -pthread -lm -fopenmp make: g++-6: no such file or directory make: *** [xgboost] error 1 make: *** waiting unfinished jobs.... make: *** [lib/libxgboost.dylib] error 1 ar: no archive members specified usage: ar -d [-tlsv] archive file ... ar -m [-tlsv] archive file ... ar -m [-abitlsv] position archive file ... ar -p [-tlsv] archive [file ...] ar -q [-ctlsv] archive file ... ar -r [-cutlsv] archive file ... ar -r [-abciutlsv] position archive file ... ar -t [-tlsv] archive [file ...] ar -x [-outlsv] archive [file ...] make: *** [lib/libxgboost.a] error 1
has else faced of these errors?
any appreciated. thanks! rosh
it seems need add full path gcc compiler in config file. still gave lot of warnings of not being able run open mp version not sure if multithreading version enabled. saw here: installing openmp on mac os x 10.11 if gcc installed brew require reinstall benefit of openmp. try , update answer here. current testing purpose though sufficient.
Comments
Post a Comment