Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 706448

Summary: games-misc/sdljoytest-11102003 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal CC: samuel.bauer
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=339646
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
games-misc:sdljoytest-11102003:20200126-141425.log
temp.tbz2
no-common.patch

Description Toralf Förster gentoo-dev 2020-01-26 14:32:31 UTC
      |       ^~~~~~~~~~~~~~~~~~~
x86_64-pc-linux-gnu-gcc -c -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -O2 -pipe -march=native -fno-common -D_REENTRANT input.c -o input.o
x86_64-pc-linux-gnu-gcc -c -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -O2 -pipe -march=native -fno-common -D_REENTRANT output.c -o output.o
x86_64-pc-linux-gnu-gcc -o SDLJoytest-GL main.o init_quit.o input.o output.o -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -O2 -pipe -march=native -fno-common -D_REENTRANT -lSDL -lpthread -lGL -Wl,-O1 -Wl,--as-needed
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: init_quit.o:(.bss+0x0): multiple definition of `hello'; main.o:(.bss+0x17c): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: input.o:(.bss+0x0): multiple definition of `hello'; main.o:(.bss+0x17c): first defined here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop-libressl-20200125-232521

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

  Please see the tracker bug for details.

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


llvm:
9.0.1
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7 (uninstalled)
  [3]   python3.6
  [4]   python2.7 (fallback)





repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Sun, 26 Jan 2020 13:46:12 +0000

emerge -qpvO games-misc/sdljoytest
[ebuild  N    ] games-misc/sdljoytest-11102003
Comment 1 Toralf Förster gentoo-dev 2020-01-26 14:32:35 UTC
Created attachment 604648 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-26 14:32:37 UTC
Created attachment 604650 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-26 14:32:40 UTC
Created attachment 604652 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-26 14:32:43 UTC
Created attachment 604654 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-26 14:32:46 UTC
Created attachment 604656 [details]
games-misc:sdljoytest-11102003:20200126-141425.log
Comment 6 Toralf Förster gentoo-dev 2020-01-26 14:32:50 UTC
Created attachment 604658 [details]
temp.tbz2
Comment 7 Samuel Bauer 2020-02-20 01:47:19 UTC
Created attachment 614592 [details, diff]
no-common.patch

Fix here.

Maybe a more 'modern' tool would be welcome: #339646
or evtest-qt
Comment 8 Larry the Git Cow gentoo-dev 2020-11-07 18:51:00 UTC
The bug has been closed via the following commit(s):

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

commit c3186ef8817aa6de849eb0c6fe74fa1ee36667a0
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2020-11-07 18:49:48 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-11-07 18:50:56 +0000

    games-misc/sdljoytest: tweak for gcc-10
    
    Fix-by: Samuel Bauer
    Closes: https://bugs.gentoo.org/706448
    Package-Manager: Portage-3.0.9, Repoman-3.0.2
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 .../sdljoytest/files/sdljoytest-11102003-no-common.patch      | 11 +++++++++++
 games-misc/sdljoytest/sdljoytest-11102003.ebuild              |  7 +++++--
 2 files changed, 16 insertions(+), 2 deletions(-)