Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 707728 - games-puzzle/atomix-3.22.0 : fails to build with -fno-common or gcc-10
Summary: games-puzzle/atomix-3.22.0 : 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: https://gitlab.gnome.org/GNOME/atomix...
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: -fno-common
  Show dependency tree
 
Reported: 2020-02-01 09:22 UTC by Toralf Förster
Modified: 2020-09-13 13:01 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,16.70 KB, text/plain)
2020-02-01 09:22 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,253.06 KB, text/plain)
2020-02-01 09:22 UTC, Toralf Förster
Details
environment (environment,109.17 KB, text/plain)
2020-02-01 09:22 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,18.56 KB, application/x-bzip)
2020-02-01 09:22 UTC, Toralf Förster
Details
games-puzzle:atomix-3.22.0:20200201-022127.log (games-puzzle:atomix-3.22.0:20200201-022127.log,48.11 KB, text/plain)
2020-02-01 09:22 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,7.09 KB, application/x-bzip)
2020-02-01 09:23 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,30.22 KB, application/x-bzip)
2020-02-01 09:23 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-01 09:22:45 UTC
/usr/include/gtk-3.0/gtk/gtkshow.h:33:10: note: declared here
   33 | gboolean gtk_show_uri  (GdkScreen   *screen,
      |          ^~~~~~~~~~~~
x86_64-pc-linux-gnu-gcc -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/uuid -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -pthread  -fno-strict-aliasing -Wall -Wextra -Wundef -Wnested-externs -Wwrite-strings -Wpointer-arith -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -Wdeclaration-after-statement -Wformat=2 -Wold-style-definition -Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare -Wstrict-aliasing -Wshadow -Winline -Wpacked -Wmissing-format-attribute -Wmissing-noreturn -Winit-self -Wmissing-include-dirs -Wunused-but-set-variable -Warray-bounds -Wimplicit-function-declaration -Wreturn-type -Wswitch-enum -Wswitch-default -Wno-error=unused-parameter -Wno-error=missing-field-initializers -O2 -pipe -march=native -fno-common -Wl,--no-as-needed -Wl,-O1 -Wl,--as-needed -o atomix main.o board-gtk.o undo.o goal.o goal-view.o clock.o games-show.o libatomix.a -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgio-2.0 -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0  -lm 
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: libatomix.a(level.o):(.bss+0x0): multiple definition of `parent_class'; libatomix.a(theme.o):(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status

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

  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 *

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 01:27:54 +0000

emerge -qpvO games-puzzle/atomix
[ebuild  N    ] games-puzzle/atomix-3.22.0
Comment 1 Toralf Förster gentoo-dev 2020-02-01 09:22:48 UTC
Created attachment 610286 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-02-01 09:22:50 UTC
Created attachment 610288 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-02-01 09:22:53 UTC
Created attachment 610290 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-02-01 09:22:56 UTC
Created attachment 610292 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-02-01 09:22:59 UTC
Created attachment 610294 [details]
games-puzzle:atomix-3.22.0:20200201-022127.log
Comment 6 Toralf Förster gentoo-dev 2020-02-01 09:23:01 UTC
Created attachment 610296 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-02-01 09:23:04 UTC
Created attachment 610298 [details]
temp.tbz2
Comment 8 Jan Psota 2020-08-25 09:59:29 UTC
I confirm that adding -fcommon to CFLAGS resolved the problem.

I made it creating env/common:
    CFLAGS="$CFLAGS -fcommon"
and appending
    games-puzzle/atomix         common
to package.env.
Comment 9 Larry the Git Cow gentoo-dev 2020-09-13 13:01:22 UTC
The bug has been closed via the following commit(s):

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

commit da9edaa41ab976dc18bc2d32e5d1ef11d88d7183
Author:     Alexey Sokolov <sokolov@google.com>
AuthorDate: 2020-09-12 23:24:26 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2020-09-13 12:58:29 +0000

    games-puzzle/atomix: fix build with gcc10
    
    Closes: https://bugs.gentoo.org/707728
    Package-Manager: Portage-3.0.4, Repoman-2.3.23
    Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
    Closes: https://github.com/gentoo/gentoo/pull/17518
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 games-puzzle/atomix/atomix-3.34.0-r1.ebuild        | 30 ++++++++++++++++++++++
 .../atomix/files/atomix-3.34.0-fnocommon.patch     | 26 +++++++++++++++++++
 2 files changed, 56 insertions(+)