https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82610
Bug ID: 82610
Summary: Bootstrap fails on macOS 10.13 because of abort
redefinition
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: fxcoudert at gcc dot gnu.org
Target Milestone: ---
At some point we should simply stop redefining abort in system.h, since it
creates endless issues with system headers :(
Bootstrap currently fails on darwin because gcc/unique-ptr-tests.cc includes
include/unique-ptr.h, which includes <memory>, which uses abort internally...
while gcc/system.h (which has been included before those) redefines abort to
fancy_abort.
Fix is to include <memory> in system.h:
Index: gcc/system.h
===================================================================
--- gcc/system.h (revision 253855)
+++ gcc/system.h (working copy)
@@ -233,6 +233,7 @@ extern int errno;
# include <vector>
#endif
# include <cstring>
+# include <memory>
# include <new>
# include <utility>
#endif