Date: Thu, 16 Oct 2014 09:25:37 +0200 From: Florian Smeets <flo@smeets.im> To: Dimitry Andric <dim@FreeBSD.org> Cc: FreeBSD Ports <freebsd-ports@freebsd.org> Subject: Re: Fix www/squid unexpectedly using -march=native Message-ID: <20141016072537.GD26357@mail.smeets.im> In-Reply-To: <3CB2243B-8124-41BD-9564-3F9AED1B3566@FreeBSD.org> References: <3CB2243B-8124-41BD-9564-3F9AED1B3566@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <bsd.port.options.mk> >=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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141016072537.GD26357>