When using Fedora's containers, LTO appears to be broken. I'm not sure
who to report this to, the container builder or gcc.
$ podman run --pull=always --rm -it
registry.fedoraproject.org/fedora:rawhide
# dnf install -y gcc
# echo 'int main(void) { int class=0; return class; }' > sanitycheck.c
# gcc -flto=auto sanitycheck.c -o sanitycheck
lto-wrapper: fatal error: execvp: No such file or directory
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
The test file is what Meson compiles as a check. This also fails on
fedora:33. For good measure, you can throw in a `dnf update -y`, but
it does not update/fix anything.
Running a similar check in `mock -r fedora-rawhide-x86_64` --shell works fine.
--
Elliott