https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110844
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Last reconfirmed| |2023-07-28 Status|UNCONFIRMED |NEW Keywords| |link-failure --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The file that is being tried to open is: [pid 1299400] openat(AT_FDCWD, "/tmp/ -v -shared-libgcc -mtune=generic -march=x86-64 -dumpdir /tmp/lto_wrapper_args", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 ENOENT (No such file or directory) COLLECT_GCC_OPTIONS='-flto' '-save-temps' '-dumpdir' '/tmp/' '-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64' '-dumpdir' '/tmp/' The code in lto-plugin/lto-plugin.c:1614 does not handle the case where there are 2 -dumpdir option.