From owner-freebsd-current@FreeBSD.ORG Mon Feb 21 17:55:12 2011 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 70B461065674 for ; Mon, 21 Feb 2011 17:55:12 +0000 (UTC) (envelope-from rbgarga@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id DBF748FC17 for ; Mon, 21 Feb 2011 17:55:09 +0000 (UTC) Received: by wyb32 with SMTP id 32so2054830wyb.13 for ; Mon, 21 Feb 2011 09:55:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=MANr6XOaCqqnHxwTmZHZChlMlbJXMirASLU+4qnGIyA=; b=TpH51436rxFgyH2hv/8QDMgTayoRIsEGf3MTiZAFTW9+RoDhSgM5Wnyd5SVYIG25lq byCXV/+z8Ng13JYmzZJkQWq+5f3Z/vrcQLNASnEvXNjMszy8dIpb+1qN3DqJ+jNTKXZT ICgxjbWBhhu1OwSF3RFjPzgXTvlsRcbgwDzyQ= 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=jYxfCJBAvP2kV5hFTTkIaxTJE1aGyn0ZV0Ec7E6qtLTSdTaKJJsOz8wTsgf21u3+D1 wZfQhHejyywTn/P7Kq+RWDLOhgbeY8a0PuTIJm33QccMoYQ/H+nF8FH0oufFxmIxmljG FdOcj38/A/gj9zdZHIneiKM8TMXYpSyhdawm4= Received: by 10.216.13.194 with SMTP id b44mr1414512web.68.1298309387128; Mon, 21 Feb 2011 09:29:47 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.11.69 with HTTP; Mon, 21 Feb 2011 09:29:27 -0800 (PST) In-Reply-To: References: <20101103134417.GB81149@hoeg.nl> <20101103144449.GD81149@hoeg.nl> From: Renato Botelho Date: Mon, 21 Feb 2011 14:29:27 -0300 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: Mon, 21 Feb 2011 17:55:12 -0000 On Wed, Nov 3, 2010 at 1:05 PM, Renato Botelho wrote: > 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. FYI, after upgrade it today to r218915, and remove the hack to build libgcc with gcc instead of clang, the problem is gone. Now my world + kernel are both 100% built with clang and i can start openoffice as well. -- Renato Botelho