Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 707838 - dev-java/swt-4.10 : fails to build with -fno-common or gcc-10
Summary: dev-java/swt-4.10 : 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: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: -fno-common
  Show dependency tree
 
Reported: 2020-02-02 04:10 UTC by Toralf Förster
Modified: 2020-08-05 20:50 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.88 KB, text/plain)
2020-02-02 04:10 UTC, Toralf Förster
Details
dev-java:swt-4.10:20200201-224126.log (dev-java:swt-4.10:20200201-224126.log,13.86 KB, text/plain)
2020-02-02 04:10 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,215.71 KB, text/plain)
2020-02-02 04:10 UTC, Toralf Förster
Details
environment (environment,176.35 KB, text/plain)
2020-02-02 04:10 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,38.80 KB, application/x-bzip)
2020-02-02 04:10 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,1.36 KB, application/x-bzip)
2020-02-02 04:11 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-02-02 04:10:43 UTC
 1303 | void     g_type_class_add_private       (gpointer                    g_class,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -DNO__1g_1thread_1init -fPIC -DSWT_VERSION=4922r32    -DLINUX -DGTK -I/opt/icedtea-bin-3.14.0/include -I/opt/icedtea-bin-3.14.0/include/linux -DJNI64 `pkg-config --cflags gtk+-3.0 gtk+-unix-print-3.0` -c os_stats.c
x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -shared -fPIC  -o libswt-pi3-gtk-4922r32.so swt.o os.o os_structs.o os_custom.o os_stats.o `pkg-config --libs-only-L gtk+-3.0 gthread-2.0`  -L/usr/X11R6/lib -lgtk-3 -lgdk-3 -lcairo -lgthread-2.0
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: os_structs.o:(.bss+0xa48): multiple definition of `cached_jvm'; os.o:(.bss+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: os_custom.o:(.bss+0x0): multiple definition of `cached_jvm'; os.o:(.bss+0x0): first defined here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma-libressl-20200126-092715

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

  Please see the tracker bug for details.

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *

clang:
clang version 9.0.1 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/9/bin
llvm:
9.0.1
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) *
Available Rust versions:
  [1]   rust-1.40.0 *
java-config:
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
ghc:
The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Sat, 01 Feb 2020 21:29:19 +0000

emerge -qpvO dev-java/swt
[ebuild  NS   ] dev-java/swt-4.10 [3.7.2-r2] USE="cairo opengl -webkit% (-gnome%)"
Comment 1 Toralf Förster gentoo-dev 2020-02-02 04:10:46 UTC
Created attachment 610728 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-02-02 04:10:50 UTC
Created attachment 610730 [details]
dev-java:swt-4.10:20200201-224126.log
Comment 3 Toralf Förster gentoo-dev 2020-02-02 04:10:53 UTC
Created attachment 610732 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-02-02 04:10:56 UTC
Created attachment 610734 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-02-02 04:10:59 UTC
Created attachment 610736 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-02-02 04:11:02 UTC
Created attachment 610738 [details]
logs.tbz2
Comment 7 Larry the Git Cow gentoo-dev 2020-08-05 20:50:58 UTC
The bug has been closed via the following commit(s):

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

commit a18f351d6b22cbb5817493ce685e1bd1b709d3f9
Author:     Craig Andrews <candrews@gentoo.org>
AuthorDate: 2020-08-05 20:50:22 +0000
Commit:     Craig Andrews <candrews@gentoo.org>
CommitDate: 2020-08-05 20:50:53 +0000

    dev-java/swt: append-cflags -fcommon
    
    Workaround for -fno-common build failure
    
    Closes: https://bugs.gentoo.org/707838
    Package-Manager: Portage-3.0.1, Repoman-2.3.23
    Signed-off-by: Craig Andrews <candrews@gentoo.org>

 dev-java/swt/swt-4.10.ebuild | 2 ++
 1 file changed, 2 insertions(+)