CPUTYPE translation performed by /usr/share/mk/bsd.cpu.mk seems to confuse gcc48 and as a consequence, all ports that use gcc48 (including lang/gcc itself) fail on configure stage.
uname -a: FreeBSD xombo.syrec.org 11.0-BETA1 FreeBSD 11.0-BETA1 #0 r302526: Sun Jul 10 16:12:30 ECT 2016 r...@xombo.syrec.org:/usr/obj/usr/src/sys/XOMBO amd64 /etc/make.conf: ... CPUTYPE?= core-avx2 ... One example of failing port is audio/soundtouch: ... checking whether the C++ compiler works... no configure: error: in `/usr/ports/audio/soundtouch/work/soundtouch': configure: error: C++ compiler cannot create executables See `config.log' for more details config.log shows that "core-avx2" was converted to "haswell" (by bsd.cpu.mk ): configure:3277: g++48 -O2 -pipe -march=haswell -fstack-protector -Wl,-rpath=/usr/local/lib/gcc48 -fno-strict-aliasing -Wl,-rpath=/usr/local/lib/gcc48 -fstack-protector -Wl,-rpath=/usr/local/lib/gcc48 -L/usr/local/lib/gcc48 conftest.cpp >&5 conftest.cpp:1:0: error: bad value (haswell) for -march= switch ... which is an unknown arch to gcc48: https://gcc.gnu.org/onlinedocs/gcc-4.8.5/gcc/i386-and-x86-64-Options.html Adding NO_CPU_CFLAGS=yes to /etc/make.conf fixes the above, but it looks like a bug to me. Am I missing something here? Regards, Dmitri _______________________________________________ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"