Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 854870 - app-shells/nushell-0.64.0 fails to compile: undefined reference to LZ4_compress_fast
Summary: app-shells/nushell-0.64.0 fails to compile: undefined reference to LZ4_compre...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Zac Medico
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-28 14:25 UTC by Agostino Sarubbo
Modified: 2024-03-03 05:10 UTC (History)
1 user (show)

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


Attachments
build.log.xz (build.log.xz,64.36 KB, application/x-xz)
2022-06-28 14:25 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-06-28 14:25:21 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-shells/nushell-0.64.0 fails to compile (lto).
Discovered on: amd64 (internal ref: lto_tinderbox)

NOTE:
This machine uses lto with CFLAGS=-flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing
Comment 1 Agostino Sarubbo gentoo-dev 2022-06-28 14:25:23 UTC
Created attachment 788498 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Eli Schwartz 2024-02-29 21:29:16 UTC
As far as I can tell this is totally unrelated to LTO. Also, it compiles fine right now.
Comment 3 Agostino Sarubbo gentoo-dev 2024-03-01 08:05:02 UTC
For unknown reasons, at that time I was asked to block bug 618550 for each issue from lto_tinderbox. The same applies to all bugs that block bug 618550 that looks to be unrelated to lto
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-01 08:16:47 UTC
I think this was fixed by us adding filter-lto to cargo.eclass.
Comment 5 Eli Schwartz 2024-03-03 05:10:06 UTC
Okay so apparently this is actually about bug 893658 which isn't really an LTO bug.

It's just that when you have LTO, rustc doesn't know how to read gcc bytecode (and apparently it works fine with clang? maybe?) so it just cannot find code, period.