Created attachment 197306 [details] patch Adding CUPS option on powerpc64 breaks compilation. Work it around by disabling CUPS on this platform.
Can you provide a build log that shows the error?
(In reply to Tijl Coosemans from comment #1) http://www.lonesome.com/FreeBSD/poudriere/data/logs/bulk/111-2018Q3-powerpc64-quarterly/2018-09-21_00h08m30s/logs/errors/ghostscript9-agpl-base-9.24_2.log
Created attachment 197344 [details] patch2 dispatch.h is only included if __BLOCKS__ is defined. This should only be the case when compiling with -fblocks. Is this enabled by default maybe on powerpc64? Does "cc -E -dM - < /dev/null | grep BLOCKS" output anything on powerpc64? That said, nothing from ./cups/libs should be included so this is a real bug on all architectures. Please try the attached patch.
(In reply to Tijl Coosemans from comment #3) $ cc -E -dM - < /dev/null | grep BLOCKS #define __BLOCKS__ 1 I'm trying your patch.
Dimitry, do you know why clang seems to compile with -fblocks by default on powerpc64?
(In reply to Tijl Coosemans from comment #5) Yes, with this patch build works. @tilj On powerpc64 cc is GCC 4.2.1.
(In reply to Tijl Coosemans from comment #5) $ cc -v Using built-in specs. Target: powerpc64-undermydesk-freebsd Configured with: FreeBSD/powerpc64 system compiler Thread model: posix gcc version 4.2.1 20070831 patched [FreeBSD]
Ah, right, I didn't think gcc supported blocks but now I seem to vaguely remember this was imported into FreeBSD from Apple gcc. On MacOS both clang and gcc enable -fblocks by default.
A commit references this bug: Author: tijl Date: Sat Sep 22 13:01:39 UTC 2018 New revision: 480382 URL: https://svnweb.freebsd.org/changeset/ports/480382 Log: Remove bundled CUPS in post-patch so its headers cannot be included. This fixes the powerpc64 build. PR: 231549 Reported by: Piotr Kubaj <pkubaj@anongoth.pl> Changes: head/print/ghostscript9-agpl-base/Makefile