x86_64-pc-linux-gnu-gcc -I.. -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -o bbe bbe.o xmalloc.o buffer.o execute.o /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: buffer.o: in function `find_block': buffer.c:(.text+0x98d): undefined reference to `end_of_stream' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: buffer.c:(.text+0xcbf): undefined reference to `end_of_stream' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: buffer.c:(.text+0xcd1): undefined reference to `end_of_stream' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: execute.o: in function `execute_program': execute.c:(.text+0x17c4): undefined reference to `reset_rpos' ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop_plasma_systemd-j3-20210606-190645 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-11.1.0 * clang version 12.0.0 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/12/bin /usr/lib/llvm/12 12.0.0 Python 3.8.10 Available Ruby profiles: [1] ruby26 (with Rubygems) [2] ruby30 (with Rubygems) * Available Rust versions: [1] rust-bin-1.52.1 * The following VMs are available for generation-2: *) AdoptOpenJDK 8.292_p10 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-bin-8 system-vm The Glorious Glasgow Haskell Compilation System, version 8.10.4 [1] php7.3 * [2] php7.4 [3] php8.0 HEAD of ::gentoo commit 3d3ecf50e7d38a18dcc9fe1ece2f82f87f83214f Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Wed Jun 9 10:35:19 2021 +0000 2021-06-09 10:35:19 UTC emerge -qpvO dev-util/bbe [ebuild N ] dev-util/bbe-0.2.2-r1
Created attachment 714912 [details] emerge-info.txt
Created attachment 714915 [details] dev-util:bbe-0.2.2-r1:20210609-111416.log
Created attachment 714918 [details] emerge-history.txt
Created attachment 714921 [details] environment
Created attachment 714924 [details] etc.portage.tar.bz2
Created attachment 714927 [details] logs.tar.bz2
Created attachment 714930 [details] temp.tar.bz2
I have the same issue here: x86_64-pc-linux-gnu-gcc -I.. -march=broadwell -mtune=broadwell -mabm -maes -mrtm -Wl,-O1 -Wl,--as-needed -o bbe bbe.o xmalloc.o buffer.o execute.o /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: buffer.o: in function `find_block': buffer.c:(.text+0x98d): undefined reference to `end_of_stream' /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: buffer.c:(.text+0xcbf): undefined reference to `end_of_stream' /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: buffer.c:(.text+0xcd1): undefined reference to `end_of_stream' /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: execute.o: in function `execute_program': execute.c:(.text+0x17cc): undefined reference to `reset_rpos' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:347: bbe] Error 1 make[2]: Leaving directory '/var/tmp/portage/dev-util/bbe-0.2.2-r1/work/bbe-0.2.2/src' make[1]: *** [Makefile:370: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/dev-util/bbe-0.2.2-r1/work/bbe-0.2.2' make: *** [Makefile:311: all] Error 2 Was filling a bug and realize that this one was already open for several months... This ebuild is required as a dependency of zoom. I'm going to add build and emerge info in attachment.
Created attachment 751208 [details] build.log
Created attachment 751210 [details] emerge.info
Created attachment 751212 [details] emerge.pqv
An old issue was solved changing use flags: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=945da8f092da033504cc68c28784ed47b1476e45
(In reply to Samuel Bernardo from comment #12) > An old issue was solved changing use flags: > https://gitweb.gentoo.org/repo/gentoo.git/commit/ > ?id=945da8f092da033504cc68c28784ed47b1476e45 That's changing optimisation level instead.
(In reply to Samuel Bernardo from comment #10) > Created attachment 751210 [details] > emerge.info Why doesn't your CFLAGS have -O2 in it?
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f78650cb74ac5cfe2d73c8a9c35899dafee478f commit 8f78650cb74ac5cfe2d73c8a9c35899dafee478f Author: Sam James <sam@gentoo.org> AuthorDate: 2021-11-15 04:44:02 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-11-15 04:45:16 +0000 dev-util/bbe: fix build without optimisations Let's not bother trying to inline these -- the compiler is smart enough to do it if it wants to. They're not defined correctly right now if we wanted to keep them inline and this is far simpler. Closes: https://bugs.gentoo.org/795099 Signed-off-by: Sam James <sam@gentoo.org> dev-util/bbe/bbe-0.2.2-r1.ebuild | 14 ++-- dev-util/bbe/files/bbe-0.2.2-inline.patch | 133 ++++++++++++++++++++++++++++++ 2 files changed, 138 insertions(+), 9 deletions(-)