Bug 2051171 - jffi fails to build with java-17-openjdk
Summary: jffi fails to build with java-17-openjdk
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: jffi
Version: 36
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: mo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2024265
TreeView+ depends on / blocked
 
Reported: 2022-02-06 14:51 UTC by jiri vanek
Modified: 2022-11-10 22:24 UTC (History)
8 users (show)

Fixed In Version: jffi-1.3.9-2.fc37
Clone Of:
Environment:
Last Closed: 2022-11-10 22:24:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description jiri vanek 2022-02-06 14:51:28 UTC
jffi fails to build with java-17-openjdk as sytem JDK. See https://fedoraproject.org/wiki/Changes/Java17 .
See especially part about known failures: https://fedoraproject.org/wiki/Changes/Java17#common_issues_packagers_can_face_and_gathered_solutions

For the build logs, see: https://koji.fedoraproject.org/koji/taskinfo?taskID=82429309
https://kojipkgs.fedoraproject.org/work/tasks/9430/82429430/mock_output.log
https://kojipkgs.fedoraproject.org/work/tasks/9430/82429430/hw_info.log
https://kojipkgs.fedoraproject.org/work/tasks/9430/82429430/state.log
https://kojipkgs.fedoraproject.org/work/tasks/9430/82429430/build.log
https://kojipkgs.fedoraproject.org/work/tasks/9430/82429430/root.log
We run the rebuild in side tag f36-java17, but as fail ratio was small, we expect this side tag to be merged into rawhide 7 or 8 of February 2022.
To reproduce before this date simply: fedpkg clone jffi; cd jffi;  fedpkg build --target f36-java17; #The target is crucial.
After this date the usual fedpkg build in f36 and up should do.

We run two reruns your package failed both.

We had also run the mass rebuilds in copr since November. We keep all encountered failures. See them here: https://copr.fedorainfracloud.org/coprs/jvanek/java17//package/jffi
You may find interesting additional informations here. Also we were spamming maintainers regualrly, check you spam folder.
              

We had tried aprox 500 packages, and aprox 65 had failed, so the java-17-openjdk will be system JDK in f36, and you should fix your package if you want to keep it alive. Usually the fix is simple, and best is to update the package to latest upstream version.
There will be usual mass rebuild once f36 branches. You may got another FTBFS bug.
Let us know here if you have any questions, here in bug, or at java-devel.org .

We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side if needed.

Comment 1 jiri vanek 2022-02-06 14:53:31 UTC
-generate-native-headers:
    [javac] /builddir/build/BUILD/jffi-jffi-1.3.4/build.xml:324: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 3 source files to /builddir/build/BUILD/jffi-jffi-1.3.4/build/jni
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 8
    [javac] 1 warning
-build-native-library:
     [exec] make: *** No rule to make target '-L/usr/lib64/../lib64', needed by '/builddir/build/BUILD/jffi-jffi-1.3.4/build/jni/jffi/Array.o'.  Stop.
BUILD FAILED

Unless the way how javac generates .h files, sounds like gcc12 more then jdk17 issue

Comment 2 Ben Cotton 2022-02-08 20:12:41 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle.
Changing version to 36.

Comment 3 Fedora Update System 2022-10-25 11:57:37 UTC
FEDORA-2022-c1bd2c6cac has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-c1bd2c6cac

Comment 4 Fedora Update System 2022-10-26 16:18:03 UTC
FEDORA-2022-c1bd2c6cac has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-c1bd2c6cac`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-c1bd2c6cac

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2022-11-10 22:24:50 UTC
FEDORA-2022-c1bd2c6cac has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.