From owner-freebsd-current@FreeBSD.ORG Wed Jul 27 20:40:18 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4BC26106564A for ; Wed, 27 Jul 2011 20:40:18 +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 D3B0B8FC0A for ; Wed, 27 Jul 2011 20:40:17 +0000 (UTC) Received: by wyg24 with SMTP id 24so1705342wyg.13 for ; Wed, 27 Jul 2011 13:40:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=1LpG8bzOZXC/gwhC1t99kIZOmz272j8IvQJ6ZZrhKjo=; b=ItgwFE5Sp9Gd9h5BCcCSXkvXnlcBrhl6an3E4TF8KmTJDMqv/BtsvKeWEyiO7DT8Oq ClXPowA3p2JheJgBPXe1mb/BV2cFju3se9q8MQVgRJH1CRfJzBXP4plLC2qCmNTCyeXk D3fvsZjuvGLnv080JstJ1lkMJzxghpcG91Yb4= Received: by 10.216.202.9 with SMTP id c9mr186750weo.14.1311795281974; Wed, 27 Jul 2011 12:34:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.168.147 with HTTP; Wed, 27 Jul 2011 12:20:21 -0700 (PDT) In-Reply-To: <20110727101918.GA86589@lexx.ifp.tuwien.ac.at> References: <20110727101918.GA86589@lexx.ifp.tuwien.ac.at> From: Renato Botelho Date: Wed, 27 Jul 2011 16:20:21 -0300 Message-ID: To: Alexey Shuvaev Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org Subject: Re: [clang] OpenOffice does not work with clang-compiled libgcc_s.so.1 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, 27 Jul 2011 20:40:18 -0000 On Wed, Jul 27, 2011 at 7:19 AM, Alexey Shuvaev wrote: > Hello list! > > I have decided that clang in mature enough to give it a try on a main > desktop. Everything is working fine except OpenOffice. The problem was > already reported [1] and even analyzed [2]. Although the OP has reported = [3] > that since r218915 he has no problems anymore, I still have :( > Note, that according to [4] it seems it was not specifically fixed upstre= am. > > So, if I compile the whole world (and kernel) with clang, soffice.bin > dumps core. If I recompile the world with gcc and replace /lib/libgcc_s.s= o.1 > with the new one, OpenOffice works fine again. Here are some information > about the system that may be useful: > > ~> uname -a > FreeBSD lexx.ifp.tuwien.ac.at 9.0-BETA1 FreeBSD 9.0-BETA1 #0 r224414: Tue= Jul 26 16:00:43 CEST 2011 =A0 =A0 root@lexx.ifp.tuwien.ac.at:/usr/obj/usr/= src/sys/GENERIC =A0amd64 > > ~> gcc --version > gcc (GCC) 4.2.2 20070831 prerelease [FreeBSD] > Copyright (C) 2007 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. =A0There is= NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOS= E. > > ~> clang --version > FreeBSD clang version 3.0 (trunk 135360) 20110717 > Target: x86_64-unknown-freebsd9.0 > Thread model: posix > > ~> cat /etc/make.conf > SUP_UPDATE=3D =A0 =A0 YES > PORTSSUPFILE=3D =A0 /root/ports-supfile > DOCSUPFILE=3D =A0 =A0 /root/doc-supfile > DOC_LANG=3D =A0 =A0 =A0 en_US.ISO8859-1 > > .if ${.CURDIR:M*/usr/ports*} > .include "/etc/ports.conf" > .endif > > # Building base with clang > .if ${.CURDIR:M*/usr/src*} > .if !defined(CC) || ${CC} =3D=3D "cc" > CC=3D =A0 =A0 =A0 =A0 =A0 =A0 clang > .endif > .if !defined(CXX) || ${CXX} =3D=3D "c++" > CXX=3D =A0 =A0 =A0 =A0 =A0 =A0clang++ > .endif > .if !defined(CPP) || ${CPP} =3D=3D "cpp" > CPP=3D =A0 =A0 =A0 =A0 =A0 =A0clang -E > .endif > # Don't die on warnings > NO_WERROR=3D > WERROR=3D > .endif > # added by use.perl 2011-07-18 17:50:51 > PERL_VERSION=3D5.14.1 > > I don't have much time recently, so any further debugging will be on a > "best effort" basis. Anyway I thought it is better to post it here, so > it won't be just lost. If necessary I can file a PR about it. Hello, I had a similar problem in the past, but IIRC after rebuild openoffice it started to work again. The machine where it happened is not available anymore. Regards --=20 Renato Botelho