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

Bug 708050

Summary: games-puzzle/neverball-1.6.0-r1 : 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    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/Neverball/neverball/pull/198
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
games-puzzle:neverball-1.6.0-r1:20200203-044658.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-02-03 18:48:35 UTC
cc -Wall -Wshadow -std=c99 -pedantic -O2 -pipe -march=native -fno-common -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/libpng16 -Ishare -DCONFIG_USER=\".neverball\" -DCONFIG_DATA=\"/usr/share/neverball\" -DCONFIG_LOCALE=\"/usr/share/locale\" -DENABLE_NLS=1 -DNDEBUG -o share/tilt_null.o -c share/tilt_null.c
cc -Wall -Wshadow -std=c99 -pedantic -O2 -pipe -march=native -fno-common -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/libpng16 -Ishare -DCONFIG_USER=\".neverball\" -DCONFIG_DATA=\"/usr/share/neverball\" -DCONFIG_LOCALE=\"/usr/share/locale\" -DENABLE_NLS=1 -DNDEBUG -MM -MP -MF share/hmd_null.d -MT "share/hmd_null.o" share/hmd_null.c
cc -Wall -Wshadow -std=c99 -pedantic -O2 -pipe -march=native -fno-common -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/libpng16 -Ishare -DCONFIG_USER=\".neverball\" -DCONFIG_DATA=\"/usr/share/neverball\" -DCONFIG_LOCALE=\"/usr/share/locale\" -DENABLE_NLS=1 -DNDEBUG -o share/hmd_null.o -c share/hmd_null.c
cc -Wall -Wshadow -std=c99 -pedantic -O2 -pipe -march=native -fno-common -o neverball share/lang.o share/st_common.o share/vec3.o share/base_image.o share/image.o share/solid_base.o share/solid_vary.o share/solid_draw.o share/solid_all.o share/mtrl.o share/part.o share/geom.o share/ball.o share/gui.o share/font.o share/theme.o share/base_config.o share/config.o share/video.o share/glext.o share/binary.o share/state.o share/audio.o share/text.o share/common.o share/list.o share/queue.o share/cmd.o share/array.o share/dir.o share/fbo.o share/glsl.o share/fs_common.o share/fs_png.o share/fs_jpg.o share/fs_rwops.o share/fs_ov.o share/log.o ball/hud.o ball/game_common.o ball/game_client.o ball/game_server.o ball/game_proxy.o ball/game_draw.o ball/score.o ball/level.o ball/progress.o ball/set.o ball/demo.o ball/demo_dir.o ball/util.o ball/st_conf.o ball/st_demo.o ball/st_save.o ball/st_goal.o ball/st_fail.o ball/st_done.o ball/st_level.o ball/st_over.o ball/st_play.o ball/st_set.o ball/st_start.o ball/st_title.o ball/st_help.o ball/st_name.o ball/st_shared.o ball/st_pause.o ball/st_ball.o ball/main.o share/solid_sim_sol.o share/fs_physfs.o share/tilt_null.o share/hmd_null.o -Wl,-O1 -Wl,--as-needed    -lSDL2_ttf -lvorbisfile -L/usr/lib64 -lSDL2 -lGL -ljpeg -lpng16 -lphysfs -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ball/st_save.o:(.bss+0x0): multiple definition of `text_input'; share/text.o:(.bss+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ball/st_name.o:(.bss+0x0): multiple definition of `text_input'; share/text.o:(.bss+0x0): first defined here

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

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

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

  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.41.0 *
java-config:
The following VMs are available for generation-2:
1)	IcedTea JDK 3.15.0 [icedtea-8]
*)	IcedTea JDK 3.14.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-8 
  [2]   icedtea-bin-8  system-vm
ghc:
The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Mon, 03 Feb 2020 03:28:24 +0000

emerge -qpvO games-puzzle/neverball
[ebuild  N    ] games-puzzle/neverball-1.6.0-r1  USE="nls"
Comment 1 Toralf Förster gentoo-dev 2020-02-03 18:48:38 UTC
Created attachment 611376 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-02-03 18:48:40 UTC
Created attachment 611378 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-02-03 18:48:43 UTC
Created attachment 611380 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-02-03 18:48:46 UTC
Created attachment 611382 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-02-03 18:48:49 UTC
Created attachment 611384 [details]
games-puzzle:neverball-1.6.0-r1:20200203-044658.log
Comment 6 Toralf Förster gentoo-dev 2020-02-03 18:48:52 UTC
Created attachment 611386 [details]
temp.tbz2
Comment 7 Sergei Trofimovich (RETIRED) gentoo-dev 2020-02-03 20:29:34 UTC
Proposed fix upstream as https://github.com/Neverball/neverball/pull/198
Comment 8 Larry the Git Cow gentoo-dev 2020-02-03 20:33:04 UTC
The bug has been closed via the following commit(s):

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

commit 35da04f7cbcc863140405bff2922f1d296f0c32b
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2020-02-03 20:32:32 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-02-03 20:32:57 +0000

    games-puzzle/neverball: tweak for gcc-10
    
    Reported-by: Toralf Förster
    Closes: https://bugs.gentoo.org/708050
    Package-Manager: Portage-2.3.87, Repoman-2.3.20
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 .../neverball/files/neverball-1.6.0-gcc-10.patch   | 42 ++++++++++++++++++++++
 games-puzzle/neverball/neverball-1.6.0-r1.ebuild   |  4 ++-
 2 files changed, 45 insertions(+), 1 deletion(-)