https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87880
--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> Weird: can you check where the definition of
> ___cxa_rethrow_primary_exception is coming from in your case? On my
> 10.14.2 Beta1 system, I only found it in libc++abi.1.dylib.
I see
% nm x86_64-apple-darwin18.2.0/libsanitizer/asan/.libs/libasan.5.dylib | grep
cxa_rethrow_primary_exception
00000000000c73b0 s __ZL44substitution___cxa_rethrow_primary_exception
U ___cxa_rethrow_primary_exception
0000000000018170 t _wrap___cxa_rethrow_primary_exception