Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 706884 - lxde-base/menu-cache-1.1.0 : fails to build with -fno-common or gcc-10
Summary: lxde-base/menu-cache-1.1.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: LXDE team (DEFUNCT)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: -fno-common
  Show dependency tree
 
Reported: 2020-01-28 18:31 UTC by Toralf Förster
Modified: 2020-01-28 18:48 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.02 KB, text/plain)
2020-01-28 18:31 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,70.40 KB, text/plain)
2020-01-28 18:31 UTC, Toralf Förster
Details
environment (environment,14.34 KB, text/plain)
2020-01-28 18:31 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,13.20 KB, application/x-bzip)
2020-01-28 18:31 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,7.42 KB, application/x-bzip)
2020-01-28 18:31 UTC, Toralf Förster
Details
lxde-base:menu-cache-1.1.0:20200128-064108.log (lxde-base:menu-cache-1.1.0:20200128-064108.log,26.84 KB, text/plain)
2020-01-28 18:31 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,8.68 KB, application/x-bzip)
2020-01-28 18:31 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-01-28 18:31:06 UTC
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -I../libmenu-cache -I../libmenu-cache -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include -pthread -I/usr/include/libmount -I/usr/include/blkid  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS  -Werror-implicit-function-declaration    -O2 -pipe -march=native -fno-common -c -o menu-merge.o menu-merge.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -I../libmenu-cache -I../libmenu-cache -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include -pthread -I/usr/include/libmount -I/usr/include/blkid  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS  -Werror-implicit-function-declaration    -O2 -pipe -march=native -fno-common -c -o menu-compose.o menu-compose.c
/bin/sh ../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=native -fno-common  -Wl,-O1 -Wl,--as-needed -o menu-cache-gen main.o menu-merge.o menu-compose.o  -lgio-2.0 -lgobject-2.0 -lglib-2.0  -lfm-extra -lglib-2.0   
libtool: link: x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wl,-O1 -Wl,--as-needed -o menu-cache-gen main.o menu-merge.o menu-compose.o  -lgio-2.0 -lgobject-2.0 -lfm-extra -lglib-2.0
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: menu-merge.o:(.bss+0x8): multiple definition of `DirDirs'; main.o:(.bss+0x8): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: menu-merge.o:(.bss+0x10): multiple definition of `AppDirs'; main.o:(.bss+0x10): first defined here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-libressl_test-20200126-104546

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

  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)
  [5]   pypy3 (fallback)

Available Rust versions:
  [1]   rust-1.40.0 *
java-config:
The following VMs are available for generation-2:
Available Java Virtual Machines:
  (none found)
ghc:
The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Tue, 28 Jan 2020 06:06:24 +0000

emerge -qpvO lxde-base/menu-cache
[ebuild  N    ] lxde-base/menu-cache-1.1.0
Comment 1 Toralf Förster gentoo-dev 2020-01-28 18:31:09 UTC
Created attachment 606338 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-28 18:31:12 UTC
Created attachment 606340 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-28 18:31:15 UTC
Created attachment 606342 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-28 18:31:20 UTC
Created attachment 606344 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-28 18:31:23 UTC
Created attachment 606346 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-01-28 18:31:26 UTC
Created attachment 606348 [details]
lxde-base:menu-cache-1.1.0:20200128-064108.log
Comment 7 Toralf Förster gentoo-dev 2020-01-28 18:31:29 UTC
Created attachment 606350 [details]
temp.tbz2
Comment 8 Hanno Böck gentoo-dev 2020-01-28 18:43:59 UTC
Pull request in upstream repo:
https://github.com/lxde/menu-cache/pull/19

Upstream hasn't been active for a while so I guess we should just take that patch and add it to our ebuild.
Comment 9 Larry the Git Cow gentoo-dev 2020-01-28 18:48:39 UTC
The bug has been closed via the following commit(s):

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

commit a74fcbfb42c449c92d8cf451b915b0dfe7252318
Author:     Hanno Böck <hanno@gentoo.org>
AuthorDate: 2020-01-28 18:48:28 +0000
Commit:     Hanno Böck <hanno@gentoo.org>
CommitDate: 2020-01-28 18:48:28 +0000

    lxde-base/menu-cache: Fix -fno-common compilation.
    
    Patch from upstream pull request.
    
    Closes: https://bugs.gentoo.org/706884
    Signed-off-by: Hanno Böck <hanno@gentoo.org>
    Package-Manager: Portage-2.3.86, Repoman-2.3.20

 .../files/menu-cache-1.1.0-fno-common.diff         | 88 ++++++++++++++++++++++
 lxde-base/menu-cache/menu-cache-1.1.0.ebuild       |  6 +-
 2 files changed, 93 insertions(+), 1 deletion(-)