[MacPorts] #61613: xorg-libX11 @1.7.0 does not build on PPC Leopard, Mac OS X 10.5.8, because "error: #pragma GCC diagnostic not allowed inside functions"
MacPorts
noreply at macports.org
Sun Nov 22 12:01:45 UTC 2020
#61613: xorg-libX11 @1.7.0 does not build on PPC Leopard, Mac OS X 10.5.8, because
"error: #pragma GCC diagnostic not allowed inside functions"
-----------------------+-------------------------
Reporter: ballapete | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Keywords: leopard | Port: xorg-libX11
-----------------------+-------------------------
{{{
/bin/sh ../../libtool --tag=CC --mode=compile /usr/bin/gcc-4.2
-std=gnu99 -DHAVE_CONFIG_H -I. -I../../src -I../../include/X11
-I../../include -I../../include/X11 -I../../include -I../../include/X11
-I../../src/xcms -I../../src/xkb -I../../src/xlibi18n -I../../src
-D_BSD_SOURCE -I/opt/local/include -D_DEFAULT_SOURCE -D_BSD_SOURCE
-DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -Wall -Wpointer-arith -Wmissing-
declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-
externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-
statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-
format-attribute -Wredundant-decls -Wimplicit -Wnonnull -Winit-self -Wmain
-Wmissing-braces -Wsequence-point -Wreturn-type -Wtrigraphs -Wwrite-
strings -Waddress -Wint-to-pointer-cast -Wpointer-to-int-cast -fno-strict-
aliasing -pipe -Os -arch ppc -MT XKBBind.lo -MD -MP -MF .deps/XKBBind.Tpo
-c -o XKBBind.lo XKBBind.c
libtool: compile: /usr/bin/gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -I.
-I../../src -I../../include/X11 -I../../include -I../../include/X11
-I../../include -I../../include/X11 -I../../src/xcms -I../../src/xkb
-I../../src/xlibi18n -I../../src -D_BSD_SOURCE -I/opt/local/include
-D_DEFAULT_SOURCE -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -Wall
-Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes
-Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-
definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow
-Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wimplicit
-Wnonnull -Winit-self -Wmain -Wmissing-braces -Wsequence-point -Wreturn-
type -Wtrigraphs -Wwrite-strings -Waddress -Wint-to-pointer-cast
-Wpointer-to-int-cast -fno-strict-aliasing -pipe -Os -arch ppc -MT
XKBBind.lo -MD -MP -MF .deps/XKBBind.Tpo -c XKBBind.c -fno-common -DPIC
-o .libs/XKBBind.o
XKBBind.c: In function ‘XLookupKeysym’:
XKBBind.c:230: error: #pragma GCC diagnostic not allowed inside functions
XKBBind.c:231: error: #pragma GCC diagnostic not allowed inside functions
XKBBind.c:233: warning: ‘XKeycodeToKeysym’ is deprecated (declared at
XKBBind.c:103)
XKBBind.c:237: error: #pragma GCC diagnostic not allowed inside functions
make[3]: *** [XKBBind.lo] Error 1
make[3]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports
.org_macports_release_tarballs_ports_x11_xorg-libX11/xorg-
libX11/work/libX11-1.7.0/src/xkb'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports
.org_macports_release_tarballs_ports_x11_xorg-libX11/xorg-
libX11/work/libX11-1.7.0/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports
.org_macports_release_tarballs_ports_x11_xorg-libX11/xorg-
libX11/work/libX11-1.7.0/src'
make: *** [all-recursive] Error 1
make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports
.org_macports_release_tarballs_ports_x11_xorg-libX11/xorg-
libX11/work/libX11-1.7.0'
}}}
The the cure is to use `GCC7`?
--
Ticket URL: <https://trac.macports.org/ticket/61613>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list