From owner-freebsd-ports@FreeBSD.ORG Fri Jan 3 19:29:39 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 02B765EE; Fri, 3 Jan 2014 19:29:39 +0000 (UTC) Received: from mail-wg0-x236.google.com (mail-wg0-x236.google.com [IPv6:2a00:1450:400c:c00::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 407471B3B; Fri, 3 Jan 2014 19:29:38 +0000 (UTC) Received: by mail-wg0-f54.google.com with SMTP id n12so13618817wgh.33 for ; Fri, 03 Jan 2014 11:29:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=Y9kDEub4Kmc7VXnfs6lkx9Xoh8gKleXJMEdPEyVdXtY=; b=tlPLJWIAyRLJaYMxWyCsOx7NBqYmTxqh9YXwxXhdMTUzAfICon9Sp9mTr73jj9+bZk yxA+zArYmCkRK09oCkmjG0r3ToWdT6IPW44nTQbEskN/KGoOSnhR+hvNJEOV7/fnuepL 928z1yNREbZqMSsUsNVa53DbEKP20jiOnLNoUbxJpN2kUuy24mCu0MB5WC3CJ0Rpwu6n bYgmQkr7XVQS52jL+yLptFRY1p5MqabeI2CaJiXsVtu7SxaFN0QJfYW3qrMCbPTerZBh Z9/xCgnPhH/Gg+71slQJLfc6WtrD+YOfDL9sgFyRBpyUFa3RNlX+IRp2MKQQBrqn7v5V if7w== X-Received: by 10.180.21.204 with SMTP id x12mr3096425wie.45.1388777376516; Fri, 03 Jan 2014 11:29:36 -0800 (PST) Received: from ithaqua.etoilebsd.net (ithaqua.etoilebsd.net. [37.59.37.188]) by mx.google.com with ESMTPSA id hy8sm36191423wjb.2.2014.01.03.11.29.35 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 03 Jan 2014 11:29:35 -0800 (PST) Sender: Baptiste Daroussin Date: Fri, 3 Jan 2014 20:29:34 +0100 From: Baptiste Daroussin To: Tijl Coosemans Subject: Re: Advice about /usr/ports/math/gmp Message-ID: <20140103192933.GB19702@ithaqua.etoilebsd.net> References: <86d2k9uhw1.fsf@shell.gmplib.org> <9D1C0F6F-0683-430D-AB96-3E29693B3163@FreeBSD.org> <20140103183748.GA19702@ithaqua.etoilebsd.net> <20140103202306.0fd26803@kalimero.tijl.coosemans.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="i0/AhcQY5QxfSsSZ" Content-Disposition: inline In-Reply-To: <20140103202306.0fd26803@kalimero.tijl.coosemans.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Dimitry Andric , Torbjorn Granlund , FreeBSD Mailing List X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jan 2014 19:29:39 -0000 --i0/AhcQY5QxfSsSZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 03, 2014 at 08:23:06PM +0100, Tijl Coosemans wrote: > On Fri, 3 Jan 2014 19:37:48 +0100 Baptiste Daroussin wrote: > > On Fri, Jan 03, 2014 at 07:27:29PM +0100, Dimitry Andric wrote: > >> On 03 Jan 2014, at 17:53, Torbjorn Granlund wrote: > >>> We are about to release GMP 5.2. > >>>=20 > >>> We have been forced to add three FreeBSD-related items to the releases > >>> notes: > >>>=20 > >>> * This release will not work on FreeBSD/amd64 7.x, 8.x or 9 series > >>> before 9.3 with a Haswell CPU or any other CPU which supports the > >>> BMI2 instructions. The reason is that the FreeBSD m4 command is n= ot > >>> correctly implemented. (Workaround: Use an older GMP release, or > >>> install GNU m4 from /usr/ports and tell GMP to use it.) > >>>=20 > >>> * This release will not work on FreeBSD/amd64 before version 10 using > >>> the 32-bit ABI. The reason is broken limits.h and broken dynamic > >>> linking. (Workaround: Use an older GMP release if using the 32-bit > >>> ABI on these FreeBSD releases is important.) > >>>=20 > >>> * This release will not work on FreeBSD/amd64 10.0 using the 32-bit > >>> ABI. The reason is bugs in the compiler 'clang'. (Workaround: > >>> Compiling gcc from /usr/ports might work, except that gcc depends = on > >>> GMP; we have not been able to test that workaround since > >>> FreeBSD/i386 10.0 does not work for us under KVM or Xen.) > >>>=20 > >>> The first item is a show-stopper. It would be possible to implement a > >>> workaround in GMP. We choose not to do that since (1) we adviced the > >>> FreeBSD project two years ago the m4 bug, and FreeBSD chose to make 4 > >>> releases without fixing m4, and (2) the fix is ugly, and (3) our use = of > >>> m4 which triggers the bug is actually part of a workaround for a brok= en > >>> assembler (to much complexity to maintain workarounds for workarounds= ). > >>>=20 > >>> The second item should not affect /usr/ports builds since they would = use > >>> the default 64-bit ABI on amd64 machines. > >>>=20 > >>> The third item is a show-stopper until clang is fixed. We have not b= een > >>> able to isolate this problem due to lack of time and due to a deeply > >>> malfunctioning filesystem of FreeBSD/i386 under KVM and Xen+NetBSD. = We > >>> don't have any more information about these bugs. > >>>=20 > >>>=20 > >>> We do not plan to implement workarounds for the above bugs for GMP 5.= 2.x > >>> for any x. I would advice that you stick with GMP 5.1.3. > >>=20 > >> Uhm, if you provide approximately zero information about these supposed > >> "bugs", how do you expect anyone to help fixing them? > >=20 > > In particular concerning m4, I'd like to hear what is buggy and how, ou= r m4 do > > respect the m4 specs: > > http://pubs.opengroup.org/onlinepubs/9699919799/utilities/m4.html plus = it has > > support for some (all?) of the gnu extension via the -g option. > >=20 > > If anything is buggy I would like to hear about it and fix. >=20 > The first item is http://www.freebsd.org/cgi/query-pr.cgi?pr=3D166994 Oh great I see, I forgot to mfc it. Thanks for having merge it. > The second item is about compiling with -m32. We only fully implemented > that in FreeBSD 10. > The third item I don't know anything about. regards, Bapt --i0/AhcQY5QxfSsSZ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (FreeBSD) iEYEARECAAYFAlLHD50ACgkQ8kTtMUmk6EzY9wCgk/JgrmaVgLg7p8WQBN/4cyUs zMcAn0CoDzZOsU6TH1GDR7E3wBvJl1QJ =sA6e -----END PGP SIGNATURE----- --i0/AhcQY5QxfSsSZ--