Description of problem: While trying to debug the FTBFS for libmodulemd on Rawhide, I discovered that Meson is reporting the error 'Compiler cc can not compile programs.' Manually executing the command-line it's running gives me the output I pasted in "Additional info" below. Version-Release number of selected component (if applicable): gcc-10.2.1-1.fc33.x86_64 binutils-2.35-10.fc33.x86_64 redhat-rpm-config-166-1.fc33.noarch How reproducible: Every time Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: sanitycheckc.c: `int main() { int class=0; return class; }` ``` gcc /builddir/x86_64-redhat-linux-gnu/meson-private/sanitycheckc.c -o /builddir/x86_64-redhat-linux-gnu/meson-private/sanitycheckc.exe -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pipe -D_FILE_OFFSET_BITS=64 -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld 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 ``` Also, just to be sure, I tried: ``` gcc /builddir/x86_64-redhat-linux-gnu/meson-private/sanitycheckc.c -o /builddir/x86_64-redhat-linux-gnu/meson-private/sanitycheckc.exe -flto=auto -ffat-lto-objects 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 ``` and without LTO flags: ``` gcc /builddir/x86_64-redhat-linux-gnu/meson-private/sanitycheckc.c -o /builddir/x86_64-redhat-linux-gnu/meson-private/sanitycheckc.exe -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pipe -D_FILE_OFFSET_BITS=64 -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ``` which compiles successfully.
This bug appears to have been reported against 'rawhide' during the Fedora 33 development cycle. Changing version to 33.
This is a duplicate of bug 1823349.
*** This bug has been marked as a duplicate of bug 1823349 ***