[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
Thu Jan 9 09:21:13 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 jmroot):

 Replying to [comment:5 kencu]:
 > Even if that is fixed, the test suite for `bison` won't run, due to
 other errors related to older gcc versions:
 > {{{
 > /usr/bin/llvm-gcc-4.2 -std=gnu99 -DEXEEXT=\"\"   -I./examples/c/reccalc
 -I./examples/c/reccalc -I/opt/local/include  -pipe -Os -arch x86_64 -MT
 examples/c/reccalc/reccalc-parse.o -MD -MP -MF examples/c/reccalc/.deps
 /reccalc-parse.Tpo -c -o examples/c/reccalc/reccalc-parse.o `test -f
 'examples/c/reccalc/parse.c' || echo './'`examples/c/reccalc/parse.c
 > In file included from examples/c/reccalc/parse.c:1678:
 > examples/c/reccalc/scan.h:112: error: redefinition of typedef 'yyscan_t'
 > examples/c/reccalc/parse.c:117: error: previous declaration of
 'yyscan_t' was here
 > make[3]: *** [examples/c/reccalc/reccalc-parse.o] Error 1
 > }}}

 Please report this upstream; it's clearly a bug to be both redefining
 typedefs and building with `-std=gnu99`.

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


More information about the macports-tickets mailing list