[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
Wed Jan 8 23:54:30 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:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.6.2
Resolution:             |   Keywords:
      Port:  bison      |
------------------------+--------------------

Comment (by kencu):

 unfortunately
 {{{
 compiler.c_standard 2011
 }}}
 does not work on Tiger PPC, as you then later get this error:
 {{{
 In file included from lib/strverscmp.c:21:0:
 ./lib/libc-config.h:78:21: error: operator '%' has no left operand
  # define __WORDSIZE %%%
                      ^
 ./lib/libc-config.h:78:21: error: operator '%' has no left operand
  # define __WORDSIZE %%%
                      ^
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/59927#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list