[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
Sat Aug 7 13:22:29 UTC 2021


#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:  reopened
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.6.2
Resolution:             |   Keywords:
      Port:  bison      |
------------------------+----------------------

Comment (by mascguy):

 It looks like test 14 [for bistromathic.test] is failing. All of the
 others pass, though:

 {{{
 bistromathic: PASS: 13
 checking for kernel name... Darwin
 bistromathic: FAIL: 14
 bistromathic: input:
   (1+
 bistromathic: expected output:
   > (1+
   (       -       atan    cos     exp     ln      number  sin     sqrt
   > (1+
   >
   err: 1.4: syntax error: expected - or ( or number or function or
 variable before end of file
   err:     1 | (1+
   err:       |    ^
 bistromathic: effective output:
   > (1+
   (       -       atan    cos     exp     ln      number  sin     sqr
   > (1+
   >
   err: 1.4: syntax error: expected - or ( or number or function or
 variable before end of file
   err:     1 | (1+
   err:       |    ^
 bistromathic: diff:
   --- exp       2021-08-07 09:14:37.000000000 -0400
   +++ eff       2021-08-07 09:14:37.000000000 -0400
   @@ -1,5 +1,5 @@
    > (1+
   -(       -       atan    cos     exp     ln      number  sin     sqrt
   +(       -       atan    cos     exp     ln      number  sin     sqr
    > (1+
    >
    err: 1.4: syntax error: expected - or ( or number or function or
 variable before end of file
 bistromathic: PASS: 15
 }}}

 The run command for that test - on line 370, I believe? - looks like it's
 passing `-t`:
 {{{
 run -t 0 '> (1+
 }}}

 Is there anything else I can try?

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


More information about the macports-tickets mailing list