[MacPorts] #56836: py-cairo: build fails on < 10.7 due to error: #pragma GCC diagnostic not allowed inside functions
MacPorts
noreply at macports.org
Wed Jul 18 15:53:43 UTC 2018
#56836: py-cairo: build fails on < 10.7 due to error: #pragma GCC diagnostic not
allowed inside functions
--------------------+----------------------
Reporter: kencu | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: py-cairo
--------------------+----------------------
The compiler selection for `py-cairo` leads to `gcc-4.2` being used on
these older systems, and `gcc-4.2` doesn't understand the above GCC
diagnostic inside functions.
<https://build.macports.org/builders/ports-10.5_ppc_legacy-
builder/builds/68721/steps/install-port/logs/stdio>
<https://build.macports.org/builders/ports-10.6_x86_64_legacy-
builder/builds/69944/steps/install-dependencies/logs/stdio>
Fix is to move the `#pragma` outside of the function, or to use a newer
compiler (I tried `gcc6` and that works, and any `clang` version works)
--
Ticket URL: <https://trac.macports.org/ticket/56836>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list