From owner-freebsd-ports@freebsd.org Mon Jul 11 17:18:52 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9A4DEB92B5A for ; Mon, 11 Jul 2016 17:18:52 +0000 (UTC) (envelope-from dg@syrec.org) Received: from mail-it0-x244.google.com (mail-it0-x244.google.com [IPv6:2607:f8b0:4001:c0b::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6B3DB1FAC for ; Mon, 11 Jul 2016 17:18:52 +0000 (UTC) (envelope-from dg@syrec.org) Received: by mail-it0-x244.google.com with SMTP id d65so2214902ith.0 for ; Mon, 11 Jul 2016 10:18:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syrec.org; s=google; h=mime-version:from:date:message-id:subject:to; bh=rZE9J6ZMQUCDQbSJOa0/sfTrb2dg2MnnvTK302B9hus=; b=Z35+Cl5rwCkyqXCAhXgVGpFPIm5nn+2VKoQUAmKOYdCNhVDSz1wpoWK/j7aZQ/6ZNe 2/Oyx8T4lfhha0E/0XgV4A7ScgynZuylhj+lK1dvg/tMN0AGe4izRy38gmxG504aZ24Q 5OTfaWw16byBA/OqcKO5JyWM6nbbmAWHnfo1A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=rZE9J6ZMQUCDQbSJOa0/sfTrb2dg2MnnvTK302B9hus=; b=H99v32Q7qBOE8rvGzFQ7oWAR5tNqsjGIsLmwuSMHiZFyYvUa1yxNFRdnZHBmBAtGKF UQPrE04Yo8jfMVc67dXg8xP9ZBqaQhYXrNzNXbKjYE0aEfCa6LQ/ykH5sZi0f0Q2emwC nSh2VAOkbddfAL1fHMKXimZk9Pr4Yyl62VO1VsQATTf1afRd1VR9tHYYjdR0TOwGvhjE 6sb/QvQRK5k7TwRH6qq6De1duTuicfp5qlwip7dWYQ3dFj7b5H42ci8+fC+bXNdkRJdi enMjfGXnybY1Rh37rwuKn/FxbFQAVVbCk6qNUYV9NE+Mw8UO7zZkMJRXOwHV0ZQ6pP7G CzOQ== X-Gm-Message-State: ALyK8tJZoAhaJd161n4BQeLzTnJxQe5WQVdbvHIm9IwydL/GsDvjEKeRiTQybbAxNSHcOu+bKKqALr3sl0RxbA== X-Received: by 10.36.138.65 with SMTP id v62mr10952321itd.51.1468257531552; Mon, 11 Jul 2016 10:18:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.33.178 with HTTP; Mon, 11 Jul 2016 10:18:51 -0700 (PDT) X-Originating-IP: [191.100.52.212] From: Dmitri Goutnik Date: Mon, 11 Jul 2016 12:18:51 -0500 Message-ID: Subject: CPUTYPE translation confuses gcc48 on 11.0-BETA1 To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jul 2016 17:18:52 -0000 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 root@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