You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
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//github/forks/twister2$ ls /tmp/ucx.InkoL4/bindings/java/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:
checkstyle.xml pom.xml pom.xml.in README.md resources/ src/
vibhatha@vibhatha:
/github/forks/twister2$ ls /tmp/ucx.InkoL4/bindings/java//github/forks/twister2$ java --versioncheckstyle.xml pom.xml pom.xml.in README.md resources src
vibhatha@vibhatha:
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)
`
The text was updated successfully, but these errors were encountered: