From owner-freebsd-office@FreeBSD.ORG Tue Feb 19 05:35:36 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 73610920; Tue, 19 Feb 2013 05:35:36 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by mx1.freebsd.org (Postfix) with ESMTP id 25760D41; Tue, 19 Feb 2013 05:35:35 +0000 (UTC) Received: by mail-pa0-f44.google.com with SMTP id kp1so3208974pab.31 for ; Mon, 18 Feb 2013 21:35:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=M8hnDo6GtWs0ouhpYnRabAML1Q9Qqka//SPpuvvrFk8=; b=mDq7yMUBl5RSmyZm3ARnDTvYVQUYpw00CJlzwJg68iR4kwDF7+qan6fGpHamqe7t3w eYYHEO4ZtA0lTpHLcjK+W11EP8ulkheW7+473cHQaGySYAVkWSVr7h+uZA6uVUKRYr8H /IyhPiwbgVJn0jbpiquK5MaPaR6vxo4w9N2buAacXvCL1eWHqB4wMWpqN/2Ksztqrh++ nwdPGv1B13uQYeK9vYNRLT+EkkvqDf2UNGpwyowZvhF0v8fa1WxmeAokbCP4KzGhdjU7 kpJvU+kQz0VvBJDj6EOLQt/Mp59ptYJ5vAidG5xozPG2n4/QkL7Aet33qWhj4gT1ykuA dSBQ== MIME-Version: 1.0 X-Received: by 10.68.255.161 with SMTP id ar1mr37275364pbd.17.1361252135338; Mon, 18 Feb 2013 21:35:35 -0800 (PST) Sender: kob6558@gmail.com Received: by 10.67.2.65 with HTTP; Mon, 18 Feb 2013 21:35:35 -0800 (PST) In-Reply-To: References: <511CED39.2010909@aldan.algebra.com> Date: Mon, 18 Feb 2013 21:35:35 -0800 X-Google-Sender-Auth: yVNPtO-IbPQOSxTTNdsTXAE5XEo Message-ID: Subject: Re: Why can't gcc-4.2.1 build usable libreoffice? From: Kevin Oberman To: Chris Rees Content-Type: text/plain; charset=UTF-8 Cc: "Mikhail T." , "office@freebsd.org" , stable@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: Tue, 19 Feb 2013 05:35:36 -0000 On Mon, Feb 18, 2013 at 12:26 PM, Chris Rees wrote: > On 14 February 2013 13:57, Mikhail T. wrote: >> Hello! >> >> I just finished building editors/libreoffice with gcc-4.2.1 -- had to >> edit the port's Makefile to prevent it from picking a different >> compiler. Everything built and installed, but libreoffice dies on >> start-up (right after flashing the splash-window): >> >> (gdb) where >> #0 0x000000080596c1aa in cppu::__getTypeEntries () >> from >> /opt/lib/libreoffice/program/../ure-link/lib/libuno_cppuhelpergcc3.so.3 >> #1 0x000000080596c333 in cppu::__queryDeepNoXInterface () >> from >> /opt/lib/libreoffice/program/../ure-link/lib/libuno_cppuhelpergcc3.so.3 >> #2 0x000000080596d4a2 in cppu::WeakImplHelper_query () >> from >> /opt/lib/libreoffice/program/../ure-link/lib/libuno_cppuhelpergcc3.so.3 >> #3 0x00000008116f2b03 in >> cppu::WeakImplHelper1::queryInterface >> () >> from /opt/lib/libreoffice/ure/lib/bootstrap.uno.so >> #4 0x0000000805970347 in >> cppu::OInterfaceContainerHelper::disposeAndClear () >> from >> /opt/lib/libreoffice/program/../ure-link/lib/libuno_cppuhelpergcc3.so.3 >> #5 0x00000008059705b2 in >> cppu::OMultiTypeInterfaceContainerHelper::disposeAndClear () >> from >> /opt/lib/libreoffice/program/../ure-link/lib/libuno_cppuhelpergcc3.so.3 >> #6 0x000000080593309f in cppu::OComponentHelper::dispose () >> from >> /opt/lib/libreoffice/program/../ure-link/lib/libuno_cppuhelpergcc3.so.3 >> #7 0x0000000805963d00 in cppu::OFactoryComponentHelper::dispose () >> from >> /opt/lib/libreoffice/program/../ure-link/lib/libuno_cppuhelpergcc3.so.3 >> #8 0x00000008116ec296 in stoc_smgr::OServiceManager::disposing () >> from /opt/lib/libreoffice/ure/lib/bootstrap.uno.so >> #9 0x000000080596af05 in cppu::WeakComponentImplHelperBase::dispose () >> from >> /opt/lib/libreoffice/program/../ure-link/lib/libuno_cppuhelpergcc3.so.3 >> #10 0x00000008116e6244 in stoc_smgr::ORegistryServiceManager::dispose () >> from /opt/lib/libreoffice/ure/lib/bootstrap.uno.so >> #11 0x000000080596a573 in cppu::WeakComponentImplHelperBase::release () >> from >> /opt/lib/libreoffice/program/../ure-link/lib/libuno_cppuhelpergcc3.so.3 >> #12 0x00000008059482f6 in (anonymous namespace)::createTypeRegistry () >> from >> /opt/lib/libreoffice/program/../ure-link/lib/libuno_cppuhelpergcc3.so.3 >> #13 0x00000008059487bf in >> cppu::defaultBootstrap_InitialComponentContext () >> from >> /opt/lib/libreoffice/program/../ure-link/lib/libuno_cppuhelpergcc3.so.3 >> #14 0x0000000805948918 in >> cppu::defaultBootstrap_InitialComponentContext () >> from >> /opt/lib/libreoffice/program/../ure-link/lib/libuno_cppuhelpergcc3.so.3 >> #15 0x000000080212f883 in >> desktop::Desktop::InitApplicationServiceManager () >> from /opt/lib/libreoffice/program/libmergedlo.so >> #16 0x000000080211f362 in desktop::Desktop::Init () from >> /opt/lib/libreoffice/program/libmergedlo.so >> #17 0x0000000807622113 in InitVCL () from >> /opt/lib/libreoffice/program/libvcllo.so >> #18 0x0000000807623151 in ImplSVMain () from >> /opt/lib/libreoffice/program/libvcllo.so >> #19 0x00000008076232d5 in SVMain () from >> /opt/lib/libreoffice/program/libvcllo.so >> #20 0x000000080214942e in soffice_main () from >> /opt/lib/libreoffice/program/libmergedlo.so >> #21 0x0000000000400773 in main () >> >> I do not blame the office@ team -- the port did not want to use >> gcc-4.2.1, I forced it to. But I'd like to know, what is wrong with the >> compiler shipped by FreeBSD-9.1 (and the only one, if WITHOUT_CLANG is >> defined), that prevents building a healthy libreoffice? >> >> Is there a bug fixed in gcc-4.6? Or is it some (incorrect) assumption >> made by libreoffice code? Thank you, > > Hi Mikhail, > > Libreoffice and openoffice have traditionally recommended that one use > binary packages instead of building it from scratch. > > I'm sure you understand that our compiler in base is rather elderly, > and that a project as insanely huge as Libreoffice is going to be > highly sensitive to minute changes. As a consequence, some very > narrow criteria are chosen to make maintenance of the port possible. > > You are welcome to try with gcc-4.6, but the last I heard it will only > build with clang. Your mileage may vary, please let us know of > success stories! Just for the record, is find that it works fine for me with gcc-4.6. 9.1-STABLE on i386 system. Building it with the default compiler results in a successful build, but the program would simply exit after a few seconds with no error. The exist status was 0. No messages. When I built with 4.6, it builds and runs fine, at least for the things I've tried. (4.6 invoked by setting WITH_GCC.) -- R. Kevin Oberman, Network Engineer E-mail: rkoberman@gmail.com