From owner-freebsd-office@FreeBSD.ORG Sun May 12 19:40:25 2013 Return-Path: Delivered-To: office@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 5F00BE6; Sun, 12 May 2013 19:40:25 +0000 (UTC) (envelope-from tijl@coosemans.org) Received: from mailrelay006.isp.belgacom.be (mailrelay006.isp.belgacom.be [195.238.6.172]) by mx1.freebsd.org (Postfix) with ESMTP id CB549B25; Sun, 12 May 2013 19:40:24 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmkGAOzuj1FbsIHu/2dsb2JhbABagwc3wCeBAhd0gh8BAQUnLyIBEAsOCgkWDwkDAgECASceBg0BBQIBAYgMCLsfjygHg1UDj3SBKYc1iGuHJIMROg Received: from 238.129-176-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.176.129.238]) by relay.skynet.be with ESMTP; 12 May 2013 21:39:15 +0200 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.7/8.14.7) with ESMTP id r4CJdDG5023791; Sun, 12 May 2013 21:39:14 +0200 (CEST) (envelope-from tijl@coosemans.org) Message-ID: <518FEFD9.6000005@coosemans.org> Date: Sun, 12 May 2013 21:39:05 +0200 From: Tijl Coosemans User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:17.0) Gecko/20130408 Thunderbird/17.0.5 MIME-Version: 1.0 To: Gabor Pali Subject: Re: Fixing USE_GCC for LibreOffice on i386 References: <518D61C1.7020402@gmail.com> <518E129C.9010208@coosemans.org> <518F72C9.9060107@coosemans.org> In-Reply-To: X-Enigmail-Version: 1.5.1 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="----enig2FKQSSWUBVBFIDMICTJCH" Cc: office@freebsd.org 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: Sun, 12 May 2013 19:40:25 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2FKQSSWUBVBFIDMICTJCH Content-Type: multipart/mixed; boundary="------------040100030707060504010405" This is a multi-part message in MIME format. --------------040100030707060504010405 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 2013-05-12 17:28, Gabor Pali wrote: > On Sun, May 12, 2013 at 12:45 PM, Tijl Coosemans w= rote: >> Can you test if creating /etc/libmap.conf helps? >=20 > No, it does not help. Note that soffice.bin uses the right version of > libstdc++ from base: >=20 > $ ldd /usr/local/lib/libreoffice/program/soffice.bin > /usr/local/lib/libreoffice/program/soffice.bin: > .. > libstdc++.so.6 =3D> /usr/lib/libstdc++.so.6 (0x28138000) > .. >=20 > This is quite sensible to me as poudriere did not pull anything that > would depend on lang/gcc* while building the packages. (I started > from scratch.) >=20 > The application dies at the same place as before (excerpt from gdbtrace= =2Elog): Ok. One other thing I thought of is this patch: http://llvm.org/viewvc/llvm-project?view=3Drevision&revision=3D175057 It has been applied to base system llvm, but not port llvm: http://svnweb.freebsd.org/base?view=3Drevision&revision=3D246858 Can you put the attached patch in devel/llvm/files/ and rebuild llvm, clang and libreoffice? --------------040100030707060504010405 Content-Type: text/plain; charset=ISO-8859-15; name="patch-lib-Target-X86-X86SelectionDAGInfo.cpp" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="patch-lib-Target-X86-X86SelectionDAGInfo.cpp" --- lib/Target/X86/X86SelectionDAGInfo.cpp.orig +++ lib/Target/X86/X86SelectionDAGInfo.cpp @@ -202,6 +202,14 @@ SrcPtrInfo.getAddrSpace() >=3D 256) return SDValue(); =20 + // ESI might be used as a base pointer, in that case we can't simply o= verwrite + // the register. Fall back to generic code. + const X86RegisterInfo *TRI =3D + static_cast(DAG.getTarget().getRegisterIn= fo()); + if (TRI->hasBasePointer(DAG.getMachineFunction()) && + TRI->getBaseRegister() =3D=3D X86::ESI) + return SDValue(); + MVT AVT; if (Align & 1) AVT =3D MVT::i8; --------------040100030707060504010405-- ------enig2FKQSSWUBVBFIDMICTJCH Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (FreeBSD) iF4EAREIAAYFAlGP7+EACgkQfoCS2CCgtiveywD9HS6pkC65701YDpJvxLucemyq EJ2jM8LnCjtArlDbf+IA/AwNfB9OHH6rEqKlCIq+2MD6bmuZx/thIHh33RCtylZY =gDRx -----END PGP SIGNATURE----- ------enig2FKQSSWUBVBFIDMICTJCH--