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

Bug 707246

Summary: app-misc/geekcode-1.7.3-r1 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: jsmolic, treecleaner
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/18956
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764, 762907    
Attachments: emerge-info.txt
app-misc:geekcode-1.7.3-r1:20200129-140333.log
emerge-history.txt
environment
etc.portage.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2020-01-29 18:12:36 UTC
geekcode.c:188:4: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
  188 |    fgets(junk, 80, stdin); /* Changed to fgets() in v1.4 - is this a good way to use it? */
      |    ^~~~~~~~~~~~~~~~~~~~~~
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wl,-O1 -Wl,--as-needed -o geekcode gc_appearance.o gc_computers.o gc_entertainment.o gc_lifestyle.o gc_politics.o gc_type.o gc_consoleio.o gc_translate.o geekcode.o
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: gc_computers.o:(.bss+0x0): multiple definition of `gc_sex'; gc_appearance.o:(.bss+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: gc_computers.o:(.bss+0x4): multiple definition of `gc_sex_type'; gc_appearance.o:(.bss+0x4): 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

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Wed, 29 Jan 2020 12:46:23 +0000

emerge -qpvO app-misc/geekcode
[ebuild  N    ] app-misc/geekcode-1.7.3-r1
Comment 1 Toralf Förster gentoo-dev 2020-01-29 18:12:40 UTC
Created attachment 608162 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-29 18:12:43 UTC
Created attachment 608164 [details]
app-misc:geekcode-1.7.3-r1:20200129-140333.log
Comment 3 Toralf Förster gentoo-dev 2020-01-29 18:12:46 UTC
Created attachment 608166 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-01-29 18:12:49 UTC
Created attachment 608168 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-01-29 18:12:52 UTC
Created attachment 608170 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-01-29 18:12:56 UTC
Created attachment 608172 [details]
temp.tbz2
Comment 7 Larry the Git Cow gentoo-dev 2021-01-06 19:21:23 UTC
The bug has been closed via the following commit(s):

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

commit fe7a09a5f0327b02abb9318878b9a57159e11b09
Author:     Andreas K. Huettel <dilfridge@gentoo.org>
AuthorDate: 2021-01-06 19:21:02 +0000
Commit:     Andreas K. Huettel <dilfridge@gentoo.org>
CommitDate: 2021-01-06 19:21:02 +0000

    app-misc/geekcode: Apply gcc-10 workaround
    
    Closes: https://bugs.gentoo.org/707246
    Package-Manager: Portage-3.0.12, Repoman-3.0.2
    Signed-off-by: Andreas K. Huettel <dilfridge@gentoo.org>

 app-misc/geekcode/geekcode-1.7.3-r1.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Comment 8 Larry the Git Cow gentoo-dev 2021-01-12 10:49:15 UTC
The bug has been closed via the following commit(s):

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

commit eda3d3e7da5f1d94dea881a3369bd882bcfc98ae
Author:     Jakov Smolic <jakov.smolic@sartura.hr>
AuthorDate: 2021-01-12 10:48:47 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2021-01-12 10:48:47 +0000

    app-misc/geekcode: Port to EAPI 7
    
    Closes: https://github.com/gentoo/gentoo/pull/18956
    Closes: https://bugs.gentoo.org/707246
    Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
    Signed-off-by: David Seifert <soap@gentoo.org>

 app-misc/geekcode/files/geekcode-1.7.3-exit.patch  |   4 +-
 .../geekcode/files/geekcode-1.7.3-fno-common.patch | 151 +++++++++++++++++++++
 app-misc/geekcode/geekcode-1.7.3-r1.ebuild         |  13 +-
 3 files changed, 160 insertions(+), 8 deletions(-)