#14106 closed bug (fixed)

Compiling buildtools on macOS hits 'fancy_abort()' error.

Reported by: robg2 Owned by: bonefish
Priority: normal Milestone: Unscheduled
Component: Build System Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: yes Platform: All


As reported on the forum here: https://discuss.haiku-os.org/t/macos-build-buildtools-failed, compiling buildtools on recent macOS versions hits this 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'?

This appears to be a bug in gcc5.4.0. FreeBSD has a patch available here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216266

The attached patch applies these fixes to buildtools repository. I think this is fixed in gcc 5.5 and later.

Attachments (1)

0001-Apply-patch-to-fix-fancy_abort-error-on-macOS.patch (1.4 KB ) - added by robg2 21 months ago.
Apply FreeBSD 'fancy_abort' fixes to buildtools.

Download all attachments as: .zip

Change History (2)

by robg2, 21 months ago

Apply FreeBSD 'fancy_abort' fixes to buildtools.

comment:1 by pulkomandy, 19 months ago

Resolution: fixed
Status: newclosed

We have since updated to GCC7, which already fixes these problems.

Note: See TracTickets for help on using tickets.