https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622
--- Comment #10 from howarth at bromo dot med.uc.edu --- Note that removal of the "-undefined dynamic_lookup" produces... Undefined symbols for architecture x86_64: "__ZNKSt11logic_error4whatEv", referenced from: __ZTVSt11logic_error in libc++98convenience.a(stdexcept.o) __ZTVSt12domain_error in libc++98convenience.a(stdexcept.o) __ZTVSt16invalid_argument in libc++98convenience.a(stdexcept.o) __ZTVSt12length_error in libc++98convenience.a(stdexcept.o) __ZTVSt12out_of_range in libc++98convenience.a(stdexcept.o) "__ZNKSt7codecvtIcc11__mbstate_tE10do_unshiftERS0_PcS3_RS3_", referenced from: __ZTVSt7codecvtIcc11__mbstate_tE in libc++98convenience.a(codecvt.o) __ZTVSt14codecvt_bynameIcc11__mbstate_tE in libc++98convenience.a(locale-inst.o) "__ZNKSt7codecvtIcc11__mbstate_tE11do_encodingEv", referenced from: __ZTVSt7codecvtIcc11__mbstate_tE in libc++98convenience.a(codecvt.o) __ZTVSt14codecvt_bynameIcc11__mbstate_tE in libc++98convenience.a(locale-inst.o) "__ZNKSt7codecvtIcc11__mbstate_tE6do_outERS0_PKcS4_RS4_PcS6_RS6_", referenced from: __ZTVSt7codecvtIcc11__mbstate_tE in libc++98convenience.a(codecvt.o) __ZTVSt14codecvt_bynameIcc11__mbstate_tE in libc++98convenience.a(locale-inst.o) "__ZNKSt9type_info14__is_pointer_pEv", referenced from: __ZTVN10__cxxabiv117__array_type_infoE in libsupc++convenience.a(array_type_info.o) __ZTVN10__cxxabiv117__class_type_infoE in libsupc++convenience.a(class_type_info.o) __ZTVN10__cxxabiv116__enum_type_infoE in libsupc++convenience.a(enum_type_info.o) __ZTVN10__cxxabiv120__function_type_infoE in libsupc++convenience.a(function_type_info.o) __ZTVN10__cxxabiv123__fundamental_type_infoE in libsupc++convenience.a(fundamental_type_info.o) __ZTVN10__cxxabiv117__pbase_type_infoE in libsupc++convenience.a(pbase_type_info.o) __ZTVN10__cxxabiv129__pointer_to_member_type_infoE in libsupc++convenience.a(pmem_type_info.o) ... "__ZNSbIwSt11char_traitsIwESaIwEE12_S_constructIPwEES4_T_S5_RKS1_St20forward_iterator_tag.part.36", referenced from: __ZNSbIwSt11char_traitsIwESaIwEE12_S_constructIPwEES4_T_S5_RKS1_St20forward_iterator_tag in libc++11convenience.a(wstring-inst.o) "__ZNSs12_S_constructIPcEES0_T_S1_RKSaIcESt20forward_iterator_tag.part.34", referenced from: __ZNSs12_S_constructIPcEES0_T_S1_RKSaIcESt20forward_iterator_tag in libc++11convenience.a(string-inst.o) "__ZNSt15basic_streambufIcSt11char_traitsIcEE4syncEv", referenced from: __ZTVSt12strstreambuf in libc++98convenience.a(strstream.o) __ZTVSt15basic_stringbufIcSt11char_traitsIcESaIcEE in libc++11convenience.a(sstream-inst.o) __ZTVSt15basic_streambufIcSt11char_traitsIcEE in libc++11convenience.a(streambuf-inst.o) "__ZNSt15basic_streambufIcSt11char_traitsIcEE5imbueERKSt6locale", referenced from: __ZTVSt12strstreambuf in libc++98convenience.a(strstream.o) __ZTVN9__gnu_cxx18stdio_sync_filebufIcSt11char_traitsIcEEE in libc++11convenience.a(ext11-inst.o) __ZTVSt15basic_stringbufIcSt11char_traitsIcESaIcEE in libc++11convenience.a(sstream-inst.o) __ZTVSt15basic_streambufIcSt11char_traitsIcEE in libc++11convenience.a(streambuf-inst.o) "__ZNSt15basic_streambufIcSt11char_traitsIcEE6setbufEPcl", referenced from: __ZTVN9__gnu_cxx18stdio_sync_filebufIcSt11char_traitsIcEEE in libc++11convenience.a(ext11-inst.o) __ZTVSt15basic_streambufIcSt11char_traitsIcEE in libc++11convenience.a(streambuf-inst.o) "__ZNSt15basic_streambufIcSt11char_traitsIcEE7seekoffExSt12_Ios_SeekdirSt13_Ios_Openmode", referenced from: __ZTVSt15basic_streambufIcSt11char_traitsIcEE in libc++11convenience.a(streambuf-inst.o) "__ZNSt15basic_streambufIcSt11char_traitsIcEE7seekposESt4fposI11__mbstate_tESt13_Ios_Openmode", referenced from: __ZTVSt15basic_streambufIcSt11char_traitsIcEE in libc++11convenience.a(streambuf-inst.o) "__ZNSt15basic_streambufIcSt11char_traitsIcEE8overflowEi", referenced from: __ZTVSt15basic_streambufIcSt11char_traitsIcEE in libc++11convenience.a(streambuf-inst.o) "__ZNSt15basic_streambufIcSt11char_traitsIcEE9pbackfailEi", referenced from: __ZTVSt15basic_streambufIcSt11char_traitsIcEE in libc++11convenience.a(streambuf-inst.o) "__ZNSt15basic_streambufIcSt11char_traitsIcEE9showmanycEv", referenced from: __ZTVSt12strstreambuf in libc++98convenience.a(strstream.o) __ZTVN9__gnu_cxx18stdio_sync_filebufIcSt11char_traitsIcEEE in libc++11convenience.a(ext11-inst.o) __ZTVSt15basic_streambufIcSt11char_traitsIcEE in libc++11convenience.a(streambuf-inst.o) "__ZNSt15basic_streambufIcSt11char_traitsIcEE9underflowEv", referenced from: __ZTVSt15basic_streambufIcSt11char_traitsIcEE in libc++11convenience.a(streambuf-inst.o) "__ZNSt15basic_streambufIwSt11char_traitsIwEE9pbackfailEi", referenced from: __ZTVSt15basic_streambufIwSt11char_traitsIwEE in libc++11convenience.a(streambuf-inst.o) "__ZTCSt9strstream16_So", referenced from: __ZNSt9strstreamC1Ev in libc++98convenience.a(strstream.o) __ZNSt9strstreamC1EPciSt13_Ios_Openmode in libc++98convenience.a(strstream.o) __ZTTSt9strstream in libc++98convenience.a(strstream.o)