From owner-freebsd-office@FreeBSD.ORG Thu Apr 11 17:36:13 2013 Return-Path: Delivered-To: freebsd-office@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 994CF7FA; Thu, 11 Apr 2013 17:36:13 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) by mx1.freebsd.org (Postfix) with ESMTP id 63565DDD; Thu, 11 Apr 2013 17:36:13 +0000 (UTC) Received: from spaceball.andric.com (spaceball.andric.com [IPv6:2001:7b8:3a7:0:204:4bff:fe01:de8a]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 714015C44; Thu, 11 Apr 2013 19:36:11 +0200 (CEST) Message-ID: <5166F48E.8090103@FreeBSD.org> Date: Thu, 11 Apr 2013 19:36:14 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Thunderbird/20.0 MIME-Version: 1.0 To: Tijl Coosemans , miwi@freebsd.org, freebsd-office@freebsd.org Subject: Re: Fwd: libreoffice-4.0.1_1 failed on i386 8 References: <5166E5A2.3010708@coosemans.org> In-Reply-To: <5166E5A2.3010708@coosemans.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: Chris Rees X-BeenThere: freebsd-office@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Office applications on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Apr 2013 17:36:13 -0000 On 2013-04-11 18:32, Tijl Coosemans wrote: > On 2013-04-02 06:52, Martin Wilke wrote: ... >>> local symbol 0: discarded in section `.text._ZN3osl5MutexD1Ev' from /tmp/lobuild/workdir/unxfbsdi.pro/CxxObject/sal/rtl/source/logfile.o >>> clang: error: linker command failed with exit code 1 (use -v to see invocation) > > After a bit of googling I found similar errors reported here: > http://llvm.org/bugs/show_bug.cgi?id=9758 > > That page says it's a bug in ld fixed here: > http://sourceware.org/ml/binutils-cvs/2004-06/msg00130.html > http://sourceware.org/ml/binutils-cvs/2004-07/msg00002.html (fixup) > > The first patch was also submitted here: > http://www.freebsd.org/cgi/query-pr.cgi?pr=gnu/161869 > > Libreoffice is built with clang from ports but that still uses ld > from base which is quite old on FreeBSD 8. Isn't it more reasonable to have clang from ports built by ld from the binutils port instead? > I think it's too late > and too risky to start patching binutils in stable/8 and releng/8.4 > now (Dimitry?), I am not sure if such a patch would make it past re@, and even then, users of older releases will be left in the cold. > so maybe it's best to build Libreoffice on 8.x with > ports gcc (which uses ports binutils). See attached patch. Which also uses the ld from the binutils port, so there isn't much difference in the end. :-)