From owner-freebsd-current@FreeBSD.ORG Tue Mar 4 18:59:59 2014 Return-Path: Delivered-To: freebsd-current@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 F22B3FC9; Tue, 4 Mar 2014 18:59:58 +0000 (UTC) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 786C7AA0; Tue, 4 Mar 2014 18:59:58 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::8880:18f0:3e6e:4058] (unknown [IPv6:2001:7b8:3a7:0:8880:18f0:3e6e:4058]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 793975C45; Tue, 4 Mar 2014 19:59:54 +0100 (CET) Content-Type: multipart/signed; boundary="Apple-Mail=_8D473C90-BD8A-4551-BD6B-D0FD145BB4B1"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: Status of llvm/clang 3.4? From: Dimitry Andric In-Reply-To: Date: Tue, 4 Mar 2014 19:59:40 +0100 Message-Id: <609B4434-AD4B-48C4-AED2-17C8618BCA94@FreeBSD.org> References: <634745.72215.bm@smtp120.sbc.mail.bf1.yahoo.com> <20140304172234.GA87591@troutmask.apl.washington.edu> To: Ed Maste X-Mailer: Apple Mail (2.1874) Cc: Thomas Mueller , FreeBSD Current , Steve Kargl X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Mar 2014 18:59:59 -0000 --Apple-Mail=_8D473C90-BD8A-4551-BD6B-D0FD145BB4B1 Content-Type: multipart/mixed; boundary="Apple-Mail=_B472EA6E-700E-4058-A66C-F5E7DC8446CB" --Apple-Mail=_B472EA6E-700E-4058-A66C-F5E7DC8446CB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 04 Mar 2014, at 19:04, Ed Maste wrote: > On 4 March 2014 12:22, Steve Kargl = wrote: >>=20 >> On Tue, Mar 04, 2014 at 12:17:18PM +0000, Thomas Mueller wrote: >>> What is the current status of clang, regarding known bugs, on = FreeBSD-current? >>>=20 >>> There were reports of www/firefox failing to build because of bug in = llvm. >>=20 >> Still broken of i386. Given the google results for "llvm ud2" >> it is likely that clang will never be fixed. >=20 > Except in this case it's just a plain old Clang bug, not a general > undefined behaviour issue. The Clang PR is here: > http://llvm.org/bugs/show_bug.cgi?id=3D19007 >=20 > Dimitry has a patch to work around the issue in FreeBSD PR 187103: > http://www.freebsd.org/cgi/query-pr.cgi?pr=3D187103 Indeed, for now you can just drop the two attached patches in /usr/ports/www/firefox/files, and it should then work after rebuilding. (Thanks to Michael Butler for the second patch. :) -Dimitry --Apple-Mail=_B472EA6E-700E-4058-A66C-F5E7DC8446CB Content-Disposition: attachment; filename=patch-xpcom_base_nscore.h Content-Type: application/octet-stream; name="patch-xpcom_base_nscore.h" Content-Transfer-Encoding: 7bit --- xpcom/base/nscore.h.orig 2014-02-12 22:29:26.000000000 +0100 +++ xpcom/base/nscore.h 2014-02-28 17:22:25.000000000 +0100 @@ -111,7 +111,7 @@ * NS_HIDDEN_(int) NS_FASTCALL func2(char *foo); */ -#if defined(__i386__) && defined(__GNUC__) && !defined(XP_OS2) +#if defined(__i386__) && defined(__GNUC__) && !defined(XP_OS2) && !defined(__clang__) #define NS_FASTCALL __attribute__ ((regparm (3), stdcall)) #define NS_CONSTRUCTOR_FASTCALL __attribute__ ((regparm (3), stdcall)) #elif defined(XP_WIN) && !defined(_WIN64) --Apple-Mail=_B472EA6E-700E-4058-A66C-F5E7DC8446CB Content-Disposition: attachment; filename=patch-xpcom_glue_pldhash.h Content-Type: application/octet-stream; name="patch-xpcom_glue_pldhash.h" Content-Transfer-Encoding: 7bit --- xpcom/glue/pldhash.h.orig 2014-02-12 22:29:26.000000000 +0100 +++ xpcom/glue/pldhash.h 2014-03-04 19:49:59.000000000 +0100 @@ -16,7 +16,7 @@ extern "C" { #endif -#if defined(__GNUC__) && defined(__i386__) && !defined(XP_OS2) +#if defined(__GNUC__) && defined(__i386__) && !defined(XP_OS2) && !defined(__clang__) #define PL_DHASH_FASTCALL __attribute__ ((regparm (3),stdcall)) #elif defined(XP_WIN) #define PL_DHASH_FASTCALL __fastcall --Apple-Mail=_B472EA6E-700E-4058-A66C-F5E7DC8446CB Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii --Apple-Mail=_B472EA6E-700E-4058-A66C-F5E7DC8446CB-- --Apple-Mail=_8D473C90-BD8A-4551-BD6B-D0FD145BB4B1 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) iEYEARECAAYFAlMWIqYACgkQsF6jCi4glqORHQCg7RQ9L1L1V26H+H01sbZ369Mz hr8AoJqS1syeSMrJO2k+veLLhXgIZX+o =iIwY -----END PGP SIGNATURE----- --Apple-Mail=_8D473C90-BD8A-4551-BD6B-D0FD145BB4B1--