From owner-freebsd-current@FreeBSD.ORG Wed Nov 3 15:06:03 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F30B106564A for ; Wed, 3 Nov 2010 15:06:03 +0000 (UTC) (envelope-from rbgarga@gmail.com) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id 303F08FC12 for ; Wed, 3 Nov 2010 15:06:02 +0000 (UTC) Received: by wwi17 with SMTP id 17so1534215wwi.1 for ; Wed, 03 Nov 2010 08:06:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=tt5dcchMoNm4dRLBqfNv/1BmgGLzc4M1Zyi3oX/5+Zw=; b=LHS9+VujNkjG9ZPcL10gAY9cQu+gA+kAYkZ3/ZLyXPwT4RVOaH1hVA5JslayRCbsiU nLJeEWYYKuNYnxhpuTmjW0dkkE6F3W8NejyAcg+GZfaGifry4GM81q/7TPNKUxjU6JEA bguULwbF9+UPO7zzTyCxbDSvzKCEBsI9XklcY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=tziKqhRKbtQfOCoW6zOkJJgSSS6xmg5DTiWQff/FCP3AMJTWSqCGdxiM4n7+824Oyg GSGXWPfWJ39592r66/tJj+L5yysaKc7zHsL5DUhYu0L79QJVxyV6qBbAW7BJsSW2jqcl qJgIFw4Cgwyop2Mo1AnC5ggNFO4YW8liVCO7k= Received: by 10.216.231.146 with SMTP id l18mr11080063weq.52.1288796761882; Wed, 03 Nov 2010 08:06:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.182.10 with HTTP; Wed, 3 Nov 2010 08:05:41 -0700 (PDT) In-Reply-To: <20101103144449.GD81149@hoeg.nl> References: <20101103134417.GB81149@hoeg.nl> <20101103144449.GD81149@hoeg.nl> From: Renato Botelho Date: Wed, 3 Nov 2010 13:05:41 -0200 Message-ID: To: Ed Schouten Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Current Subject: Re: Openoffice doesn't work with kernel+world built with Clang X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 03 Nov 2010 15:06:03 -0000 On Wed, Nov 3, 2010 at 12:44 PM, Ed Schouten wrote: > * Renato Botelho , 20101103 15:36: >> On Wed, Nov 3, 2010 at 11:44 AM, Ed Schouten wrote: >> > Garga! >> > >> > * Renato Botelho , 20101103 13:36: >> >> For now i solve my problem adding this to /etc/src.conf >> >> >> >> .if ${.CURDIR} == "/usr/src/gnu/lib/libgcc" >> >> CC=cc >> >> CXX=c++ >> >> .endif >> >> >> >> This way libgcc_s.so is built using gcc instead of clang and the problem >> >> is gone. I just wonder other problems we can find since simething on >> >> libgcc_s.so is broken when built with clang. >> > >> > Would it be hard to figure out which exact object file causes this? >> >> Hi Ed, >> >> I've submitted a ktrace result of openoffice execution [1], i just >> saw it got a SIGBUS at some point, but debug openoffice doesn't >> seem to be a trivial task. >> >> I don't know if we can build OO with debug symbols to make it >> easier to debug. If you know what i can do to help debugging, >> just let me know and i can provide any information. > > Well, I mean, can you build some of libgcc's object files with Clang and > others with GCC? Hint: Just build everything with GCC. Afterwards, go > into the object directory, rm some of the .o files and make CC=clang. > > Since OOo is a C++ application, I suspect the unwind-related object > files to be the culprit. Bingo! When I build everything but unwind-dw2.o with clang it works. This is the object that is causing the problem. -- Renato Botelho