Bug 1623399

Summary: -Wl,--as-needed: java-openjdk FTBFS in rawhide (F30)
Product: [Fedora] Fedora Reporter: Severin Gehwolf <sgehwolf>
Component: java-openjdkAssignee: Severin Gehwolf <sgehwolf>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jerboaa, jvanek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: java-openjdk-10.0.2.13-8.fc30 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-08-30 15:03:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Severin Gehwolf 2018-08-29 09:39:59 UTC
Description of problem:
java-openjdk fails to build from source in Fedora rawhide (F30) since August 16 (as detected by koshei). The same sources build fine on F29 and F28.

Failed task:
https://koji.fedoraproject.org/koji/taskinfo?taskID=29251533

Version-Release number of selected component (if applicable):
java-openjdk-10.0.2.13-7.fc30

How reproducible:
100%

Steps to Reproduce:
$ fedpkg clone -a java-openjdk && cd java-openjdk
$ fedpkg mockbuild --without slowdebug

Actual results:

Build fails with something like this:
LibraryWithFlags'
/usr/bin/ld: (.text.loader_LoadLibrary+0x104): undefined reference to `PR_Free'
/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libfreebl.a(loader.o): in function `freebl_LoadDSO':
if test `/usr/bin/wc -l < /builddir/build/BUILD/java-10-openjdk-10.0.2.13-7.fc30.x86_64/openjdk/build/make-support/failure-logs/support_native_jdk.crypto.ec_libsunec_BUILD_LIBSUNEC_link.log` -gt 12; then /usr/bin/echo "   ... (rest of output omitted)" ; fi 
make/Init.gmk:333: Building on-failure 
++ /usr/bin/wc -l
+ test 40 -gt 12
+ /usr/bin/echo '   ... (rest of output omitted)'
   ... (rest of output omitted)
/usr/bin/printf "\n* All command lines available in /builddir/build/BUILD/java-10-openjdk-10.0.2.13-7.fc30.x86_64/openjdk/build/make-support/failure-logs.\n" 
make/Init.gmk:333: Building on-failure 
+ /usr/bin/printf '\n* All command lines available in /builddir/build/BUILD/java-10-openjdk-10.0.2.13-7.fc30.x86_64/openjdk/build/make-support/failure-logs.\n'
* All command lines available in /builddir/build/BUILD/java-10-openjdk-10.0.2.13-7.fc30.x86_64/openjdk/build/make-support/failure-logs.

Expected results:
Build passes.

Comment 1 Severin Gehwolf 2018-08-29 11:01:38 UTC
Proposed fix:
https://src.fedoraproject.org/rpms/java-openjdk/pull-request/17

Comment 2 Severin Gehwolf 2018-08-30 07:20:16 UTC
Should be fixed once this build completes:
https://koji.fedoraproject.org/koji/taskinfo?taskID=29375735