From owner-freebsd-ports@FreeBSD.ORG Wed Oct 15 19:12:09 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5EE4D206 for ; Wed, 15 Oct 2014 19:12:09 +0000 (UTC) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "tensor.andric.com", Issuer "CAcert Class 3 Root" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1C1141F6 for ; Wed, 15 Oct 2014 19:12:09 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::787b:470:e5bc:4c7f] (unknown [IPv6:2001:7b8:3a7:0:787b:470:e5bc:4c7f]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 095C2B80A for ; Wed, 15 Oct 2014 21:11:56 +0200 (CEST) From: Dimitry Andric Content-Type: multipart/signed; boundary="Apple-Mail=_E2EBCF86-EB23-47D4-82CC-16CB229D4EE7"; protocol="application/pgp-signature"; micalg=pgp-sha1 Subject: Fix www/squid unexpectedly using -march=native Message-Id: <3CB2243B-8124-41BD-9564-3F9AED1B3566@FreeBSD.org> Date: Wed, 15 Oct 2014 21:11:44 +0200 To: FreeBSD Ports Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) X-Mailer: Apple Mail (2.1878.6) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Oct 2014 19:12:09 -0000 --Apple-Mail=_E2EBCF86-EB23-47D4-82CC-16CB229D4EE7 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Hi, Since http://bazaar.launchpad.net/~squid/squid/3-trunk/revision/12842, Squid's configure script defaults to -march=native, if the flag is supported by the compiler. And this even *overrides* your own specified CPUTYPE or -march= flag! So I personally experienced Squid 3.4 crashing on an old Celeron, when it was built on a Core i7. :-( Proposed fix is to explicitly tell the configure script to *not* enable -march=native by default: Index: www/squid/Makefile =================================================================== --- www/squid/Makefile (revision 370765) +++ www/squid/Makefile (working copy) @@ -181,7 +181,8 @@ --disable-epoll \ --disable-linux-netfilter \ --disable-linux-tproxy \ - --disable-translation + --disable-translation \ + --disable-arch-native .include Note that only squid 3.4 suffers from this bug, 3.3 is not affected. -Dimitry --Apple-Mail=_E2EBCF86-EB23-47D4-82CC-16CB229D4EE7 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iEYEARECAAYFAlQ+xvgACgkQsF6jCi4glqPUbwCfaMPYoPpFAb2IIE09MLrz7a1R CPwAnjB8kUA7P+NKdObzJ9C9Dx8WdCxq =P4jZ -----END PGP SIGNATURE----- --Apple-Mail=_E2EBCF86-EB23-47D4-82CC-16CB229D4EE7--