https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103230
--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> --- > How do you build ubsan compiler? F="-O0 -g -fsanitize=undefined" ; make -j16 all-host -k CFLAGS="$F" CXXFLAGS="$F" LDFLAGS="$F" is the fastest approach.