bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error compiling bison 3.4.2 on Solaris


From: Hans Åberg
Subject: Re: Error compiling bison 3.4.2 on Solaris
Date: Wed, 23 Oct 2019 23:30:54 +0200

> On 23 Oct 2019, at 22:45, Paul Eggert <address@hidden> wrote:
> 
> On 10/22/19 11:08 PM, Akim Demaille wrote:
> 
>> /opt/local/lib/gcc9/gcc/x86_64-apple-darwin18/9.2.0/include-fixed/os/base.h
>> ...
>> #ifndef __has_builtin
>> #define __has_builtin(x) 0
>> #endif
> rg/bugzilla/show_bug.cgi?id=66970
>> ... GCC folks want to emulate that compiler.  By emasculating theirs.
> 
> Actually, the GCC installation procedure derives its os/base.h from macOS's, 
> so this problem is due to Apple: they don't particularly want you to use GCC, 
> and they are in effect emasculating GCC in their <os/base.h>.

On MacOS 10.14, the system headers in /usr/include are removed, so I had to use 
for C++, with g++ and gcc set to the real ones,
../mli-root/configure CXX=g++ CXXFLAGS=-g CC=gcc CFLAGS=-g CPPFLAGS="-isysroot 
$(xcrun --show-sdk-path) -I /usr/local/include" LDFLAGS="-L /usr/local/lib”





reply via email to

[Prev in Thread] Current Thread [Next in Thread]