Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Feb 2014 18:05:37 +0100
From:      Dimitry Andric <dimitry@andric.com>
To:        Don Lewis <truckman@FreeBSD.org>
Cc:        imb@protected-networks.net, freebsd-current@FreeBSD.org
Subject:   Re: firebox build fails post clang-3.4 merge
Message-ID:  <53FD6BE5-267D-4732-9E85-F99C8AB0EF33@andric.com>
In-Reply-To: <201402270057.s1R0vkjH084327@gw.catspoiler.org>
References:  <201402270057.s1R0vkjH084327@gw.catspoiler.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <truckman@FreeBSD.org> 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
> <http://www.freebsd.org/cgi/query-pr.cgi?pr=187103>.
> 
> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53FD6BE5-267D-4732-9E85-F99C8AB0EF33>