CURRENT as of February 2019 running on arm64. $ /usr/local/bin/cpuflags sysctl: unknown oid 'hw.model' /usr/local/bin/cpuflags: gcc: not found [: -gt: unexpected operator /usr/local/bin/cpuflags: gcc: not found Unknown machine - please send cpuflags details to abs@absd.org OS : 'FreeBSD' hw.model : '' hw.machine : 'arm64' hw.machine_arch : 'aarch64' cpu details : Four bugs: 1. sysctl asks for bad setting 2. cpuflags defaults to gcc, while the FreeBSD default compiler is named 'cc' 3. No quotes around variable expansion in line if [ $(gcc_ser $CC) -gt 4002 ] ; then 4. The man page is not installed.
A commit references this bug: Author: tobik Date: Sun Feb 24 14:06:11 UTC 2019 New revision: 493762 URL: https://svnweb.freebsd.org/changeset/ports/493762 Log: Deprecate devel/cpuflags It's supposed to "return appropriate gcc flags to optimise compilation for the current CPU", but it does not recognize modern CPUs. MASTER_SITES is dead, no upstream is given in pkg-descr. pkgsrc has a newer version 1.43 from 3 years ago, but for modern compilers just using -march=native is probably a better alternative. PR: 235993 Changes: head/devel/cpuflags/Makefile
The port was always i386/amd64 only AFAICT, but yeah it's broken. I've deprecated the port, so it'll be removed in a about a week.
Expired port removed.