https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82824
--- Comment #8 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> --- > --- Comment #7 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- >> I've now submitted the patch upstream: https://reviews.llvm.org/D39888. > > This patch allowed to bootstrap gcc on darwin10, but running the test suite > gave me ~2500 asan failures (gcc/g++, -m32/-m64) of the kind > > dyld: Symbol not found: _strndup > Referenced from: /opt/gcc/gcc8w/lib/libasan.5.dylib > Expected in: flat namespace > in /opt/gcc/gcc8w/lib/libasan.5.dylib > Trace/BPT trap It seems there's no point in trying: compiler-rt's cmake/config-ix.cmake requires Mac OS X 10.7/Darwin 11 and up for the sanitizers. I guess all we can do is disable them (or perhaps only asan) in the gcc tree (libsanitizer/configure.tgt). Rainer