[MacPorts] #65854: glib2 @2.70.5_0: build fails on 10.5 PPC: pragma GCC diagnostic not allowed inside functions

MacPorts noreply at macports.org
Sun Sep 18 09:33:38 UTC 2022


#65854: glib2 @2.70.5_0: build fails on 10.5 PPC: pragma GCC diagnostic not allowed
inside functions
------------------------+-------------------------
  Reporter:  ballapete  |      Owner:  mascguy
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.7.2
Resolution:             |   Keywords:  leopard ppc
      Port:  glib2      |
------------------------+-------------------------

Comment (by ballapete):

 `glib2` builds when the three lines are either removed or commented.

 BTW, I get quite a lot of complaints like this one:

 {{{
 /usr/bin/gnutar: glib-2.70.5/.clang-format: implausibly old time stamp
 1970-01-01 01:00:00
 }}}

 `GCC 4.2` complaints also a lot of times:

 {{{
 ../glib-2.70.5/glib/gdate.c:2636: warning: expected
 [error|warning|ignored] after ‘#pragma GCC diagnostic’
 ../glib-2.70.5/glib/gdate.c:2750: warning: expected
 [error|warning|ignored] after ‘#pragma GCC diagnostic’
 ../glib-2.70.5/glib/gfileutils.c:646: warning: expected
 [error|warning|ignored] after ‘#pragma GCC diagnostic’
 ../glib-2.70.5/glib/gfileutils.c:664: warning: expected
 [error|warning|ignored] after ‘#pragma GCC diagnostic’
 ../glib-2.70.5/glib/gmarkup.c:2467: warning: expected
 [error|warning|ignored] after ‘#pragma GCC diagnostic’
 ../glib-2.70.5/glib/gmarkup.c:2596: warning: expected
 [error|warning|ignored] after ‘#pragma GCC diagnostic’
 ../glib-2.70.5/glib/gmessages.c:1606: warning: expected
 [error|warning|ignored] after ‘#pragma GCC diagnostic’
 ../glib-2.70.5/glib/gmessages.c:1917: warning: expected
 [error|warning|ignored] after ‘#pragma GCC diagnostic’
 ../glib-2.70.5/glib/gstrfuncs.c:925: warning: expected
 [error|warning|ignored] after ‘#pragma GCC diagnostic’
 ../glib-2.70.5/glib/gstrfuncs.c:1037: warning: expected
 [error|warning|ignored] after ‘#pragma GCC diagnostic’
 ../glib-2.70.5/glib/gutils.c:2731: warning: expected
 [error|warning|ignored] after ‘#pragma GCC diagnostic’
 ../glib-2.70.5/glib/gutils.c:2945: warning: expected
 [error|warning|ignored] after ‘#pragma GCC diagnostic’
 ../glib-2.70.5/glib/tests/atomic.c:100: error: #pragma GCC diagnostic not
 allowed inside functions
 ../glib-2.70.5/glib/tests/atomic.c:101: error: #pragma GCC diagnostic not
 allowed inside functions
 ../glib-2.70.5/glib/tests/atomic.c:105: error: #pragma GCC diagnostic not
 allowed inside functions
 ../glib-2.70.5/glib/tests/gdatetime.c:2431: warning: expected
 [error|warning|ignored] after ‘#pragma GCC diagnostic’
 ../glib-2.70.5/glib/tests/gdatetime.c:2458: warning: expected
 [error|warning|ignored] after ‘#pragma GCC diagnostic’
 ../glib-2.70.5/glib/tests/test-printf.c:197: warning: expected
 [error|warning|ignored] after ‘#pragma GCC diagnostic’
 ../glib-2.70.5/glib/tests/test-printf.c:216: warning: expected
 [error|warning|ignored] after ‘#pragma GCC diagnostic’
 ../glib-2.70.5/glib/tests/1bit-mutex.c:27: warning: expected
 [error|warning|ignored] after ‘#pragma GCC diagnostic’
 ../glib-2.70.5/glib/tests/1bit-mutex.c:56: warning: expected
 [error|warning|ignored] after ‘#pragma GCC diagnostic’
 ../glib-2.70.5/gio/glocalfile.c:904: warning: expected
 [error|warning|ignored] after ‘#pragma GCC diagnostic’
 ../glib-2.70.5/gio/glocalfile.c:920: warning: expected
 [error|warning|ignored] after ‘#pragma GCC diagnostic’
 }}}

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


More information about the macports-tickets mailing list