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>.
Thanks for diagnosing the problem. I installed a patch into Gnulib which
I hope fixes it:
https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=f5756b919addb9e8ce03f4e61a10e4fcff14874a
and propagated that patch into Bison master. Please give it a try
without the -W workarounds; if that works, we can remove the -W
workarounds for Bison.