Skip to content

UCX Build Issue on Java 11 #831

@vibhatha

Description

@vibhatha

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)

`

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions