Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 713180 - dev-java/openjdk-11.0.6 : fails to build with -fno-common or gcc-10
Summary: dev-java/openjdk-11.0.6 : fails to build with -fno-common or gcc-10
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: -fno-common
  Show dependency tree
 
Reported: 2020-03-18 09:01 UTC by Toralf Förster
Modified: 2022-06-08 08:23 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.01 KB, text/plain)
2020-03-18 09:01 UTC, Toralf Förster
Details
dev-java:openjdk-11.0.6:20200318-041640.log.bz2 (dev-java:openjdk-11.0.6:20200318-041640.log.bz2,124.65 KB, application/x-bzip)
2020-03-18 09:01 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,77.83 KB, text/plain)
2020-03-18 09:01 UTC, Toralf Förster
Details
environment (environment,196.07 KB, text/plain)
2020-03-18 09:01 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,14.22 KB, application/x-bzip)
2020-03-18 09:01 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,464.96 KB, application/x-bzip)
2020-03-18 09:01 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,162.32 KB, application/x-bzip)
2020-03-18 09:01 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-03-18 09:01:31 UTC
Linking libjava.so
( /bin/rm -f /var/tmp/portage/dev-java/openjdk-11.0.6/work/jdk11u-jdk-11.0.6-ga/build/linux-x86_64-normal-server-release/support/native/java.base/libjava/BUILD_LIBJAVA_link.log && /usr/bin/x86_64-pc-linux-gnu-gcc -Wl,-z,defs -Wl,-O1 -m64 -Wl,-O1 -Wl,--as-needed -Wl,-z,noexecstack -L/var/tmp/portage/dev-java/openjdk-11.0.6/work/jdk11u-jdk-11.0.6-ga/build/linux-x86_64-normal-server-release/support/modules_libs/java.base -L/var/tmp/portage/dev-java/openjdk-11.0.6/work/jdk11u-jdk-11.0.6-ga/build/linux-x86_64-normal-server-release/support/modules_libs/java.base/server -shared -Wl,--exclude-libs,ALL -Wl,-z,origin -Wl,-rpath,\$ORIGIN -Wl,-soname=libjava.so -o /var/tmp/portage/dev-java/openjdk-11.0.6/work/jdk11u-jdk-11.0.6-ga/build/linux-x86_64-normal-server-release/support/modules_libs/java.base/libjava.so @/var/tmp/portage/dev-java/openjdk-11.0.6/work/jdk11u-jdk-11.0.6-ga/build/linux-x86_64-normal-server-release/support/native/java.base/libjava/_BUILD_LIBJAVA_objectfilenames.txt /var/tmp/portage/dev-java/openjdk-11.0.6/work/jdk11u-jdk-11.0.6-ga/build/linux-x86_64-normal-server-release/support/native/java.base/libfdlibm.a -ljvm -lverify -ldl > >(/usr/bin/tee -a /var/tmp/portage/dev-java/openjdk-11.0.6/work/jdk11u-jdk-11.0.6-ga/build/linux-x86_64-normal-server-release/support/native/java.base/libjava/BUILD_LIBJAVA_link.log) 2> >(/usr/bin/tee -a /var/tmp/portage/dev-java/openjdk-11.0.6/work/jdk11u-jdk-11.0.6-ga/build/linux-x86_64-normal-server-release/support/native/java.base/libjava/BUILD_LIBJAVA_link.log >&2) || ( exitcode=$? && /bin/cp /var/tmp/portage/dev-java/openjdk-11.0.6/work/jdk11u-jdk-11.0.6-ga/build/linux-x86_64-normal-server-release/support/native/java.base/libjava/BUILD_LIBJAVA_link.log /var/tmp/portage/dev-java/openjdk-11.0.6/work/jdk11u-jdk-11.0.6-ga/build/linux-x86_64-normal-server-release/make-support/failure-logs/support_native_java.base_libjava_BUILD_LIBJAVA_link.log && /bin/cp /var/tmp/portage/dev-java/openjdk-11.0.6/work/jdk11u-jdk-11.0.6-ga/build/linux-x86_64-normal-server-release/support/native/java.base/libjava/BUILD_LIBJAVA_link.cmdline /var/tmp/portage/dev-java/openjdk-11.0.6/work/jdk11u-jdk-11.0.6-ga/build/linux-x86_64-normal-server-release/make-support/failure-logs/support_native_java.base_libjava_BUILD_LIBJAVA_link.cmdline && exit $exitcode ) ) ; 
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-java/openjdk-11.0.6/work/jdk11u-jdk-11.0.6-ga/build/linux-x86_64-normal-server-release/support/native/java.base/libjava/childproc.o:(.bss+0x0): multiple definition of parentPathv; /var/tmp/portage/dev-java/openjdk-11.0.6/work/jdk11u-jdk-11.0.6-ga/build/linux-x86_64-normal-server-release/support/native/java.base/libjava/ProcessImpl_md.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome-20200315-161810

  -------------------------------------------------------------------

  Please see the tracker bug for details.

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.3.0 *
clang version 10.0.0 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
The following VMs are available for generation-2:
*)	IcedTea JDK 3.14.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Wed, 18 Mar 2020 03:39:31 +0000
emerge -qpvO dev-java/openjdk
[ebuild  N    ] dev-java/openjdk-11.0.6  USE="alsa cups jbootstrap pch -debug -doc -examples (-gentoo-vm) -headless-awt -javafx -nsplugin (-selinux) -source -systemtap -webstart"
Comment 1 Toralf Förster gentoo-dev 2020-03-18 09:01:34 UTC
Created attachment 621538 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-18 09:01:37 UTC
Created attachment 621540 [details]
dev-java:openjdk-11.0.6:20200318-041640.log.bz2
Comment 3 Toralf Förster gentoo-dev 2020-03-18 09:01:40 UTC
Created attachment 621542 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-03-18 09:01:42 UTC
Created attachment 621544 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-03-18 09:01:45 UTC
Created attachment 621546 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-18 09:01:48 UTC
Created attachment 621548 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-03-18 09:01:51 UTC
Created attachment 621550 [details]
temp.tbz2
Comment 8 Georgy Yakovlev archtester gentoo-dev 2020-04-21 19:49:13 UTC
upstream has fixes for 14 and 15 but has not backported to 11 yet

https://bugs.openjdk.java.net/browse/JDK-8235903

I'll add a -fcommon hack for now.
Comment 9 Larry the Git Cow gentoo-dev 2020-04-21 20:27:54 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08f405dabb2d12a38d3589823a1e2f03fa8af6c7

commit 08f405dabb2d12a38d3589823a1e2f03fa8af6c7
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2020-04-21 17:42:54 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2020-04-21 20:26:23 +0000

    dev-java/openjdk: bump to 11.0.7_p10
    
    Bug: https://bugs.gentoo.org/713180
    Bug: https://bugs.gentoo.org/718720
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 dev-java/openjdk/Manifest                  |   1 +
 dev-java/openjdk/openjdk-11.0.7_p10.ebuild | 274 +++++++++++++++++++++++++++++
 2 files changed, 275 insertions(+)
Comment 10 Larry the Git Cow gentoo-dev 2020-08-04 21:58:45 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2e262024d4c564b29a7da88732e2c422234549e

commit b2e262024d4c564b29a7da88732e2c422234549e
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2020-08-04 21:44:55 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2020-08-04 21:58:23 +0000

    dev-java/openjdk: drop old
    
    Bug: https://bugs.gentoo.org/732624
    Closes: https://bugs.gentoo.org/734320
    Closes: https://bugs.gentoo.org/706012
    Closes: https://bugs.gentoo.org/713180
    Closes: https://bugs.gentoo.org/706638
    Package-Manager: Portage-3.0.1, Repoman-2.3.23
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 dev-java/openjdk/Manifest                          |  17 --
 .../openjdk/files/openjdk-11.0.7_p10-sigsegv.patch |  55 ----
 .../openjdk/files/openjdk-8-detect-gcc10.patch     |  49 ----
 dev-java/openjdk/openjdk-11.0.7_p10.ebuild         | 280 ---------------------
 dev-java/openjdk/openjdk-8.252_p09.ebuild          | 231 -----------------
 dev-java/openjdk/openjdk-8.262_p10.ebuild          | 226 -----------------
 6 files changed, 858 deletions(-)