Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830101 - sys-devel/bc-1.07.1[libedit] - /.../ld: bc.o:(.bss+<snip>): multiple definition of histev; main.o:(.bss+<snip>): first defined here
Summary: sys-devel/bc-1.07.1[libedit] - /.../ld: bc.o:(.bss+<snip>): multiple definiti...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: -fno-common
  Show dependency tree
 
Reported: 2021-12-27 10:47 UTC by Toralf Förster
Modified: 2022-09-09 08:20 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,14.80 KB, text/plain)
2021-12-27 10:47 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,2.75 KB, text/plain)
2021-12-27 10:47 UTC, Toralf Förster
Details
environment (environment,92.20 KB, text/plain)
2021-12-27 10:47 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,11.24 KB, application/x-bzip)
2021-12-27 10:47 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,17.75 KB, application/x-bzip)
2021-12-27 10:47 UTC, Toralf Förster
Details
sys-devel:bc-1.07.1-r3:20211227-092455.log (sys-devel:bc-1.07.1-r3:20211227-092455.log,15.01 KB, text/plain)
2021-12-27 10:47 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,23.61 KB, application/x-bzip)
2021-12-27 10:47 UTC, Toralf Förster
Details
bc-libedit.log (bc-libedit.log,12.53 KB, text/x-log)
2022-02-25 01:57 UTC, unhappy-ending
Details
bc-no-libedit.log (bc-no-libedit.log,10.47 KB, text/x-log)
2022-02-25 01:59 UTC, unhappy-ending
Details

Note You need to log in before you can comment on or make changes to this bug.
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