From owner-freebsd-current@FreeBSD.ORG Fri Feb 28 17:05:42 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 3A39238D; Fri, 28 Feb 2014 17:05:42 +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 E9F7510A9; Fri, 28 Feb 2014 17:05:41 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::83f:465:d505:2ec0] (unknown [IPv6:2001:7b8:3a7:0:83f:465:d505:2ec0]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id F323E5C45; Fri, 28 Feb 2014 18:05:39 +0100 (CET) Content-Type: multipart/signed; boundary="Apple-Mail=_5AA18CEE-D296-40C2-946E-FD8153C38B62"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: firebox build fails post clang-3.4 merge From: Dimitry Andric In-Reply-To: <201402270057.s1R0vkjH084327@gw.catspoiler.org> Date: Fri, 28 Feb 2014 18:05:37 +0100 Message-Id: <53FD6BE5-267D-4732-9E85-F99C8AB0EF33@andric.com> References: <201402270057.s1R0vkjH084327@gw.catspoiler.org> To: Don Lewis X-Mailer: Apple Mail (2.1874) Cc: imb@protected-networks.net, freebsd-current@FreeBSD.org 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: Fri, 28 Feb 2014 17:05:42 -0000 --Apple-Mail=_5AA18CEE-D296-40C2-946E-FD8153C38B62 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 27 Feb 2014, at 01:57, Don Lewis wrote: > On 26 Feb, Michael Butler wrote: >> On 02/18/14 12:10, Michael Butler wrote: >>> Is anyone else seeing firefox failing to install after the clang-3.4 >>> merge? As in xpcshell dumping core .. >> >> An update .. >> >> Recompiling with GCC48 on -current yields the same result. Seems to run >> correctly when invoked from the command-line but seg-faults with "errno >> = 4" (invalid instruction) from the build >> >> Giving up and using the Linux port .. :-( > > I've also seen this problem with clang-3.4 on i386. It looks like a > clang bug to me. Clang is putting ud2 instructions in its output which > are guaranteed to fault when it compiles nsAppRunner.cpp. See > . > > I tried compiling the offending file with gcc46 and didn't see the > problem in the assembly output. Indeed, this is clang bug with stdcall calling conventions. See the upstream bug http://llvm.org/PR19007 (thanks to Benjamin Kramer for reducing this). I have followed up on the bug with a workaround, which can be used until this bug is fixed upstream, and I can import the fix. -Dimitry --Apple-Mail=_5AA18CEE-D296-40C2-946E-FD8153C38B62 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) iEUEARECAAYFAlMQweEACgkQsF6jCi4glqN1ogCcDyBNT6p1C714k9iqt4QJzcIX X5UAmJ+gDGGomQkfNzu7Q7FVkcW5CNg= =4aVK -----END PGP SIGNATURE----- --Apple-Mail=_5AA18CEE-D296-40C2-946E-FD8153C38B62--