1
环境信息
-
Arthas 版本: 3.6.8
-
操作系统版本: windows 10
-
目标进程的JVM版本: openjdk version "1.8.0_362" OpenJDK Runtime Environment (Zulu 8.68.0.21-CA-win64) (build 1.8.0_362-b09) OpenJDK 64-Bit Server VM (Zulu 8.68.0.21-CA-win64) (build 25.362-b09, mixed mode)
-
执行
arthas-boot
的版本: xxx
- clone 最新 master
- ./as-package.sh
编译成功 What do you expected from the above steps?
实际运行的结果编译失败(在完全相同的环境下尝试了3.6.7版本时的master,可以编译成功)
[INFO] Generating flattened POM of project com.taobao.arthas:arthas-vmtool:jar:3.6.8...
[WARNING] FlattenMode minimum is deprecated!
[INFO]
[INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ arthas-vmtool ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to E:\Code\personal\arthas\arthas-vmtool\target\classes
[INFO]
[INFO] --- native-maven-plugin:1.0-alpha-11:initialize (compile-and-link) @ arthas-vmtool ---
[INFO]
[INFO] --- native-maven-plugin:1.0-alpha-11:compile (compile-and-link) @ arthas-vmtool ---
[INFO] cmd.exe /X /C "g++ -IE:/CodeEnvironment/Java Environment/zulu-8/include -IE:/CodeEnvironment/Java Environment/zulu-8/include/win32 -IE:\Code\personal\arthas\arthas-vmtool\target/native/include -m64 -fpic -shared -o -IE:\Code\personal\arthas\arthas-vmtool\src\main\native\src -IE:\Code\personal\arthas\arthas-vmtool\target\generated-sources\annotations "-IE:\CodeEnvironment\Java Environment\zulu-8\jre\..\include" "-IE:\CodeEnvironment\Java Environment\zulu-8\jre\..\include\win32" -oE:\Code\personal\arthas\arthas-vmtool\target\objs\jni-library.obj -c E:\Code\personal\arthas\arthas-vmtool\src\main\native\src\jni-library.cpp"
g++: warning: Environment/zulu-8/include: linker input file unused because linking not done
g++: error: Environment/zulu-8/include: linker input file not found: No such file or directory
g++: warning: Environment/zulu-8/include/win32: linker input file unused because linking not done
g++: error: Environment/zulu-8/include/win32: linker input file not found: No such file or directory
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for arthas-all 3.6.8:
[INFO]
[INFO] arthas-all ......................................... SUCCESS [ 0.651 s]
[INFO] web-ui ............................................. SUCCESS [ 20.870 s]
[INFO] math-game .......................................... SUCCESS [ 0.796 s]
[INFO] arthas-common ...................................... SUCCESS [ 0.509 s]
[INFO] arthas-spy ......................................... SUCCESS [ 0.087 s]
[INFO] arthas-vmtool ...................................... FAILURE [ 1.007 s]
[INFO] arthas-tunnel-common ............................... SKIPPED
[INFO] arthas-tunnel-client ............................... SKIPPED
[INFO] arthas-memorycompiler .............................. SKIPPED
[INFO] arthas-core ........................................ SKIPPED
[INFO] arthas-agent ....................................... SKIPPED
[INFO] arthas-client ...................................... SKIPPED
[INFO] arthas-boot ........................................ SKIPPED
[INFO] arthas-agent-attach ................................ SKIPPED
[INFO] arthas-site ........................................ SKIPPED
[INFO] arthas-packaging ................................... SKIPPED
[INFO] arthas-spring-boot-starter ......................... SKIPPED
[INFO] arthas-tunnel-server ............................... SKIPPED
[INFO] arthas-testcase .................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 24.566 s
[INFO] Finished at: 2023-05-04T22:13:11+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:native-maven-plugin:1.0-alpha-11:compile (compile-and-link) on project arthas-vmtool: Error executing command line. Exit code: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 <args> -rf :arthas-vmtool
package arthas failed.