Bootstrap (e.g. on i686-pc-linux-gnu) fails if the source directory is readonly (if the individual files are readonly, chmod -R a-w srcdir). To test this it suffices to "chmod a-w gcc/unwind-generic.h" then bootstrap, and it fails with
cp ../../gcc-mainline/gcc/unwind-generic.h include/unwind.h cp: cannot create regular file `include/unwind.h': Permission denied make[3]: *** [stmp-int-hdrs] Error 1 rm fsf-funding.pod gfdl.pod cpp.pod gpl.pod gcov.pod gcc.pod make[3]: Leaving directory `/home/jsm28/src/gcc-build/gcc' make[2]: *** [all-stage2-gcc] Error 2 make[2]: Leaving directory `/home/jsm28/src/gcc-build' make[1]: *** [stage2-bubble] Error 2 make[1]: Leaving directory `/home/jsm28/src/gcc-build' make: *** [bootstrap] Error 2 because the previously copied file is readonly. This appeared between revision 111294 and revision 111327 of trunk and is still present as of revision 111469. -- Summary: [4.2 Regression] bootstrap fails with readonly source directory Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jsm28 at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26478