Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 830101

Summary: sys-devel/bc-1.07.1[libedit] - /.../ld: bc.o:(.bss+<snip>): multiple definition of histev; main.o:(.bss+<snip>): first defined here
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: CONFIRMED ---    
Severity: normal CC: musl, unhappy-ending
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
sys-devel:bc-1.07.1-r3:20211227-092455.log
temp.tar.bz2
bc-libedit.log
bc-no-libedit.log

Description Toralf Förster gentoo-dev 2021-12-27 10:47:19 UTC
too long lines were shrinked:

make[3]: Entering directory '/var/tmp/portage/sys-devel/bc-1.07.1-r3/work/bc-1.07.1/bc'
x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I..  -I. -I./../h  -pipe -march=native -fno-diagnostics-color -O2 -Wall -funsigned-char -pipe -march=native -fno-diagnostics-color -O2 -Wall -funsigned-char -c -o global.o global.c
make[3]: Leaving directory '/var/tmp/portage/sys-devel/bc-1.07.1-r3/work/bc-1.07.1/bc'
x86_64-gentoo-linux-musl-gcc -pipe -march=native -fno-diagnostics-color -O2 -Wall -funsigned-char -pipe -march=native -fno-diagnostics-color -O2 -Wall -funsigned-char  -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -o libmath.h -o fbc main.o bc.o scan.o execute.o load.o storage.o ut
/usr/lib/gcc/x86_64-gentoo-linux-musl/11.2.0/../../../../x86_64-gentoo-linux-musl/bin/ld: bc.o:(.bss+0x20): multiple definition of `histev'; main.o:(.bss+0x10): first defined here
/usr/lib/gcc/x86_64-gentoo-linux-musl/11.2.0/../../../../x86_64-gentoo-linux-musl/bin/ld: bc.o:(.bss+0x30): multiple definition of `hist'; main.o:(.bss+0x20): first defined here
/usr/lib/gcc/x86_64-gentoo-linux-musl/11.2.0/../../../../x86_64-gentoo-linux-musl/bin/ld: bc.o:(.bss+0x38): multiple definition of `edit'; main.o:(.bss+0x28): first defined here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl_hardened-j4-20211227-095715

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-11.2.0 *
Python 3.9.9
php cli:

  HEAD of ::gentoo
commit 7da8804145297276710c70f0af844797ebd0f362
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Dec 27 08:51:50 2021 +0000

    2021-12-27 08:51:48 UTC

emerge -qpvO sys-devel/bc
[ebuild  N    ] sys-devel/bc-1.07.1-r3  USE="libedit -readline -static"
Comment 1 Toralf Förster gentoo-dev 2021-12-27 10:47:20 UTC
Created attachment 760569 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-12-27 10:47:21 UTC
Created attachment 760570 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-12-27 10:47:22 UTC
Created attachment 760571 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-12-27 10:47:23 UTC
Created attachment 760572 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-12-27 10:47:24 UTC
Created attachment 760573 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-12-27 10:47:25 UTC
Created attachment 760574 [details]
sys-devel:bc-1.07.1-r3:20211227-092455.log
Comment 7 Toralf Förster gentoo-dev 2021-12-27 10:47:26 UTC
Created attachment 760575 [details]
temp.tar.bz2
Comment 8 unhappy-ending 2022-02-25 01:54:21 UTC
This seems to happen when setting the libedit USE flag. I'm on a glibc system using the Clang/LLVM toolchain and this error happens for me, too. bc with USE="-libedit" works fine though.

Attaching build logs.
Comment 9 unhappy-ending 2022-02-25 01:57:01 UTC
Created attachment 765791 [details]
bc-libedit.log

glibc system with USE="libedit" enabled for bc build log
Comment 10 unhappy-ending 2022-02-25 01:59:24 UTC
Created attachment 765792 [details]
bc-no-libedit.log
Comment 11 Toralf Förster gentoo-dev 2022-08-09 19:12:41 UTC
happened at 17.1_desktop-j4-20220809-180005  too