[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:20:00 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 the compiler gcc-4.2 is used, there still is a redefinition error
 here when building the tests :
 {{{
 updating examples/c/reccalc/parse.output
 updating examples/c/reccalc/parse.h
 /opt/local/bin/gcc-apple-4.2 -std=gnu99 -DEXEEXT=\"\"
 -I./examples/c/reccalc -I./examples/c/reccalc -I/opt/local/include  -pipe
 -Os -arch ppc -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
 examples/c/reccalc/parse.c:1680: error: redefinition of typedef 'yyscan_t'
 examples/c/reccalc/parse.c:117: error: previous declaration of 'yyscan_t'
 was here
 make[3]: *** [Makefile:6952: examples/c/reccalc/reccalc-parse.o] Error 1
 }}}

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


More information about the macports-tickets mailing list