From owner-freebsd-ports@FreeBSD.ORG Mon Jul 23 18:02:19 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A1FFA106566B; Mon, 23 Jul 2012 18:02:19 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from hammer.pct.niksun.com (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 547188FC0A; Mon, 23 Jul 2012 18:02:19 +0000 (UTC) Message-ID: <500D91AA.70502@FreeBSD.org> Date: Mon, 23 Jul 2012 14:02:18 -0400 From: Jung-uk Kim User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:13.0) Gecko/20120626 Thunderbird/13.0.1 MIME-Version: 1.0 To: freebsd-office@freebsd.org X-Enigmail-Version: 1.4.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: [RFC] LibreOffice build issues X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jul 2012 18:02:19 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Over the weekend, I have tried various environments to build LibreOffice. Basically, it is really tricky to do the right thing in 7 and 8 branches. devel/boost-libs in ports tree (1.48) is newer than bundled one (1.44). Unfortunately, Boost 1.48 has various issues in C++98 mode. That's why LibreOffice had to be built with C++11 mode in the first place. Alas, C++11 support for libstdc++ in the base system doesn't exist and 7 & 8 is worse than 9, I think. The only way to build it cleanly for me on 7.4 and 8.2 was with bundled Boost + base GCC in default mode[1] (but I believe you may experience run-time problems). llvm/clang/binutils combo from ports may be able to build it[2] but I don't think we can guarantee its correctness. So, I am stuck here. What do we do now? :-( Jung-uk Kim [1] devel/boost-libs had to be removed first because it is *always* picked up first with "-I/usr/local/include" in the CXXFLAGS. FYI, you may try the port from here: http://people.freebsd.org/~jkim/libreoffice-20120723.tar.bz2 I must warn: your mileage may vary. [2] As usual, you need the following patch for lang/clang to work around the notorious build crash: http://people.freebsd.org/~jkim/patch-tools_clang_lib_Sema_SemaDeclCXX.cpp -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlANkaoACgkQmlay1b9qnVN5iACfcGY+geBA34AZJdL6XJd4HGn6 mcUAn2/1fIP8ibxcUvQtxuz+3PGTaPsc =IBY4 -----END PGP SIGNATURE-----