Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 801172 - media-libs/dav1d: broken with lto (at least clang+lto)
Summary: media-libs/dav1d: broken with lto (at least clang+lto)
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Luca Barbato
Depends on:
Blocks: lto
  Show dependency tree
Reported: 2021-07-08 08:35 UTC by Joonas Niilola
Modified: 2021-08-25 02:18 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Joonas Niilola gentoo-dev 2021-07-08 08:35:53 UTC
All versions of dav1d in-tree currently seems broken with lto,
0.9.0, 0.8.2, 0.8.0

Using clang+lto might be relevant. Clang+no-lto works.

No clue about gcc+lto.
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2021-07-08 08:38:55 UTC
Probably a dupe of bug #791544. Tl;DR is: dav1d greps raw ELF to detect platform properties.
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2021-07-08 08:40:00 UTC
Ah, your link is about runtime failures. Never mind me.
Comment 3 Joonas Niilola gentoo-dev 2021-07-08 09:11:53 UTC
Yes, it compiles fine, but runtime segfaults. The link seems to state that gcc+lto is fine too, so it's somehow clang+lto related.
Comment 4 Joonas Niilola gentoo-dev 2021-07-10 16:34:17 UTC
Seems like +clang -lto works fine. So I suggest to check if tc-is-clang && is-flagq "-flto*" -> strip lto out with filter-flags "-flto*", and post some elog to user about it. 

Since the breakage happens in runtime, and not in build-time.