xgboost: [jvm-packages] [gcc version 5.1.0]create_jni.py failed to run compilation
For bugs or installation issues, please provide the following information. The more information you provide, the more easily we will be able to offer help and advice.
Environment info
Operating System: The system is: Windows - 10.0.15063 - AMD64 Compiler:
Package used (python/R/jvm/C++): Python 2.7.11 |Anaconda 4.0.0 (64-bit)
xgboost version used:
0.7
If installing from source, please provide
- The commit hash (
git rev-parse HEAD) - Logs will be helpful (If logs are large, please upload as attachment).
If you are using jvm package, please
- add [jvm-packages] in the title to make it quickly be identified
- the gcc version and distribution
If you are using python package, please provide
- The python version and distribution
- The command to install
xgboostif you are not installing from source
If you are using R package, please provide
- The R
sessionInfo() - The command to install
xgboostif you are not installing from source
Steps to reproduce
1.$ mvn install [INFO] Scanning for projects… [WARNING] [WARNING] Some problems were encountered while building the effective model for ml.dmlc:xgboost4j:jar:0.7 [WARNING] ‘build.plugins.plugin.version’ for org.codehaus.mojo:exec-maven-plugin is missing. @ line 54, column 19 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] xgboost-jvm [INFO] xgboost4j [INFO] xgboost4j-spark [INFO] xgboost4j-flink [INFO] xgboost4j-example [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building xgboost-jvm 0.7 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] — scalastyle-maven-plugin:0.8.0:check (checkstyle) @ xgboost-jvm — [WARNING] sourceDirectory is not specified or does not exist value=C:\Users\yuhul\xgboost\jvm-packages\src\main\scala [WARNING] testSourceDirectory is not specified or does not exist value=C:\Users\yuhul\xgboost\jvm-packages\src\test\scala Processed 0 file(s) Found 0 errors Found 0 warnings Found 0 infos Finished in 90 ms [INFO] [INFO] — maven-checkstyle-plugin:2.17:check (checkstyle) @ xgboost-jvm — [INFO] [INFO] — scala-maven-plugin:3.2.2:compile (default) @ xgboost-jvm — [WARNING] Expected all dependencies to require Scala version: 2.11.8 [WARNING] ml.dmlc:xgboost-jvm:0.7 requires scala version: 2.11.8 [WARNING] org.scala-lang:scala-compiler:2.11.8 requires scala version: 2.11.8 [WARNING] org.scala-lang.modules:scala-xml_2.11:1.0.4 requires scala version: 2.11.4 [WARNING] Multiple versions of scala libraries detected! [INFO] No sources to compile [INFO] [INFO] — scala-maven-plugin:3.2.2:compile (scala-compile-first) @ xgboost-jvm — [WARNING] Expected all dependencies to require Scala version: 2.11.8 [WARNING] ml.dmlc:xgboost-jvm:0.7 requires scala version: 2.11.8 [WARNING] org.scala-lang:scala-compiler:2.11.8 requires scala version: 2.11.8 [WARNING] org.scala-lang.modules:scala-xml_2.11:1.0.4 requires scala version: 2.11.4 [WARNING] Multiple versions of scala libraries detected! [INFO] No sources to compile [INFO] [INFO] — scala-maven-plugin:3.2.2:add-source (scala-compile-first) @ xgboost-jvm — [INFO] Add Source directory: C:\Users\yuhul\xgboost\jvm-packages\src\main\scala [INFO] Add Test Source directory: C:\Users\yuhul\xgboost\jvm-packages\src\test\scala [INFO] [INFO] — scala-maven-plugin:3.2.2:compile (compile) @ xgboost-jvm — [WARNING] Expected all dependencies to require Scala version: 2.11.8 [WARNING] ml.dmlc:xgboost-jvm:0.7 requires scala version: 2.11.8 [WARNING] org.scala-lang:scala-compiler:2.11.8 requires scala version: 2.11.8 [WARNING] org.scala-lang.modules:scala-xml_2.11:1.0.4 requires scala version: 2.11.4 [WARNING] Multiple versions of scala libraries detected! [INFO] No sources to compile [INFO] [INFO] — scala-maven-plugin:3.2.2:testCompile (test-compile) @ xgboost-jvm — [WARNING] Expected all dependencies to require Scala version: 2.11.8 [WARNING] ml.dmlc:xgboost-jvm:0.7 requires scala version: 2.11.8 [WARNING] org.scala-lang:scala-compiler:2.11.8 requires scala version: 2.11.8 [WARNING] org.scala-lang.modules:scala-xml_2.11:1.0.4 requires scala version: 2.11.4 [WARNING] Multiple versions of scala libraries detected! [INFO] No sources to compile [INFO] [INFO] — scalatest-maven-plugin:1.0:test (test) @ xgboost-jvm — Discovery starting. Discovery completed in 205 milliseconds. Run starting. Expected test count is: 0 DiscoverySuite: Run completed in 304 milliseconds. Total number of tests run: 0 Suites: completed 1, aborted 0 Tests: succeeded 0, failed 0, canceled 0, ignored 0, pending 0 No tests were executed. [INFO] [INFO] — maven-assembly-plugin:2.6:single (make-assembly) @ xgboost-jvm — [INFO] Assemblies have been skipped per configuration of the skipAssembly parameter. [INFO] [INFO] — maven-source-plugin:3.0.1:jar-no-fork (attach-sources) @ xgboost-jvm — [INFO] [INFO] — maven-install-plugin:2.4:install (default-install) @ xgboost-jvm — [INFO] Installing C:\Users\yuhul\xgboost\jvm-packages\pom.xml to D:\apache-maven-3.3.3\repository\ml\dmlc\xgboost-jvm\0.7\xgboost-jvm-0.7.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building xgboost4j 0.7 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] — scalastyle-maven-plugin:0.8.0:check (checkstyle) @ xgboost4j — Processed 13 file(s) Found 0 errors Found 0 warnings Found 0 infos Finished in 1037 ms [INFO] [INFO] — maven-checkstyle-plugin:2.17:check (checkstyle) @ xgboost4j — [INFO] [INFO] — exec-maven-plugin:1.6.0:exec (native) @ xgboost4j — CMake Error at CMakeLists.txt:2 (project): Failed to run MSBuild command:
MSBuild.exe
to get the value of VCTargetsPath:
– Configuring incomplete, errors occurred! See also “C:/Users/yuhul/xgboost/build/CMakeFiles/CMakeOutput.log”. building Java wrapper cd … mkdir -p build cd build cmake … -DUSE_S3:BOOL=OFF -DUSE_OPENMP:BOOL=ON -DPLUGIN_UPDATER_GPU:BOOL=OFF -DUSE_AZURE:BOOL=OFF -DUSE_HDFS:BOOL=OFF -DJVM_BINDINGS:BOOL=ON -G"Visual Studio 14 Win64" 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 “D:\Anaconda2\lib\subprocess.py”, line 540, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command 'cmake … -DUSE_S3:BOOL=OFF -DUSE_OPENMP:BOOL=ON -DPLUGIN_UPDATER_GPU:BOOL=OFF -DUSE_AZURE:BOOL=OFF -DUSE_HDFS:BOOL=OFF -DJVM_BINDINGS:BOOL=ON -G"Visual Studio 14 Win64”’ returned non-zero exit status 1 [ERROR] Command execution failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166) at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:804) at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:751) at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:313) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286) at org.apache.maven.cli.MavenCli.main(MavenCli.java:197) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] xgboost-jvm … SUCCESS [ 4.561 s] [INFO] xgboost4j … FAILURE [ 1.647 s] [INFO] xgboost4j-spark … SKIPPED [INFO] xgboost4j-flink … SKIPPED [INFO] xgboost4j-example … SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6.326 s [INFO] Finished at: 2017-07-18T15:17:39+08:00 [INFO] Final Memory: 24M/446M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:exec (native) on project xgboost4j: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :xgboost4j
$ python create_jni.py CMake Error at CMakeLists.txt:2 (project): Failed to run MSBuild command:
MSBuild.exe
to get the value of VCTargetsPath:
– Configuring incomplete, errors occurred! See also “C:/Users/yuhul/xgboost/build/CMakeFiles/CMakeOutput.log”. building Java wrapper cd … mkdir -p build cd build cmake … -DUSE_S3:BOOL=OFF -DUSE_OPENMP:BOOL=ON -DPLUGIN_UPDATER_GPU:BOOL=OFF -DUSE_AZURE:BOOL=OFF -DUSE_HDFS:BOOL=OFF -DJVM_BINDINGS:BOOL=ON -G"Visual Studio 14 Win64" 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 “D:\Anaconda2\lib\subprocess.py”, line 540, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command 'cmake … -DUSE_S3:BOOL=OFF -DUSE_OPENMP:BOOL=ON -DPLUGIN_UPDATER_GPU:BOOL=OFF -DUSE_AZURE:BOOL=OFF -DUSE_HDFS:BOOL=OFF -DJVM_BINDINGS:BOOL=ON -G"Visual Studio 14 Win64”’ returned non-zero exit status 1
What have you tried?
cmake … -DUSE_S3:BOOL=OFF -DUSE_OPENMP:BOOL=ON -DPLUGIN_UPDATER_GPU:BOOL=OFF -DUSE_AZURE:BOOL=OFF -DUSE_HDFS:BOOL=OFF -DJVM_BINDINGS:BOOL=ON -G"Visual Studio 12 2013 Win64"
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 25 (9 by maintainers)
You should update the installation instructions to say that cmake is required 😃
Another guess: maybe you have the JVM, but not the development files (headers, libraries)? Which distro are you on?