From owner-freebsd-ports@FreeBSD.ORG Tue Apr 30 03:28:57 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 6CDDED6A; Tue, 30 Apr 2013 03:28:57 +0000 (UTC) (envelope-from jamesbrandongooch@gmail.com) Received: from mail-ob0-x22e.google.com (mail-ob0-x22e.google.com [IPv6:2607:f8b0:4003:c01::22e]) by mx1.freebsd.org (Postfix) with ESMTP id 308BF16FB; Tue, 30 Apr 2013 03:28:57 +0000 (UTC) Received: by mail-ob0-f174.google.com with SMTP id wc20so64195obb.33 for ; Mon, 29 Apr 2013 20:28:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=SERqygSoTIPfkR4vpyoykVojfb0r1QxuX8cQpaIkmC4=; b=myG7xOjhaBMrGXrGcvXMCToh7Rn0tIVJ2A1hBrGKBZn/WAd/gED9JAYPftyuj3Twlm bFkrOk8zThYCkuNyKvmJATOkaKd8/eUDfxRVzrFyanBEfdmMpZ1IKvqC4+XCodSWEvyR NkXCfjTY9OwGcAFSZeKTEi9v0RK8pWTvaP3G8PHiFCWpsnQzT2fVJjcqkOk4qp0Dmnio JY1b1RhBupK2Mzi0z63KxDjEWKU5yo/Q8BiSs92Y2sEJBUs8+yjjX24YAu/b+KubAVGy cr3r389g6P3wxTpnjzG96UjsFOibltQdK5KE5FxMv3jKH2iRPff8EbQkLytZVOqqKi2q 8U6A== MIME-Version: 1.0 X-Received: by 10.182.81.65 with SMTP id y1mr24467819obx.82.1367292536833; Mon, 29 Apr 2013 20:28:56 -0700 (PDT) Received: by 10.182.89.232 with HTTP; Mon, 29 Apr 2013 20:28:56 -0700 (PDT) In-Reply-To: <517187B9.40106@smeets.im> References: <20130419020021.GA16918@test.yahoo.com> <51716917.90101@smeets.im> <517187B9.40106@smeets.im> Date: Mon, 29 Apr 2013 22:28:56 -0500 Message-ID: Subject: Re: firefox build broken under clang 3.3 From: Brandon Gooch To: Florian Smeets Content-Type: text/plain; charset=ISO-8859-1 Cc: kit , Dimitry Andric , freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Apr 2013 03:28:57 -0000 On Fri, Apr 19, 2013 at 1:06 PM, Florian Smeets wrote: > On 19.04.13 19:48, Dimitry Andric wrote: >> On Apr 19, 2013, at 17:56, Florian Smeets wrote: >> >>> On 19.04.13 04:01, kit wrote: >>>> updated current and now firefox and thunderbird both fail to build under >>>> the new clang 3.3. has anyone seen this or know how to fix? >>> >>> The fix is here: >>> >>> http://tb.smeets.im/~flo/gecko-clang33-fixes.diff >>> >>> It will be committed after the freeze. >> >> Are these fixes from upstream? If not, it would be nice to send them there... >> >> > > patch-bug854936 is a workaround because we don't have > http://llvm.org/viewvc/llvm-project?view=revision&revision=178950 yet. > > firefox-nightly (in our gecko svn repo) already compiles fine without > patch-clang33 > > So everything should be fine :) > > Florian Thanks for fixing the build issues. Now, I've built Firefox with Clang, but the darn thing segfaults at the drop of a hat: $ gdb /usr/local/bin/firefox firefox.core ... (gdb) bt #0 0x00000008011eefaa in thr_kill () from /lib/libc.so.7 #1 0x00000008024d254d in XRE_InstallX11ErrorHandler () from /usr/local/lib/firefox/libxul.so #2 0x0000000800f74116 in swapcontext () from /lib/libthr.so.3 #3 0x0000000800f73d39 in sigaction () from /lib/libthr.so.3 #4 0x00007ffffffff193 in ?? () #5 0x0000000800f73c20 in sigaction () from /lib/libthr.so.3 Previous frame inner to this frame (corrupt stack?) Rebuilding with debugging symbols provides no further insight, as that seems to provide a work-around for whatever the root cause may be (i.e. no more segfaults). Are any of you seeing something similar? -Brandon