From owner-freebsd-current@FreeBSD.ORG Wed Nov 3 14:44:51 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 2F64D106564A for ; Wed, 3 Nov 2010 14:44:51 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from mx0.hoeg.nl (unknown [IPv6:2a01:4f8:101:5343::aa]) by mx1.freebsd.org (Postfix) with ESMTP id B8D728FC08 for ; Wed, 3 Nov 2010 14:44:50 +0000 (UTC) Received: by mx0.hoeg.nl (Postfix, from userid 1000) id EC3242A28FF8; Wed, 3 Nov 2010 15:44:49 +0100 (CET) Date: Wed, 3 Nov 2010 15:44:49 +0100 From: Ed Schouten To: Renato Botelho Message-ID: <20101103144449.GD81149@hoeg.nl> References: <20101103134417.GB81149@hoeg.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="73F5niR8LUvFAf4p" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) 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 14:44:51 -0000 --73F5niR8LUvFAf4p Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * 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} =3D=3D "/usr/src/gnu/lib/libgcc" > >> CC=3Dcc > >> CXX=3Dc++ > >> .endif > >> > >> This way libgcc_s.so is built using gcc instead of clang and the probl= em > >> 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? >=20 > Hi Ed, >=20 > 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. >=20 > 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=3Dclang. Since OOo is a C++ application, I suspect the unwind-related object files to be the culprit. --=20 Ed Schouten WWW: http://80386.nl/ --73F5niR8LUvFAf4p Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAkzRdWEACgkQ52SDGA2eCwVEZACfRzRC2NqY52/u2aD4iOY5/EM/ QV0An06aC7QbuIRiRuCwcmmiXLtNOnRt =K8z6 -----END PGP SIGNATURE----- --73F5niR8LUvFAf4p--