> On 17 Feb 2023, at 15:37, Jonathan Wakely via Gcc <gcc@gcc.gnu.org> wrote:
>
> On Fri, 17 Feb 2023, 15:17 -xlan- via Gcc, <gcc@gcc.gnu.org> 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.
Iain