https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62157
Bug ID: 62157 Summary: make distclean error when libsanitizer is configured not to build 'tsan' Product: gcc Version: 4.9.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: Explorer09 at gmail dot com CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org Tested on GCC 4.9.1. (Host OS is Ubuntu 12.04.5 32-bit) To reproduce: 1. Have a 32-bit operating system (or something that makes ac_cv_sizeof_void_p!=8 ) 2. mkdir libsanitizer-build ; cd libsanitizer-build 3. ../gcc-4.9.1/libsanitizer/configure --disable-multilib (I know libsanitizer isn't meant to be configured this way, but I do this just to demonstrate the error.) Now notice that tsan/Makefile won't be generated. 4. make distclean Actual result is something like this: -------------- Making distclean in tsan /bin/bash: line 26: cd: tsan: No such file or directory make[2]: *** [distclean-recursive] Error 1 make[2]: Leaving directory `/home/explorer/toolchain/gcc-build/i486-pc-linux-gnu/libsanitizer' make[1]: *** [distclean-target-libsanitizer] Error 1 make[1]: Leaving directory `/home/explorer/toolchain/gcc-build' make: *** [do-distclean] Error 2 -------------- I have to use "make -k distclean" to workaround problem like this when building a cross-GCC.