A similar patch to the one for aarch64 applied in r431960 and r432567 needs to be applied for sparc64. This unbreaks a large number of ports on sparc64.
Created attachment 185713 [details] patch to php7*/Makefile for sparc64
A commit references this bug: Author: tz Date: Fri Sep 15 10:26:14 UTC 2017 New revision: 449898 URL: https://svnweb.freebsd.org/changeset/ports/449898 Log: lang/php70 and lang/php71: enable to build on sparc64 Disabling DTRACE for sparc64 allows to build the port on it PR: 221761 Submitted by: Mark Linimon <linimon@FreeBSD.org> Changes: head/lang/php70/Makefile head/lang/php71/Makefile
While i haven't any change to test it i take your word for granted. And want to thank you for the patch! Its fine to see PHP on other platforms! :)