From owner-freebsd-stable@FreeBSD.ORG Mon Feb 18 20:27:28 2013 Return-Path: Delivered-To: stable@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 072E8DF0; Mon, 18 Feb 2013 20:27:28 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-ia0-x22f.google.com (ia-in-x022f.1e100.net [IPv6:2607:f8b0:4001:c02::22f]) by mx1.freebsd.org (Postfix) with ESMTP id A8DB661D; Mon, 18 Feb 2013 20:27:27 +0000 (UTC) Received: by mail-ia0-f175.google.com with SMTP id r4so5382343iaj.6 for ; Mon, 18 Feb 2013 12:27:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=lHPcqtJcmQOb39qRLvU7K7Feb/DtBrvmHdf5aFAu/Go=; b=FA+TJbbkN/6f8DdB6n/sw3mw1xKhsAI1h70oVGmKsHt7qLYtptQKfb2NwyrLbI/mR6 VPQKFZV/l0wrAx3oBNY+ax2UYAChVEZafp9xl1v0zIzjnbAjBimBTPvlYCFMvB/8EKxL aM7FeKoMrk2kpck0HbIF5fbqLjnDhHjUYl4mVb1+E5lsBFsXVxW+AnDQFLOl2E3kqfbu L7jlkM3fhGDauLguOHhwuLxPQJQTaBHayb8ccrYybufJbDGOvGPXlwzvFKqEbj0MvJBE aJqZpS+nMsG4fwms5BEqnJqca3Qb9BGD8UxRYWlAYtK2cw+gYb6duFh4866CsIAa1rKf SZEQ== X-Received: by 10.50.202.97 with SMTP id kh1mr8354381igc.15.1361219247409; Mon, 18 Feb 2013 12:27:27 -0800 (PST) MIME-Version: 1.0 Sender: utisoft@gmail.com Received: by 10.64.63.12 with HTTP; Mon, 18 Feb 2013 12:26:57 -0800 (PST) In-Reply-To: <511CED39.2010909@aldan.algebra.com> References: <511CED39.2010909@aldan.algebra.com> From: Chris Rees Date: Mon, 18 Feb 2013 20:26:57 +0000 X-Google-Sender-Auth: _UpdVCqD2PP7ejcvOTOpZUW_yH0 Message-ID: Subject: Re: Why can't gcc-4.2.1 build usable libreoffice? To: "Mikhail T." Content-Type: text/plain; charset=ISO-8859-1 Cc: stable@freebsd.org, "office@freebsd.org" X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Feb 2013 20:27:28 -0000 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! Chris