Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 795099 - dev-util/bbe-0.2.2-r1: breaks with no optimisation (buffer.c:(.text+<snip>): undefined reference to end_of_stream)
Summary: dev-util/bbe-0.2.2-r1: breaks with no optimisation (buffer.c:(.text+<snip>): ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Daniel Pielmeier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-09 14:30 UTC by Toralf Förster
Modified: 2021-11-15 04:45 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.37 KB, text/plain)
2021-06-09 14:30 UTC, Toralf Förster
Details
dev-util:bbe-0.2.2-r1:20210609-111416.log (dev-util:bbe-0.2.2-r1:20210609-111416.log,9.72 KB, text/plain)
2021-06-09 14:30 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,154.69 KB, text/plain)
2021-06-09 14:30 UTC, Toralf Förster
Details
environment (environment,84.35 KB, text/plain)
2021-06-09 14:30 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,17.14 KB, application/x-bzip)
2021-06-09 14:30 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,5.40 KB, application/x-bzip)
2021-06-09 14:30 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,23.19 KB, application/x-bzip)
2021-06-09 14:31 UTC, Toralf Förster
Details
build.log (build.log,9.78 KB, text/plain)
2021-11-15 04:24 UTC, Samuel Bernardo
Details
emerge.info (emerge.info,9.18 KB, text/plain)
2021-11-15 04:25 UTC, Samuel Bernardo
Details
emerge.pqv (emerge.pqv,216 bytes, text/plain)
2021-11-15 04:25 UTC, Samuel Bernardo
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-06-09 14:30:52 UTC
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
Comment 1 Toralf Förster gentoo-dev 2021-06-09 14:30:53 UTC
Created attachment 714912 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-06-09 14:30:54 UTC
Created attachment 714915 [details]
dev-util:bbe-0.2.2-r1:20210609-111416.log
Comment 3 Toralf Förster gentoo-dev 2021-06-09 14:30:56 UTC
Created attachment 714918 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-06-09 14:30:57 UTC
Created attachment 714921 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-06-09 14:30:58 UTC
Created attachment 714924 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-06-09 14:30:59 UTC
Created attachment 714927 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-06-09 14:31:01 UTC
Created attachment 714930 [details]
temp.tar.bz2
Comment 8 Samuel Bernardo 2021-11-15 04:23:57 UTC
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.
Comment 9 Samuel Bernardo 2021-11-15 04:24:45 UTC
Created attachment 751208 [details]
build.log
Comment 10 Samuel Bernardo 2021-11-15 04:25:03 UTC
Created attachment 751210 [details]
emerge.info
Comment 11 Samuel Bernardo 2021-11-15 04:25:19 UTC
Created attachment 751212 [details]
emerge.pqv
Comment 12 Samuel Bernardo 2021-11-15 04:28:51 UTC
An old issue was solved changing use flags:
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=945da8f092da033504cc68c28784ed47b1476e45
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-15 04:35:35 UTC
(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.
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-15 04:35:56 UTC
(In reply to Samuel Bernardo from comment #10)
> Created attachment 751210 [details]
> emerge.info

Why doesn't your CFLAGS have -O2 in it?
Comment 15 Larry the Git Cow gentoo-dev 2021-11-15 04:45:27 UTC
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(-)