-
Notifications
You must be signed in to change notification settings - Fork 491
SPEC: specify openjdk-devel package as dependency #5071
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
Conversation
For some reason Fedora doesn't pull openjdk-devel as a dependency for Maven, have to set it manually.
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
|
I think it's irrelevant now as of merging #5095 |
|
@amaslenn shall we close this? |
|
This is still relevant. Here is how to install # dnf search '*openjdk*' | grep devel
Last metadata expiration check: 0:00:58 ago on Mon May 4 15:39:46 2020.
java-openjdk-devel.i686 : Renamed to java-latest-openjdk-devel java-openjdk-devel.x86_64 : Renamed to java-latest-openjdk-develI need to update UCX @yosefe would you prefer a separate PR for Fedora Docker update or do it here? |
|
In this PR |
8033c81 to
d74e1f1
Compare
|
@petro-rudenko could you please take a look? List of installed Java packages: $ docker run ucfconsort.azurecr.io/ucx/fedora:2 rpm -qa | grep java
java-1.8.0-openjdk-headless-1.8.0.242.b08-0.fc30.x86_64
tzdata-java-2019c-2.fc30.noarch
javapackages-tools-5.3.0-4.fc30.noarch
java-latest-openjdk-14.0.0.36-3.rolling.fc30.x86_64
java-latest-openjdk-devel-14.0.0.36-3.rolling.fc30.x86_64
java-latest-openjdk-headless-14.0.0.36-3.rolling.fc30.x86_64
javapackages-filesystem-5.3.0-4.fc30.noarch[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project jucx: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR] -> [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/MojoFailureException
make[5]: *** [Makefile:992: native_headers.stamp] Error 1 |
|
Clean fedora:30 image: Then you remove only |
|
So basically it won't compile on JDK-14 for java8 bytecode (because we use internal API to get byte buffer address): Solution is the following:
|
|
@petro-rudenko that means we should specify |
|
@amaslenn |
|
We compiled with java9. Seems only java14 doesn't allow to use internal API, in favor of : https://www.baeldung.com/java-foreign-memory-access |
it is not on fedora@rawhide (faced it when tried to release v1.8.0) |
|
Then let's install |
|
@yosefe f30 got |
|
@petro-rudenko I'm getting the following issue when building UCX in Fedora/Koji env: mvn -B -T 1C -f /builddir/build/BUILD/ucx-1.9.0/bindings/java/pom.xml -Dmaven.repo.local=./build-java/.deps -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn compile
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.sonatype.plugins:nexus-staging-maven-plugin:jar:1.6.8 @
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.openucx:jucx:1.9.0 (/builddir/build/BUILD/ucx-1.9.0/bindings/java/pom.xml) has 1 error
[ERROR] Unresolveable build extension: Plugin org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.sonatype.plugins:nexus-staging-maven-plugin:jar:1.6.8: Could not transfer artifact org.sonatype.plugins:nexus-staging-maven-plugin:pom:1.6.8 from/to gcs-maven-central-mirror (https://maven-central.storage-download.googleapis.com/maven2/): transfer failed for https://maven-central.storage-download.googleapis.com/maven2/org/sonatype/plugins/nexus-staging-maven-plugin/1.6.8/nexus-staging-maven-plugin-1.6.8.pom: Unknown host maven-central.storage-download.googleapis.com: Name or service not known -> [Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerException
make[3]: *** [Makefile:992: native_headers.stamp] Error 1
make[3]: Leaving directory '/builddir/build/BUILD/ucx-1.9.0/bindings/java/src/main/native'
make[2]: *** [Makefile:506: all-recursive] Error 1
make[2]: Leaving directory '/builddir/build/BUILD/ucx-1.9.0/bindings/java'
make[1]: *** [Makefile:730: all-recursive] Error 1
make[1]: Leaving directory '/builddir/build/BUILD/ucx-1.9.0'Full log: https://kojipkgs.fedoraproject.org//work/tasks/7768/44767768/build.log |
|
Is there internet connection in this container? |
Not sure, but it somehow pulls the sources and other packages. |
|
@petro-rudenko ping |
|
@yosefe turned out our current approach for packaging JUCX is invalid: java package should be a separate rpm. Also, we have to use Fedora's rpm macroses for Maven and this will require splitting UCX and JUCX builds. According to @petro-rudenko JUCX users don't need rpms, they use Maven. I suggest removing the current JUCX packaging instructions and configure UCX with If you think we need to package it anyway, let's discuss the priority: implementation will take time, it is hard to estimate right now. And it blocks v1.8.* release for Fedora. |
+1 - let's build UCX RPM without java |
What
Specify
openjdk-develpackage as a build dependency.Why ?
For some reason, Fedora doesn't pull
openjdk-develas a dependency for Maven, have to set it manually.