Failure During Building

Iain Sandoe
Fri Feb 17 16:03:59 GMT 2023

> On 17 Feb 2023, at 15:37, Jonathan Wakely via Gcc <> wrote:
> On Fri, 17 Feb 2023, 15:17 -xlan- via Gcc, <> wrote:
>> I was building gcc version 4.9.1
> Why?

Indeed, what is the use-case?
trying to build such an old GCC version on modern macOS could be problematic.

> 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.

There are no headers for libstdc++ in SDKs for OSX 10.13 + (so you would need also to find an
older SDK and then build with an OSX target of say 10.12).

What you are trying to do is going to required quite advanced techniques to deal with the difference in the OS, compiler and bootstrap tools.  I have not attempted anything < GCC-5 on newer machines.


More information about the Gcc mailing list