https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97865
--- Comment #21 from Iain Sandoe <iains at gcc dot gnu.org> --- (In reply to Jürgen Reuter from comment #16) > (In reply to Iain Sandoe from comment #15) > > (In reply to Jürgen Reuter from comment #14) > (4) I checked that on my system there is an older version of libasan > installed. > I thought this comes with every gcc installation, but apparently it > doesn't. Or do I have to build with a special sanitizer flag? The branch contains a patch to enable libsanitizer for darwin20 (libsanitizer *is* built with dynamic_lookup, because it uses undefined weak symbols). So long as the initial configure says that libsanitizer is being built (or rather it doesn't say it's disabled) then it should be present. ** Perhaps the problem are coming primarily from the failed install because of the no-pie issue. I am going to investigate this next. With the last patch on the branch, it would be academic for libgfortran to be built with "undefined, dynamic_lookup" since there are *no* undefined symbols. since DYLD_LIBRARY_PATH no longer works for Darwin, a failed install will no doubt produce a failed test. Will post more when I figure out what's happening with the no-pie issue. In the meantime - you could try a bootstrap with CC/CXX set to a darwin19 gcc 7 or newer (if it's possible).