[MacPorts] #59927: bison @3.5 does not build with older gcc versions (gcc-4.2 and similar) because "#pragma GCC diagnostic not allowed inside functions"
MacPorts
noreply at macports.org
Sun Apr 5 06:26:04 UTC 2020
#59927: bison @3.5 does not build with older gcc versions (gcc-4.2 and similar)
because "#pragma GCC diagnostic not allowed inside functions"
------------------------+--------------------
Reporter: ballapete | Owner: kencu
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.6.2
Resolution: fixed | Keywords:
Port: bison |
------------------------+--------------------
Comment (by kencu):
when I force the compiler to gcc7, it gets past the redefinition error,
but still has the WORDSIZE error (which is a deficiency in the Tiger
stdint.h header):
{{{
lib/strverscmp.c
In file included from lib/strverscmp.c:21:0:
./lib/libc-config.h:87:21: error: operator '%' has no left operand
# define __WORDSIZE %%%
^
./lib/libc-config.h:87:21: error: operator '%' has no left operand
# define __WORDSIZE %%%
^
make: *** [Makefile:6630: lib/libbison_a-strverscmp.o] Error 1
}}}
--
Ticket URL: <https://trac.macports.org/ticket/59927#comment:30>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list