macOS build `buildtools` failed

I was build builttools as this page Compiling for x86_64, and I also sew this page: Building Haiku on Mac OS X 10.10 Yosemite.

They both have the same error:

In file included from /Volumes/haiku/buildtools/gcc/gcc/auto-profile.c:25:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/map:446:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:1408:2: error: no member named 'fancy_abort' in
      namespace 'std::__1'; did you mean simply 'fancy_abort'?
        _VSTD::abort();
        ^~~~~~~

Do I have some error? How could I slove it?

I had another problem with MacOS clang earlier in the year and subsequently built in docker before resorting to just using rsync to move the source changes over to a Haiku VM to build.

For the ‘fancy_abort’ problem, I have filed a bug report with a patch to buildtools here: https://dev.haiku-os.org/ticket/14106

The patch is derived from this FreeBSD bug report:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216266

– Rob