Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 706448 - games-misc/sdljoytest-11102003 : fails to build with -fno-common or gcc-10
Summary: games-misc/sdljoytest-11102003 : 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 (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: -fno-common
  Show dependency tree
 
Reported: 2020-01-26 14:32 UTC by Toralf Förster
Modified: 2020-11-07 18:51 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,14.84 KB, text/plain)
2020-01-26 14:32 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,17.79 KB, text/plain)
2020-01-26 14:32 UTC, Toralf Förster
Details
environment (environment,40.34 KB, text/plain)
2020-01-26 14:32 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.70 KB, application/x-bzip)
2020-01-26 14:32 UTC, Toralf Förster
Details
games-misc:sdljoytest-11102003:20200126-141425.log (games-misc:sdljoytest-11102003:20200126-141425.log,3.37 KB, text/plain)
2020-01-26 14:32 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,11.03 KB, application/x-bzip)
2020-01-26 14:32 UTC, Toralf Förster
Details
no-common.patch (sdljoytest.no-common.patch,276 bytes, patch)
2020-02-20 01:47 UTC, Samuel Bauer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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(-)