https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119625
Bug ID: 119625 Summary: lto1: fatal error: open failed: No such file or directory Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org Target Milestone: --- I'm seeing a really weird error with our distro gcc 15 snapshot (r15-9024) based: echo 'void foo (void) {}' > a.c; gcc -O2 -flto=auto -m32 -march=i686 -ffat-lto-objects -fhardened -o a.o -c a.c; gcc -O2 -flto=auto -m32 -march=i686 -r -o a.lo a.o lto1: fatal error: open failed: No such file or directory compilation terminated. lto-wrapper: fatal error: gcc returned 1 exit status compilation terminated. /usr/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status Seems the problem is that cat ./a.lo.lto.o-args.0 "" a.o (the "" is unexpected there). I wonder if this isn't related to (that part is reproduceable even with vanilla trunk) ./cc1 -quiet -m32 -march=i686 -O2 -flto=auto -ffat-lto-objects -fhardened -o a.s a.c producing .section .gnu.lto_.opts,"e",@progbits .string "'-fno-openmp' '-fno-openacc' '-fPIC' '' '-m32' '-march=i686' '-O2' '-flto=auto' '-ffat-lto-objects'" (note the '' in there).