From owner-freebsd-current@FreeBSD.ORG Wed Jul 27 10:44:21 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 640AE106566C for ; Wed, 27 Jul 2011 10:44:21 +0000 (UTC) (envelope-from shuvaev@physik.uni-wuerzburg.de) Received: from mailrelay.rz.uni-wuerzburg.de (wrz3028.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.freebsd.org (Postfix) with ESMTP id 1D3BC8FC13 for ; Wed, 27 Jul 2011 10:44:20 +0000 (UTC) Received: from virusscan.mail (localhost [127.0.0.1]) by mailrelay.mail (Postfix) with ESMTP id 590BB5ACA1 for ; Wed, 27 Jul 2011 12:19:20 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by virusscan.mail (Postfix) with ESMTP id 573355AC9D for ; Wed, 27 Jul 2011 12:19:20 +0200 (CEST) X-Virus-Scanned: by amavisd-new at uni-wuerzburg.de Received: from mail.physik.uni-wuerzburg.de (wthp192.physik.uni-wuerzburg.de [132.187.40.192]) by mailmaster.uni-wuerzburg.de (Postfix) with ESMTP id 3A3935D19A for ; Wed, 27 Jul 2011 12:19:20 +0200 (CEST) Received: from lexx.ifp.tuwien.ac.at ([128.131.127.223]) by mail.physik.uni-wuerzburg.de (Lotus Domino Release 8.5.2FP2HF144) with ESMTP id 2011072712191990-48252 ; Wed, 27 Jul 2011 12:19:19 +0200 Date: Wed, 27 Jul 2011 12:19:18 +0200 From: Alexey Shuvaev To: freebsd-current@freebsd.org Message-ID: <20110727101918.GA86589@lexx.ifp.tuwien.ac.at> MIME-Version: 1.0 Organization: Universitaet Wuerzburg User-Agent: Mutt/1.5.21 (2010-09-15) X-MIMETrack: Itemize by SMTP Server on domino1/uni-wuerzburg(Release 8.5.2FP2HF144 | May 11, 2011) at 07/27/2011 12:19:20 PM, Serialize by Router on domino1/uni-wuerzburg(Release 8.5.2FP2HF144 | May 11, 2011) at 07/27/2011 12:19:20 PM, Serialize complete at 07/27/2011 12:19:20 PM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [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 10:44:21 -0000 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 upstream. 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.so.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 root@lexx.ifp.tuwien.ac.at:/usr/obj/usr/src/sys/GENERIC amd64 ~> 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. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ~> 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= YES PORTSSUPFILE= /root/ports-supfile DOCSUPFILE= /root/doc-supfile DOC_LANG= 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} == "cc" CC= clang .endif .if !defined(CXX) || ${CXX} == "c++" CXX= clang++ .endif .if !defined(CPP) || ${CPP} == "cpp" CPP= clang -E .endif # Don't die on warnings NO_WERROR= WERROR= .endif # added by use.perl 2011-07-18 17:50:51 PERL_VERSION=5.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. Thanks, Alexey. [1] http://lists.freebsd.org/pipermail/freebsd-current/2010-October/020668.html [2] http://lists.freebsd.org/pipermail/freebsd-current/2010-November/020838.html [3] http://lists.freebsd.org/pipermail/freebsd-current/2011-February/023003.html [4] http://llvm.org/bugs/show_bug.cgi?id=8541