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/
/Applications/ error: no member named 'fancy_abort' in
      namespace 'std::__1'; did you mean simply 'fancy_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:

The patch is derived from this FreeBSD bug report:

– Rob