Created attachment 161298 [details] poudriere build fail log news/inn (inn-2.6.0) fails to build both on 93amd64 and 93i386 with getmodaddr.c: In function 'GetModeratorAddress': getmodaddr.c:204: error: #pragma GCC diagnostic not allowed inside functions getmodaddr.c:206: error: #pragma GCC diagnostic not allowed inside functions getmodaddr.c:226: error: #pragma GCC diagnostic not allowed inside functions getmodaddr.c:228: error: #pragma GCC diagnostic not allowed inside functions Makefile:67: recipe for target 'getmodaddr.o' failed gmake[1]: *** [getmodaddr.o] Error 1 gmake[1]: Leaving directory '/wrkdirs/usr/ports/news/inn/work/inn-2.6.0/lib' Makefile:57: recipe for target 'all-lib' failed gmake: *** [all-lib] Error 2 *** [do-build] Error code 1 Stop in /usr/ports/news/inn. ====>> Cleaning up wrkdir ===> Cleaning for inn-2.6.0 build of news/inn ended at Wed Sep 23 17:05:17 NOVT 2015 build time: 00:00:16 !!! build failure encountered !!! attached please find the complete poudriere log.
Sounds like ccache is not supported. It works fine with gcc or clang here. The following patch should fix it by removing all #pragma lines. Please let me know if this works for you
Created attachment 161303 [details] proposed patch
For some reason the patch does not apply to news/inn/Makefile [root@svn64 ports/news/inn] patch -C < /tmp/q.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- Makefile (revision 397609) |+++ Makefile (working copy) -------------------------- Patching file Makefile using Plan A... Hunk #1 failed at 158. 1 out of 1 hunks failed--saving rejects to Makefile.rej done [root@svn64 ports/news/inn]
Ah, this was whitespaces vs tabs. "patch -l" does the job. And the patch has fixed the problem, the port is now build all right. Thank you, Johan!
A commit references this bug: Author: johans Date: Sun Oct 11 10:19:26 UTC 2015 New revision: 399083 URL: https://svnweb.freebsd.org/changeset/ports/399083 Log: Remove #pragma to fix build with all compiler versions PR: ports/203281 Changes: head/news/inn/Makefile
Sorry for the delay, patch committed now.