https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65015
--- Comment #2 from conchur at web dot de --- Created attachment 34724 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34724&action=edit Mini Testcases Current results (the -COMPILE things are just out of curiosity): SIMPLE-COMPILE: OK SIMPLE-LINK: OK LTO-COMPILE: FAIL LTO-LINK: FAIL LTO-OBJDUMP: OK LTO-EXTERNAL-DEBUG: FAIL LTO-STRIP-LINK: FAIL LTO-STRIP-EXTERNAL-DEBUG: FAIL LTO-BUILDID-LINK: FAIL LTO-SAVETEMPS-LINK: OK LTO-SAVETEMPS-EXTERNAL-DEBUG: OK The -save-temps was a suggestion by Jérémy Bobbio and shows that there is still a problem with the random file names when trying to use LTO to create reproducible builds. At least for the simple one file case