I've been following the Libreoffice wiki, and the official PKGBUILD file
(https://gitlab.archlinux.org/archlinux/packaging/packages/libreoffice-fresh/-/blob/main/PKGBUILD?ref_type=heads).
During the make process, I only get up to building firebird, after re-running
make a few times, to build Skia, pdfium, and box2d.
I notice that the PKGBUILD applies some patches specific to version 25.8.2 of
Libreoffice: should I use those, or is there a better technique
I'm not aware of.
*********************************
Here's my autogen.input file:
*********************************
--enable-debug
--enable-ld=mold
--enable-gdb-index
--with-parallelism=11
--with-vendor='Ben Cottrell'
--enable-split-app-modules
--enable-release-build
--prefix=/opt
--exec-prefix=/opt
--sysconfdir=/etc
--libdir=/usr/lib
--mandir=/usr/share/man
--with-lang=en-GB
--with-help=html
--disable-avahi
--enable-dbus
--enable-evolution2
--enable-gio
--disable-gtk3-kde5
--disable-kf5
--enable-kf6
--enable-qt5
--enable-qt6
--enable-gtk3
--enable-gtk4
--enable-introspection
--enable-lto
--enable-openssl
--enable-odk
--enable-python=system
--enable-scripting-beanshell
--enable-scripting-javascript
--disable-dconf
--disable-report-builder
--enable-ext-wiki-publisher
--enable-ext-nlpsolver
--without-fonts
--with-system-libxml
--with-system-libcdr
--with-system-mdds
--without-myspell-dicts
--with-system-libvisio
--with-system-libcmis
--with-system-libmspub
--with-system-libexttextcat
--with-system-orcus
--with-system-liblangtag
--with-system-libodfgen
--with-system-libmwaw
--with-system-libetonyek
--with-system-libfreehand
--without-system-firebird
--with-system-zxing
--with-system-libtommath
--with-system-libatomic-ops
--with-system-libebook
--with-system-libabw
--with-system-coinmp
--with-system-dicts
--with-external-dict-dir=/usr/share/hunspell
--with-external-hyph-dir=/usr/share/hyphen
--with-external-thes-dir=/usr/share/mythes
--with-system-beanshell
--with-system-cppunit
--with-system-graphite
--with-system-glm
--with-system-libnumbertext
--with-system-libwpg
--with-system-libwps
--with-system-redland
--with-system-libzmf
--with-system-gpgmepp
--with-system-libstaroffice
--with-jdk-home=/usr/lib/jvm/default/
--with-ant-home=/usr/share/ant
--with-system-boost
--with-system-icu
--with-system-cairo
--with-system-libs
--with-system-mythes
--with-system-headers
--without-system-hsqldb
--without-junit
--with-system-clucene
--without-system-box2d
--without-system-dragonbox
--without-system-libfixmath
--without-system-frozen
--without-system-zxcvbn
--without-system-java-websocket
--with-system-rhino
--without-system-libeot
--with-gdrive-client-id=${_google_default_client_id}
--with-gdrive-client-secret=${_google_default_client_secret}
--disable-dependency-tracking
*********************************
Here's the console output from "make":
*********************************
The Firebird3 package has been configured with the following options:
Raw devices : enabled
Service name : gds_db
Service port : 3050
GPRE modules : c_cxx.cpp
Install Dir : /usr/local/firebird
/home/benc/Documents/git-repos/libreoffice/workdir/UnpackedTarball/firebird/src/common/classes/Synchronize.cpp:
In destructor 'virtual Firebird::Synchronize::~Synchronize()':
/home/benc/Documents/git-repos/libreoffice/workdir/UnpackedTarball/firebird/src/common/classes/Synchronize.cpp:73:13:
warning: variable 'ret' set but not used [-Wunused-but-set-variable]
73 | int ret = pthread_mutex_destroy(&mutex);
| ^~~
In file included from /usr/include/unicode/utrans.h:23,
from
/home/benc/Documents/git-repos/libreoffice/workdir/UnpackedTarball/firebird/src/common/unicode_util.cpp:44:
/usr/include/unicode/uset.h:1655:10: error: 'u16string_view' in namespace 'std'
does not name a type
1655 | std::u16string_view operator*() const {
| ^~~~~~~~~~~~~~
/usr/include/unicode/uset.h:1763:5: error: 'UnicodeString' does not name a type
1763 | UnicodeString operator*() const {
| ^~~~~~~~~~~~~
In file included from
/home/benc/Documents/git-repos/libreoffice/workdir/UnpackedTarball/firebird/src/common/unicode_util.cpp:46:
/usr/include/unicode/ucol.h:1553:37: error: 'ConvertibleToU16StringView' was
not declared in this scope [-Wtemplate-body]
1553 | typename = std::enable_if_t<ConvertibleToU16StringView<T> &&
ConvertibleToU16StringView<U>>>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/unicode/ucol.h:1553:65: error: template argument 1 is invalid
[-Wtemplate-body]
1553 | typename = std::enable_if_t<ConvertibleToU16StringView<T> &&
ConvertibleToU16StringView<U>>>
| ^
/usr/include/unicode/ucol.h:1553:25: error: '<expression error>' in namespace
'std' does not name a type [-Wtemplate-body]
1553 | typename = std::enable_if_t<ConvertibleToU16StringView<T> &&
ConvertibleToU16StringView<U>>>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/unicode/ucol.h:1553:67: error: expected '>' before '&&' token
[-Wtemplate-body]
1553 | typename = std::enable_if_t<ConvertibleToU16StringView<T> &&
ConvertibleToU16StringView<U>>>
| ^~
/usr/include/unicode/ucol.h:1553:100: error: expected unqualified-id before '>'
token [-Wtemplate-body]
1553 | typename = std::enable_if_t<ConvertibleToU16StringView<T> &&
ConvertibleToU16StringView<U>>>
|
^
/usr/include/unicode/ucol.h:1571:16: error: 'UnicodeString' has not been
declared [-Wtemplate-body]
1571 | bool match(UnicodeString lhs, UnicodeString rhs) const {
| ^~~~~~~~~~~~~
compilation terminated due to -fmax-errors=8.
make[5]: *** [make.rules:102:
/home/benc/Documents/git-repos/libreoffice/workdir/UnpackedTarball/firebird/temp/Debug/common/unicode_util.o]
Error 1
make[5]: *** Waiting for unfinished jobs....
make[4]: *** [Makefile:187: master_process] Error 2
make[3]: *** [Makefile:72: Debug] Error 2
make[2]: *** [Makefile:6: Debug] Error 2
make[1]: ***
[/home/benc/Documents/git-repos/libreoffice/external/firebird/ExternalProject_firebird.mk:30:
/home/benc/Documents/git-repos/libreoffice/workdir/ExternalProject/firebird/build]
Error 1
make: *** [Makefile:301: build] Error 2