From owner-freebsd-current@FreeBSD.ORG Thu Feb 27 02:41:22 2014 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 80BF729C; Thu, 27 Feb 2014 02:41:22 +0000 (UTC) Received: from sarah.protected-networks.net (sarah.protected-networks.net [IPv6:2001:470:1f07:4e1::1]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4C457198F; Thu, 27 Feb 2014 02:41:22 +0000 (UTC) Received: from toshi.auburn.protected-networks.net (toshi.auburn.protected-networks.net [IPv6:2001:470:1f07:4e1::4]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client CN "Iain Butler", Issuer "RSA Class 2 Personal CA v2" (verified OK)) (Authenticated sender: imb@protected-networks.net) by sarah.protected-networks.net (Postfix) with ESMTPSA id 7F83960D0; Wed, 26 Feb 2014 21:41:20 -0500 (EST) DomainKey-Signature: a=rsa-sha1; s=200509; d=protected-networks.net; c=nofws; q=dns; h=message-id:date:from:user-agent:mime-version:to:cc:subject: references:in-reply-to:x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=SXq4XOyILfAUvDMpDADRLC+gucS7DOFxsNJOEm1cvXenb67ChJ0saaR9T9OweexUn CoEETkIb155wfTOnuilGAtExKMiNQQxCd5VUxtIcmQmEHSCL3OaamkyLZAc0ETy Message-ID: <530EA5CD.2070508@protected-networks.net> Date: Wed, 26 Feb 2014 21:41:17 -0500 From: Michael Butler User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Don Lewis Subject: Re: firebox build fails post clang-3.4 merge References: <201402270057.s1R0vkjH084327@gw.catspoiler.org> In-Reply-To: <201402270057.s1R0vkjH084327@gw.catspoiler.org> X-Enigmail-Version: 1.6 OpenPGP: id=0442D492 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: 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: Thu, 27 Feb 2014 02:41:22 -0000 On 02/26/14 19: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. .. way back in the late 70's or maybe early 80's when I was actually doing some work on compilers, we had a saying: "produce correct code even if it's not optimal or exit and tell the user why". Producing non-working code for no apparent reason and without warning is counter-productive. It wastes everyone's time :-( imb