On Fri, 17 Feb 2023, 15:17 -xlan- via Gcc, wrote: > I was building gcc version 4.9.1 Why? on Mac OS version when I got this error: > > In file included from ../../gcc-4.9.1/gcc/c/c-objc-common.c:33: > In file included from > > /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/new:93: > > /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/exception:184:5: > error: no member named 'fancy_abort' in namespace 'std::__1'; did you mean > simply 'fancy_abort'? > _VSTD::abort(); > ^~~~~~~ > The GCC sources define 'abort' as a macro, which appears to be incompatible with LLVM's libc++. You might be able to compile using -stdlib=libstdc++ instead. /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:858:15: > note: expanded from macro '_VSTD' > #define _VSTD std::_LIBCPP_ABI_NAMESPACE > ^ > ../../gcc-4.9.1/gcc/system.h:685:13: note: 'fancy_abort' declared here > extern void fancy_abort (const char *, int, const char *) > ATTRIBUTE_NORETURN; > ^ > 1 error generated. > make[1]: *** [c/c-objc-common.o] Error 1 > make: *** [all-gcc] Error 2 > > Mac OS: Monterey 12.6.4 >