Building with GCC on MacOS is not supported. Why do you need to use GCC?
The problem is that GCC is not compatible with system libraries or other libraries that have been compiled with Clang, that’s why you see all these std::basic_string
linking issues. Please just use Clang if you can.
For your reference: https://gcc.gnu.org/onlinedocs/libstdc%2B%2B/manual/using_dual_abi.html