GNU bug report logs - #50243
[core-updates-frozen] "multiple definition of..." build failures

Previous Next

Package: guix;

Reported by: Sarah Morgensen <iskarian <at> mgsn.dev>

Date: Sat, 28 Aug 2021 21:24:02 UTC

Severity: normal

To reply to this bug, email your comments to 50243 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#50243; Package guix. (Sat, 28 Aug 2021 21:24:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sarah Morgensen <iskarian <at> mgsn.dev>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sat, 28 Aug 2021 21:24:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Sarah Morgensen <iskarian <at> mgsn.dev>
To: bug-guix <at> gnu.org
Subject: [core-updates-frozen] "multiple definition of..." build failures
Date: Sat, 28 Aug 2021 14:23:13 -0700
Hello Guix,

GCC 10 changed the default behavior when encountering multiple
definitions of a global (often an enum) [0].  This causes error messages
like [1]:

--8<---------------cut here---------------start------------->8---
  ld: a.o:(.bss+0x0): multiple definition of `a'; main.o:(.data+0x0): first defined here
--8<---------------cut here---------------end--------------->8---

Gentoo's tracker for this issue [2] also has some more info.  I manually
searched Cuirass build logs and found 28 packages failing on x86_64 with
this error:

arcan-sdl <at> 0.5.5.2-1.b4dd1fb
aris <at> 2.2
blastem <at> 0.6.2
chocolate-doom <at> 3.0.1
crispy-doom <at> 5.8.0
geeqie <at> 1.5
glabels <at> 3.4.1
gmtp <at> 1.3.11
gpredict <at> 2.2.1
gtksheet <at> 4.3.5
jumpnbump <at> 1.61
lablgtk <at> 2.18.10
libappindicator <at> 12.10.0
libopenshot <at> 0.2.5
libsrtp <at> 2.3.0
linsmith <at> 0.99.31
megaglest <at> 3.13.0
mupen64plus-core <at> 2.5
ocaml4.07-lablgtk <at> 1.18.10
ocl-icd <at> 2.2.12
opencpn <at> 5.0.0
pcsxr <at> 1.9.95
pipewire <at> 0.2.7
transcode <at> 1.1.7
transmission-remote-gtk <at> 1.4.1
uget <at> 2.2.1
uim-gtk <at> 1.8.8
uim-qt <at> 1.8.8

I submitted an issue upstream for transmission-remote-gtk [3], but I
haven't taken a look at the others.  Any takers?

[0] https://gcc.gnu.org/gcc-10/porting_to.html
[1] https://wiki.gentoo.org/wiki/Project:Toolchain/Gcc_10_porting_notes/fno_common
[2] https://bugs.gentoo.org/705764
[3] https://github.com/transmission-remote-gtk/transmission-remote-gtk/issues/122

--
Sarah




Information forwarded to bug-guix <at> gnu.org:
bug#50243; Package guix. (Sat, 04 Sep 2021 14:42:02 GMT) Full text and rfc822 format available.

Message #8 received at 50243 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Sarah Morgensen <iskarian <at> mgsn.dev>
Cc: 50243 <at> debbugs.gnu.org
Subject: Re: bug#50243: [core-updates-frozen] "multiple definition of..."
 build failures
Date: Sat, 04 Sep 2021 16:41:06 +0200
Hi Sarah,

Sarah Morgensen <iskarian <at> mgsn.dev> skribis:

> Gentoo's tracker for this issue [2] also has some more info.  I manually
> searched Cuirass build logs and found 28 packages failing on x86_64 with
> this error:
>
> arcan-sdl <at> 0.5.5.2-1.b4dd1fb
> aris <at> 2.2
> blastem <at> 0.6.2
> chocolate-doom <at> 3.0.1
> crispy-doom <at> 5.8.0
> geeqie <at> 1.5
> glabels <at> 3.4.1
> gmtp <at> 1.3.11
> gpredict <at> 2.2.1
> gtksheet <at> 4.3.5
> jumpnbump <at> 1.61
> lablgtk <at> 2.18.10
> libappindicator <at> 12.10.0
> libopenshot <at> 0.2.5
> libsrtp <at> 2.3.0
> linsmith <at> 0.99.31
> megaglest <at> 3.13.0
> mupen64plus-core <at> 2.5
> ocaml4.07-lablgtk <at> 1.18.10
> ocl-icd <at> 2.2.12
> opencpn <at> 5.0.0
> pcsxr <at> 1.9.95
> pipewire <at> 0.2.7
> transcode <at> 1.1.7
> transmission-remote-gtk <at> 1.4.1
> uget <at> 2.2.1
> uim-gtk <at> 1.8.8
> uim-qt <at> 1.8.8
>
> I submitted an issue upstream for transmission-remote-gtk [3], but I
> haven't taken a look at the others.  Any takers?

Great that you built a list of affected packages.

I guess there are several options:

  1. Build with ‘-fcommon’, effectively restoring pre-GCC-10 behavior;

  2. Build with GCC 8.x or so, for example by adding it to
     ‘native-inputs’;

  3. Upgrade packages and hope for the best;

  4. Add the missing ‘extern’ keyword in declarations, assuming that
     really is the problem.

I suppose we’ll have to see on a case-by-cases basis which approach is
the easiest.  Since we have a list, let’s parallelize work and
synchronize on IRC and in this issue!

Thanks,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#50243; Package guix. (Sun, 05 Sep 2021 02:42:01 GMT) Full text and rfc822 format available.

Message #11 received at 50243 <at> debbugs.gnu.org (full text, mbox):

From: Sarah Morgensen <iskarian <at> mgsn.dev>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 50243 <at> debbugs.gnu.org
Subject: Re: bug#50243: [core-updates-frozen] "multiple definition of..."
 build failures
Date: Sat, 04 Sep 2021 19:41:10 -0700
Hi Ludo,

>> lablgtk <at> 2.18.10
>> libsrtp <at> 2.3.0
>> ocaml4.07-lablgtk <at> 1.18.10

I've sent patches [0] [1] to fix these by updating them.  Together they
have 79 dependents.

[0] https://issues.guix.gnu.org/50388
[1] https://issues.guix.gnu.org/50389

--
Sarah




Information forwarded to bug-guix <at> gnu.org:
bug#50243; Package guix. (Sun, 05 Sep 2021 06:02:01 GMT) Full text and rfc822 format available.

Message #14 received at 50243 <at> debbugs.gnu.org (full text, mbox):

From: Sarah Morgensen <iskarian <at> mgsn.dev>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 50243 <at> debbugs.gnu.org
Subject: Re: bug#50243: [core-updates-frozen] "multiple definition of..."
 build failures
Date: Sat, 04 Sep 2021 23:00:58 -0700
Hi again,

>> libappindicator <at> 12.10.0
>> pipewire <at> 0.2.7

I've sent patches for these [0][1], with a total of 22 dependents.

The remaining packages have a total of 19 dependents, 7 of which belong
to ocl-icd <at> 2.2.12.  As soon as ocl-icd's website is back online, updating
it to 2.2.13 should fix the build.

[0] https://issues.guix.gnu.org/50392
[1] https://issues.guix.gnu.org/50396

--
Sarah




Information forwarded to bug-guix <at> gnu.org:
bug#50243; Package guix. (Sun, 05 Sep 2021 09:56:02 GMT) Full text and rfc822 format available.

Message #17 received at 50243 <at> debbugs.gnu.org (full text, mbox):

From: Guillaume Le Vaillant <glv <at> posteo.net>
To: Sarah Morgensen <iskarian <at> mgsn.dev>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 50243 <at> debbugs.gnu.org
Subject: Re: bug#50243: [core-updates-frozen] "multiple definition of..."
 build failures
Date: Sun, 05 Sep 2021 09:52:22 +0000
[Message part 1 (text/plain, inline)]
Sarah Morgensen <iskarian <at> mgsn.dev> skribis:

> opencpn <at> 5.0.0

Hi,
I fixed opencpn in 79edda38742b37603ccd48dd8660ff7fcfca293e.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#50243; Package guix. (Sun, 05 Sep 2021 11:34:01 GMT) Full text and rfc822 format available.

Message #20 received at 50243 <at> debbugs.gnu.org (full text, mbox):

From: Guillaume Le Vaillant <glv <at> posteo.net>
To: Sarah Morgensen <iskarian <at> mgsn.dev>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 50243 <at> debbugs.gnu.org
Subject: Re: bug#50243: [core-updates-frozen] "multiple definition of..."
 build failures
Date: Sun, 05 Sep 2021 11:28:27 +0000
[Message part 1 (text/plain, inline)]
Sarah Morgensen <iskarian <at> mgsn.dev> skribis:

> The remaining packages have a total of 19 dependents, 7 of which belong
> to ocl-icd <at> 2.2.12.  As soon as ocl-icd's website is back online, updating
> it to 2.2.13 should fix the build.

I just saw that on the master branch ocl-icd has been deprecated and
replaced by opencl-icd-loader. However I've not tried merging master
into core-updates-frozen to see if it the build works.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#50243; Package guix. (Mon, 06 Sep 2021 02:53:02 GMT) Full text and rfc822 format available.

Message #23 received at 50243 <at> debbugs.gnu.org (full text, mbox):

From: Sarah Morgensen <iskarian <at> mgsn.dev>
To: Guillaume Le Vaillant <glv <at> posteo.net>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 50243 <at> debbugs.gnu.org
Subject: Re: bug#50243: [core-updates-frozen] "multiple definition of..."
 build failures
Date: Sun, 05 Sep 2021 19:52:47 -0700
Guillaume Le Vaillant <glv <at> posteo.net> writes:

> Sarah Morgensen <iskarian <at> mgsn.dev> skribis:
>
>> The remaining packages have a total of 19 dependents, 7 of which belong
>> to ocl-icd <at> 2.2.12.  As soon as ocl-icd's website is back online, updating
>> it to 2.2.13 should fix the build.
>
> I just saw that on the master branch ocl-icd has been deprecated and
> replaced by opencl-icd-loader. However I've not tried merging master
> into core-updates-frozen to see if it the build works.

I've just submitted a patch to fix ocl-icd [0].

Hmmm.  It looks like it was removed because it "disappeared", but it
just changed locations...

[0] https://issues.guix.gnu.org/50418

--
Sarah




Information forwarded to bug-guix <at> gnu.org:
bug#50243; Package guix. (Fri, 10 Sep 2021 08:25:02 GMT) Full text and rfc822 format available.

Message #26 received at 50243 <at> debbugs.gnu.org (full text, mbox):

From: Guillaume Le Vaillant <glv <at> posteo.net>
To: Sarah Morgensen <iskarian <at> mgsn.dev>
Cc: 50243 <at> debbugs.gnu.org
Subject: Re: bug#50243: [core-updates-frozen] "multiple definition of..."
 build failures
Date: Fri, 10 Sep 2021 08:23:01 +0000
[Message part 1 (text/plain, inline)]
Sarah Morgensen <iskarian <at> mgsn.dev> skribis:

> gpredict <at> 2.2.1
> transcode <at> 1.1.7

gpredict and transcode fixed in bd8013ab33159a41a94f6a6cd023d585c91ae2ed
and 92d04bcab34ef7145bd18e5a7d242e38d01d3922.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#50243; Package guix. (Thu, 16 Sep 2021 08:52:02 GMT) Full text and rfc822 format available.

Message #29 received at 50243 <at> debbugs.gnu.org (full text, mbox):

From: Guillaume Le Vaillant <glv <at> posteo.net>
To: Sarah Morgensen <iskarian <at> mgsn.dev>
Cc: 50243 <at> debbugs.gnu.org
Subject: Re: bug#50243: [core-updates-frozen] "multiple definition of..."
 build failures
Date: Thu, 16 Sep 2021 08:48:59 +0000
[Message part 1 (text/plain, inline)]
Sarah Morgensen <iskarian <at> mgsn.dev> skribis:

> arcan-sdl <at> 0.5.5.2-1.b4dd1fb
> aris <at> 2.2
> blastem <at> 0.6.2
> crispy-doom <at> 5.8.0
> geeqie <at> 1.5
> glabels <at> 3.4.1
> gmtp <at> 1.3.11

These are fixed in c9f7770eeec3a7b493dcbf45c96a4528f2635604 and
following.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#50243; Package guix. (Mon, 22 Nov 2021 17:27:02 GMT) Full text and rfc822 format available.

Message #32 received at 50243 <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: 50243 <at> debbugs.gnu.org
Subject: [core-updates-frozen] "multiple definition of..." build failures
Date: Mon, 22 Nov 2021 18:25:15 +0100
linsmith is now fixed with commit 3d32fd1a6e.

-- 
Ricardo




Information forwarded to bug-guix <at> gnu.org:
bug#50243; Package guix. (Mon, 22 Nov 2021 19:35:01 GMT) Full text and rfc822 format available.

Message #35 received at 50243 <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: 50243 <at> debbugs.gnu.org
Subject: [core-updates-frozen] "multiple definition of..." build failures
Date: Mon, 22 Nov 2021 20:32:59 +0100
More fixes:

3d109b0306 gnu: uim-qt: Pass -fcommon to compiler.
108b923d92 gnu: uim-gtk: Pass -fcommon to compiler.
1882282843 gnu: megaglest: Pass -fcommon to compiler.

(Note that uim-qt still fails to install, because it attempts to 
install its library into the prefix directory of qtbase:

--8<---------------cut here---------------start------------->8---
make[3]: Entering directory 
'/tmp/guix-build-uim-qt-1.8.8.drv-0/uim-1.8.8/qt5/immodule'
/gnu/store/fildpz4qc0llifg8si9s7ag0vwlq1r2z-qtbase-5.15.2/bin/qmake 
-install qinstall -exe libuimplatforminputcontextplugin.so 
/gnu/store/fildpz4qc0llifg8si9s7ag0vwlq1r2z-qtbase-5.15.2/lib/qt5/plugins/platforminputcontexts/libuimplatforminputcontextplugin.so
Error copying libuimplatforminputcontextplugin.so to 
/gnu/store/fildpz4qc0llifg8si9s7ag0vwlq1r2z-qtbase-5.15.2/lib/qt5/plugins/platforminputcontexts/libuimplatforminputcontextplugin.so: 
Cannot create 
/gnu/store/fildpz4qc0llifg8si9s7ag0vwlq1r2z-qtbase-5.15.2/lib/qt5/plugins/platforminputcontexts/libuimplatforminputcontextplugin.so 
for output
--8<---------------cut here---------------end--------------->8---


-- 
Ricardo




Information forwarded to bug-guix <at> gnu.org:
bug#50243; Package guix. (Mon, 22 Nov 2021 22:21:02 GMT) Full text and rfc822 format available.

Message #38 received at 50243 <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: 50243 <at> debbugs.gnu.org
Subject: [core-updates-frozen] "multiple definition of..." build failures
Date: Mon, 22 Nov 2021 23:17:54 +0100
More fixes:

a24b83d7ff gnu: uget: Add -fcommon to CFLAGS.
eceecd8ab4 gnu: transmission-remote-gtk: Update to 1.4.2.
92deae62c1 gnu: jumpnbump: Remove trailing #T.
02296cb0c8 gnu: jumpnbump: Add -fcommon to CFLAGS.
3e678de04c gnu: mupen64plus-core: Add -fcommon to CFLAGS.

This leaves pcsxr and ocaml4.07-lablgtk.  I wasn’t able to fix 
pcsxr and there’s no more recent tagged version to test.  I don’t 
really want to touch ocaml4.07-lablgtk, because it’s probably 
going to fail in ways I don’t understand.

Any takers for the remaining two packages?

-- 
Ricardo




This bug report was last modified 3 years and 204 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.