Created attachment 197441 [details] patch -Wno-error=unused-command-line-argument is not supported on GCC 4.2. I replaced it with -Wno-error, without any -Wno* flag the port doesn't build on amd64. The port still compiles fine on both amd64 and powerpc64. Hardware sponsored by IntegriCloud.
A commit references this bug: Author: linimon Date: Thu Sep 27 22:34:31 UTC 2018 New revision: 480826 URL: https://svnweb.freebsd.org/changeset/ports/480826 Log: Fix build on gcc-based archs. Tested on powerpc64, amd64. PR: 231672 Submitted by: Piotr Kubaj Approved by: portmgr (tier-2 blanket) Changes: head/devel/openocd/Makefile