Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 709300 - app-misc/utimer-0.4-r1 : fails to build with -fno-common or gcc-10
Summary: app-misc/utimer-0.4-r1 : fails to build with -fno-common or gcc-10
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Kfir Lavi
URL:
Whiteboard:
Keywords: PATCH
: 721092 (view as bug list)
Depends on:
Blocks: -fno-common
  Show dependency tree
 
Reported: 2020-02-11 17:54 UTC by Toralf Förster
Modified: 2020-05-21 12:02 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,14.61 KB, text/plain)
2020-02-11 17:54 UTC, Toralf Förster
Details
app-misc:utimer-0.4-r1:20200211-023403.log (app-misc:utimer-0.4-r1:20200211-023403.log,12.03 KB, text/plain)
2020-02-11 17:54 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,57.70 KB, text/plain)
2020-02-11 17:54 UTC, Toralf Förster
Details
environment (environment,14.18 KB, text/plain)
2020-02-11 17:54 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.50 KB, application/x-bzip)
2020-02-11 17:54 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,5.88 KB, application/x-bzip)
2020-02-11 17:54 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,7.55 KB, application/x-bzip)
2020-02-11 17:54 UTC, Toralf Förster
Details
files/utimer-0.4-fno-common.patch (utimer-0.4-fno-common.patch,672 bytes, patch)
2020-02-12 10:34 UTC, Jeroen Roovers
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-02-11 17:54:26 UTC
  208 | void g_atexit  (GVoidFunc    func);
      |      ^~~~~~~~
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../..  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include  -DG_ENABLE_DEBUG   -O2 -pipe -march=native -fno-common -c -o log.o `test -f '../../src/log.c' || echo './'`../../src/log.c
x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=native -fno-common  -Wl,-O1 -Wl,--as-needed -o maintests maintests.o timer.o utils.o log.o -lgobject-2.0 -lglib-2.0  -lgio-2.0 -lgobject-2.0 -lglib-2.0  -lgobject-2.0 -lgthread-2.0 
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: timer.o:(.bss+0x0): multiple definition of `ut_config'; maintests.o:(.bss+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: timer.o:(.bss+0x40): multiple definition of `savedttystate'; maintests.o:(.bss+0x40): first defined here

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

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

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

  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.6
  [3]   python3.7 (fallback)
  [4]   python2.7 (fallback)




ghc:
The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Tue, 11 Feb 2020 00:11:22 +0000

emerge -qpvO app-misc/utimer
[ebuild  N    ] app-misc/utimer-0.4-r1  USE="nls -debug"
Comment 1 Toralf Förster gentoo-dev 2020-02-11 17:54:28 UTC
Created attachment 613308 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-02-11 17:54:31 UTC
Created attachment 613310 [details]
app-misc:utimer-0.4-r1:20200211-023403.log
Comment 3 Toralf Förster gentoo-dev 2020-02-11 17:54:34 UTC
Created attachment 613312 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-02-11 17:54:37 UTC
Created attachment 613314 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-02-11 17:54:40 UTC
Created attachment 613316 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-02-11 17:54:43 UTC
Created attachment 613318 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-02-11 17:54:46 UTC
Created attachment 613320 [details]
temp.tbz2
Comment 8 Jeroen Roovers gentoo-dev 2020-02-12 10:34:14 UTC
Created attachment 613434 [details, diff]
files/utimer-0.4-fno-common.patch
Comment 9 Jeroen Roovers gentoo-dev 2020-02-12 10:36:00 UTC
Comment on attachment 613434 [details, diff]
files/utimer-0.4-fno-common.patch

It would have made more sense to add these definitions to src/utimer.c but then src/tests/maintests.c would fail to compile. Alternatively the declarations could be moved from src/utimer.h to src/utils.h.

>--- a/src/utils.c
>+++ b/src/utils.c
>@@ -36,6 +36,10 @@
> #include "utils.h"
> #include "utimer.h"
> 
>+GMainLoop         *loop;
>+gboolean          paused;
>+struct termios    savedttystate;
>+Config            ut_config;
> 
> gulong ul_add (gulong a, gulong b)
> {
Comment 10 Jeroen Roovers gentoo-dev 2020-05-21 12:02:59 UTC
*** Bug 721092 has been marked as a duplicate of this bug. ***