Bug 2051135
Summary: | automake fails to build with java-17-openjdk | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | jiri vanek <jvanek> |
Component: | automake | Assignee: | Frédéric Bérat <fberat> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 36 | CC: | didiksupriadi41, fberat, fjanus, java-maint-sig, jhuttana, jjanco, jvanek, karsten, kasal, odubaj, panovotn, pmikova, praiskup, sgehwolf |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | automake-1.16.5-4.fc37 automake-1.16.5-4.fc36 | Doc Type: | No Doc Update |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-02-15 14:02:00 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 2024265 |
Description
jiri vanek
2022-02-06 13:59:59 UTC
+ case $keep_testdirs in + return 0 + set +x SKIP contrib/t/parallel-tests-html-recursive.sh (exit status: 77) RPM build errors: + false Overall does nto look like java caused issue It looks like there are 3 tests failing in this build: FAIL: t/objc-deps.sh FAIL: t/objcxx-minidemo.sh FAIL: t/objcxx-deps.sh But none of them seem related to Java: gcc -g -O2 -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -o foo bar.o /usr/bin/ld: bar.o: `stdout@@GLIBC_2.2' non-PLT reloc for symbol defined in shared library and accessed from executable (rebuild file with -fPIC ?) /usr/bin/ld: final link failed: bad value collect2: error: ld returned 1 exit status g++ -g -O2 -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -o ok ok.o /usr/bin/ld: ok.o: `_ZSt4cout@@GLIBCXX_3.4' non-PLT reloc for symbol defined in shared library and accessed from executable (rebuild file with -fPIC ?) /usr/bin/ld: final link failed: bad value collect2: error: ld returned 1 exit status g++ -g -O2 -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -o foo bar.o /usr/bin/ld: bar.o: `_ZSt4cout@@GLIBCXX_3.4' non-PLT reloc for symbol defined in shared library and accessed from executable (rebuild file with -fPIC ?) /usr/bin/ld: final link failed: bad value collect2: error: ld returned 1 exit status After some more investigation, it looks like these tests are now failing even on a plain rawhide build: https://koji.fedoraproject.org/koji/taskinfo?taskID=82504606 The same tests are succeeding on f35: https://koji.fedoraproject.org/koji/taskinfo?taskID=82507509 The following change seems to fix the issue, although it's not yet clear how and why: @@@ -56,7 -56,7 +56,7 @@@ BuildRequires: expec BuildRequires: flex BuildRequires: gcc-gfortran BuildRequires: gettext-devel --BuildRequires: java-11-openjdk-devel ++BuildRequires: java-devel BuildRequires: libtool BuildRequires: ncompress BuildRequires: sharutils Checked with https://koji.fedoraproject.org/koji/taskinfo?taskID=82506620 After some more investigations, the tests are skipped if I remove the java-11-openjdk-devel from BuildRequires. The skip of the test is a result of a failure during the configure call: checking whether we are cross compiling... configure: error: in `/builddir/build/BUILD/automake-1.16.5/t/objcxx-minidemo.dir': configure: error: cannot run Objective C++ compiled programs. If you meant to cross compile, use `--host'. Which means that either the jdk is actually required for the Objective C tests to be executed properly, or an indirect dependency of it is. Since I'm not familiar with Objective C under-hoods, it's hard to make a definitive statement here. Anyway, since java-11-openjdk-devel is not supported any longer, having java-devel instead makes sense. (In reply to Frédéric Bérat from comment #4) > Anyway, since java-11-openjdk-devel is not supported any longer, having > java-devel instead makes sense. Just to clarify. JDK 11 (a.k.a java-11-openjdk-devel) is still supported and will be for some time. The change in question here is that F36 will have JDK 17 as system JDK (thus, will provide java-devel in F36 instead of JDK 11). This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle. Changing version to 36. |