Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 708632 - sys-libs/musl-nscd-1.0.2 : fails to build with -fno-common or gcc-10
Summary: sys-libs/musl-nscd-1.0.2 : 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: Anthony Basile
URL: https://github.com/pikhq/musl-nscd/pu...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: -fno-common
  Show dependency tree
 
Reported: 2020-02-07 18:21 UTC by Toralf Förster
Modified: 2020-12-28 15:17 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,16.77 KB, text/plain)
2020-02-07 18:21 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,229.88 KB, text/plain)
2020-02-07 18:21 UTC, Toralf Förster
Details
environment (environment,57.68 KB, text/plain)
2020-02-07 18:21 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,16.92 KB, application/x-bzip)
2020-02-07 18:21 UTC, Toralf Förster
Details
sys-libs:musl-nscd-1.0.2:20200207-042239.log (sys-libs:musl-nscd-1.0.2:20200207-042239.log,11.73 KB, text/plain)
2020-02-07 18:21 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,16.20 KB, application/x-bzip)
2020-02-07 18:21 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-07 18:21:03 UTC
x86_64-pc-linux-gnu-gcc -std=c99 -fexcess-precision=standard -D_XOPEN_SOURCE=700 -I./include -Iobj/include  -pipe -fomit-frame-pointer -ffunction-sections -fdata-sections -Werror=implicit-function-declaration -Werror=implicit-int -Werror=pointer-sign -Werror=pointer-arith -O2 -pipe -march=native -fno-common -c -o obj/src/socket_handle.o src/socket_handle.c
x86_64-pc-linux-gnu-gcc -std=c99 -fexcess-precision=standard -D_XOPEN_SOURCE=700 -I./include -Iobj/include  -pipe -fomit-frame-pointer -ffunction-sections -fdata-sections -Werror=implicit-function-declaration -Werror=implicit-int -Werror=pointer-sign -Werror=pointer-arith -O2 -pipe -march=native -fno-common -c -o obj/src/swap32.o src/swap32.c
x86_64-pc-linux-gnu-gcc -std=c99 -fexcess-precision=standard -D_XOPEN_SOURCE=700 -I./include -Iobj/include  -pipe -fomit-frame-pointer -ffunction-sections -fdata-sections -Werror=implicit-function-declaration -Werror=implicit-int -Werror=pointer-sign -Werror=pointer-arith -O2 -pipe -march=native -fno-common -c -o obj/src/write_val.o src/write_val.c
x86_64-pc-linux-gnu-gcc -Wl,--gc-sections -Wl,-O1 -Wl,--as-needed obj/port/gr_passwd.o obj/port/pw_gecos.o obj/port/pw_passwd.o obj/src/asprintf.o obj/src/die.o obj/src/full_read.o obj/src/full_write.o obj/src/hash.o obj/src/list.o obj/src/main.o obj/src/nsswitch.tab.o obj/src/nsswitch.yy.o obj/src/program_invocation_name.o obj/src/socket_handle.o obj/src/swap32.o obj/src/write_val.o -lpthread -ldl -o obj/nscd
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: obj/src/socket_handle.o:(.bss.passwd_mods+0x0): multiple definition of `passwd_mods'; obj/src/main.o:(.bss.passwd_mods+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: obj/src/socket_handle.o:(.bss.group_mods+0x0): multiple definition of `group_mods'; obj/src/main.o:(.bss.group_mods+0x0): first defined here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no-multilib_hardened-libressl-20200202-054030

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

  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.6
  [3]   python3.7 (fallback)
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.41.0 *


ghc:
The Glorious Glasgow Haskell Compilation System, version 8.0.2

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

emerge -qpvO sys-libs/musl-nscd
[ebuild  N    ] sys-libs/musl-nscd-1.0.2  USE="-minimal"
Comment 1 Toralf Förster gentoo-dev 2020-02-07 18:21:06 UTC
Created attachment 612470 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-02-07 18:21:09 UTC
Created attachment 612472 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-02-07 18:21:11 UTC
Created attachment 612474 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-02-07 18:21:14 UTC
Created attachment 612476 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-02-07 18:21:17 UTC
Created attachment 612478 [details]
sys-libs:musl-nscd-1.0.2:20200207-042239.log
Comment 6 Toralf Förster gentoo-dev 2020-02-07 18:21:20 UTC
Created attachment 612480 [details]
temp.tbz2
Comment 7 Larry the Git Cow gentoo-dev 2020-12-28 15:17:42 UTC
The bug has been closed via the following commit(s):

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

commit 2c78de9033cf97213ddd4983b04df2eef995fc39
Author:     Jakov Smolic <jakov.smolic@sartura.hr>
AuthorDate: 2020-12-28 15:17:11 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2020-12-28 15:17:11 +0000

    sys-libs/musl-nscd: Fix build with gcc-10
    
    Closes: https://github.com/gentoo/gentoo/pull/18635
    Closes: https://bugs.gentoo.org/708632
    Package-Manager: Portage-3.0.9, Repoman-3.0.1
    Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
    Signed-off-by: David Seifert <soap@gentoo.org>

 .../files/musl-nscd-1.0.2-fno-common.patch         | 36 ++++++++++++++++++++++
 sys-libs/musl-nscd/musl-nscd-1.0.2.ebuild          |  6 ++--
 2 files changed, 40 insertions(+), 2 deletions(-)