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

UCX Build Issue on Java 11 #831

Open
vibhatha opened this issue Jan 8, 2020 · 5 comments · Fixed by openucx/ucx#4704
Open

UCX Build Issue on Java 11 #831

vibhatha opened this issue Jan 8, 2020 · 5 comments · Fixed by openucx/ucx#4704
Assignees

Comments

@vibhatha
Copy link
Contributor

vibhatha commented Jan 8, 2020

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
Copy link
Collaborator

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.

mojohaus/maven-native#17

@chathurawidanage
Copy link
Collaborator

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

@vibhatha
Copy link
Contributor Author

vibhatha commented Jan 8, 2020

Great!

@supunkamburugamuve
Copy link
Contributor

@chathurawidanage lets report this issue to UCX as well.

@chathurawidanage
Copy link
Collaborator

Someone has already reported this issue to UCX.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants