[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
Tue Aug 3 06:17:49 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:  closed
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.6.2
Resolution:  fixed      |   Keywords:
      Port:  bison      |
------------------------+--------------------

Comment (by akimd):

 Hi Christopher,

 This failure has bugged me for a while now...  I'm not sure I understand
 its root, but the symptoms are precisely this trailing TAB in some tests
 for some users.  Let's nail it.

 The following tarballs contain a first fix, but maybe the following test
 cases will also fail, and I need your help.

 https://www.lrde.epita.fr/~akim/private/bison/bison-3.7.6.335-1d541.tar.gz
 https://www.lrde.epita.fr/~akim/private/bison/bison-3.7.6.335-1d541.tar.lz
 https://www.lrde.epita.fr/~akim/private/bison/bison-3.7.6.335-1d541.tar.xz

 Please after `configure` and `make`, run `make check-examples` and if
 there are failures, then look in
 `examples/c/bistromathic/bistromathic.test` for the corresponding call to
 `run`, and add `-t` as first argument to it.  Your logs show that we need
 it on line 318, so I did this:

 {{{
 @@ -306,7 +306,16 @@ esac
  sed -e 's/\\t/ /g' >input <<EOF
  (1+\t\t
  EOF
 -run 0 '> (1+
 +run -t 0 '> (1+
  (       -       atan    cos     exp     ln      number  sin     sqrt
  > (1+
  > ''
 }}}

 Please tell me if more calls to `run` need that to get a passing test
 suite.

 Cheers!

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


More information about the macports-tickets mailing list