[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 19:23:46 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):

 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
 }}}

 It's looking simpler, perhaps, to just require a newer c compiler with
 {{{
 compiler.c_standard 2011
 }}}

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


More information about the macports-tickets mailing list