cylondata / twister2

A composable framework for fast and scalable data analytics
https://twister2.org
Apache License 2.0
57 stars 32 forks source link

UCX Build Issue on Java 11 #831

Open vibhatha opened 4 years ago

vibhatha commented 4 years ago

When building the project with Java 11, with UCX updates, the follow error was noted.

Further, it is the fact that Java 8 is a core dependency in UCX. Meantime, javah tool is deprecated and it is has been removed after Java 9.

Having flags for builds can be important in such cases.

--without-ucx

This kind of flag could be an option.

Here is the stack trace and system info for Java installation.

` [ERROR] Failed to execute goal org.codehaus.mojo:native-maven-plugin:1.0-alpha-9:javah (default-cli) on project jucx: Error running javah command: Error executing command line: Error while executing process. Cannot run program "javah" (in directory "/tmp/ucx.InkoL4/bindings/java"): error=2, No such file or directory -> [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 make[2]: Leaving directory '/tmp/ucx.InkoL4/bindings/java/src/main/native' make[1]: Leaving directory '/tmp/ucx.InkoL4' Target //scripts/package:tarpkgs failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 231.627s, Critical Path: 172.28s INFO: 433 processes: 433 local. FAILED: Build did NOT complete successfully Copying twister2 snapshopt... twister2-0.5.0-SNAPSHOT.tar.gz exist, deleting old version... cp: cannot stat 'bazel-bin/scripts/package/twister2-0.5.0-SNAPSHOT.tar.gz': No such file or directory Extracting twister2 snapshot... tar (child): twister2-0.5.0-SNAPSHOT.tar.gz: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now Process Completed

vibhatha@vibhatha:~/github/forks/twister2$ ls /tmp/ucx.InkoL4/ aclocal.m4 BUILD.bazel config.guess config.status contrib/ install-sh Makefile modules/ src/ ucx.pc.in
AUTHORS buildlib/ config.h config.sub debian/ libtool Makefile.am NEWS stamp-h1 ucx.spec
autogen.sh compile config.h.in configure depcomp LICENSE Makefile.in README test/ ucx.spec.in
bindings/ config/ config.log configure.ac docs/ ltmain.sh missing README.md ucx.pc WORKSPACE
vibhatha@vibhatha:~/github/forks/twister2$ ls /tmp/ucx.InkoL4/bindings/java/ checkstyle.xml pom.xml pom.xml.in README.md resources/ src/
vibhatha@vibhatha:~/github/forks/twister2$ ls /tmp/ucx.InkoL4/bindings/java/ checkstyle.xml pom.xml pom.xml.in README.md resources src vibhatha@vibhatha:~/github/forks/twister2$ java --version java 11.0.5 2019-10-15 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.5+10-LTS) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.5+10-LTS, mixed mode)

`

chathurawidanage commented 4 years ago

UCX is using native-maven-plugin which internally uses javah command. javah has been deprecated in java9 and removed since java10. native-maven-plugin has an open issue for this.

https://github.com/mojohaus/maven-native/issues/17

chathurawidanage commented 4 years ago

Additionally we can do https://github.com/DSC-SPIDAL/twister2/issues/832

vibhatha commented 4 years ago

Great!

supunkamburugamuve commented 4 years ago

@chathurawidanage lets report this issue to UCX as well.

chathurawidanage commented 4 years ago

Someone has already reported this issue to UCX.