From owner-freebsd-ports@FreeBSD.ORG Thu Oct 16 07:25:40 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 C7971E95; Thu, 16 Oct 2014 07:25:40 +0000 (UTC) Received: from mail-out.smeets.im (mail-out.smeets.im [IPv6:2a01:4f8:160:918a::25:11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 825AF3CC; Thu, 16 Oct 2014 07:25:40 +0000 (UTC) Received: from mail.smeets.im (mail.smeets.im [IPv6:2a01:4f8:160:918a::25:3]) by mail-out.smeets.im (Postfix) with ESMTP id ECA598B2; Thu, 16 Oct 2014 09:25:37 +0200 (CEST) Received: from amavis.smeets.im (amavis.smeets.im [IPv6:2a01:4f8:160:918a::aa:4]) by mail.smeets.im (Postfix) with ESMTP id 391C4892F8; Thu, 16 Oct 2014 09:25:38 +0200 (CEST) X-Virus-Scanned: amavisd-new at smeets.im Received: from mail.smeets.im ([IPv6:2a01:4f8:160:918a::25:3]) by amavis.smeets.im (amavis.smeets.im [IPv6:2a01:4f8:160:918a::aa:4]) (amavisd-new, port 10025) with ESMTP id Gua2W0VQ6QJe; Thu, 16 Oct 2014 09:25:38 +0200 (CEST) Received: by mail.smeets.im (Postfix, from userid 1001) id E26D9892BC; Thu, 16 Oct 2014 09:25:37 +0200 (CEST) Date: Thu, 16 Oct 2014 09:25:37 +0200 From: Florian Smeets To: Dimitry Andric Subject: Re: Fix www/squid unexpectedly using -march=native Message-ID: <20141016072537.GD26357@mail.smeets.im> References: <3CB2243B-8124-41BD-9564-3F9AED1B3566@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bajzpZikUji1w+G9" Content-Disposition: inline In-Reply-To: <3CB2243B-8124-41BD-9564-3F9AED1B3566@FreeBSD.org> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: FreeBSD Ports 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: Thu, 16 Oct 2014 07:25:41 -0000 --bajzpZikUji1w+G9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 15, 2014 at 09:11:44PM +0200, Dimitry Andric wrote: > Hi, >=20 > Since http://bazaar.launchpad.net/~squid/squid/3-trunk/revision/12842, > Squid's configure script defaults to -march=3Dnative, if the flag is > supported by the compiler. And this even *overrides* your own specified > CPUTYPE or -march=3D flag! So I personally experienced Squid 3.4 crashing > on an old Celeron, when it was built on a Core i7. :-( >=20 > Proposed fix is to explicitly tell the configure script to *not* enable > -march=3Dnative by default: >=20 > Index: www/squid/Makefile > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- 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 >=20 > .include >=20 > Note that only squid 3.4 suffers from this bug, 3.3 is not affected. >=20 I ran into that myself a few days ago. I haven't had time to look into it, yet. So, thanks for taking care of it. :) I've tested and committed your patch. Thanks, Florian --bajzpZikUji1w+G9 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJUP3LxXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRBNzAxMDMyMDNCQ0FCNDRBOThGRUM4NDRF NzA1M0RGOUZGODZGMDc2AAoJEOcFPfn/hvB2jTwP/1dwPMIKBg5ZjhX7sO1u9e3Q Rzb8R46UvbqQhC4thN0dmTv9eTf9XJH5g+FjhjdgCGMBV1eh4XskqPehaha43f5X d1CA5/LqeWQUfnO4APVbtT0FfZDtkudO72htQ6Ei7qyHa/KMDJy0ISuFv9Te6lU/ GOu3YEUDUqgf5jLnbvVEuPzCaUWg+wGq+oJrYfXmmhFoBMNJg5dt5UUodjX4GxmO pQ7VCoDV9bKpvc4j8GMRfuoAL2pAZyk/cBMipC/Iss8JMm6ixBjDEvAHd0Oz76Xs cl/rWiOfEf5vPDHW8tCRi+g6L51bh8z+nxkwtGktcGdiFoHnkTbdVRbxTVhfBI/c LJvY3fwcGctHMg7iw+GMHLKbV8EZ2pBAQzS601s1ObzbSmgfJ8NmlRgK8sO25qPH ax5yluHuoktmSMwf6Js2osFqmoboOt2+34XzOWvrJrx8zhzvJg5+lqISnPyCs0Le Q2E9JC/4Wa874/3oXtxW2wsADBpL+q769kylFlwIUS5z2cLflu/muh1Vurcr1Mrr /fUPxW/TrALrGKWAanGBBdubt4Xuz79jJtTV1bkIOLpJMKCyMSHIjDzEcKEPDlSp aIWdP1ZK7P+qSsVdkArq5MdOsemdY/FPH/XgZqsPrTDmTIWlBUqWMjISSqwTYzSO eug0WCvZV32QEhh2dMKf =+NP2 -----END PGP SIGNATURE----- --bajzpZikUji1w+G9--