Build LO publish version failed on MacOS M2 pro

Christian Lohmaier lohmaier at googlemail.com
Tue Jun 4 14:14:03 UTC 2024


Hi,

On Tue, Jun 4, 2024 at 11:37 AM Xinliang Liu <xinliang.liu at linaro.org> wrote:
>
> We follow the building guide: https://wiki.documentfoundation.org/Development/lode
>
> By default, run `make check` everything is ok. It can build and run the app successfully.
>
> But when building a MacOS publish version it failed:

> ```
> core % cat  distro-configs/LibreOfficeVanillaMacAppStore.conf >> autogen.input

Note: that this is not necessary, you'd specify
--with-distro=LibreOfficeVanillaMacAppStore to your autogen.input and
it would apply the values.
Note#2: this is not the distro-configuration used by TDF for appstore builds.

> --enable-debug
> --disable-ext-numbertext
> --disable-firebird-sdbc
> --disable-lotuswordpro
> --disable-lpsolve

Not used by TDF

> --disable-odk
> --disable-online-update

that is used.

> --disable-pdfimport
> --disable-postgresql-sdbc

Both not used, --without-system-postgresql is used instead

> --enable-extension-integration
> --enable-macosx-sandbox

used.

> --enable-mpl-subset
> --enable-readonly-installset

readonly-installset is always forced for macOS/the switch is not necessary

> --enable-release-build
> --enable-symbols
> --with-help
> --with-myspell-dicts

used, however using --with-help=html

> --with-theme=sukapura
> --with-vendor=Collabora
> --without-java
> --without-package-format

No  limit on themes, obviously using different vendor, --without-java
and --without-package format are used.

> core % ./autogen.sh
> core % make check 2>&1 | tee build.log
> make -j 12  -rs -f /Users/liuxl/work/lode/dev/core/Makefile.gbuild  unitcheck slowcheck subsequentcheck  check
> ...
> file:///Users/liuxl/work/lode/dev/core//sw/qa/extras/htmlexport/data//xhtml-css.odt:
> (anonymous namespace)::testXHTMLUseCSS::TestBody finished in: 472ms
> /Users/liuxl/work/lode/dev/core/sw/qa/extras/htmlexport/htmlexport.cxx:3039: Assertion
> Test name: (anonymous namespace)::testReqIF_ExportFormulasAsPDF::TestBody
> equality assertion failed
> - Expected: pdf_Portable_Document_Format
> - Actual  : generic_Text
> […]

Would be interesting to see what the generic_Text would contain / or
whether it is just an empty file. Since the biggest

> Any pointers on this issue?

You wrote "by default" a make check worked, but you didn't specify
what configure switches you were using, completely empty or just not
the sandboxing ones? did you "make clean" after changing the configure
flags?

A fist check is to remove the --disable-* switches then and try again
to find the one actually causing the problem. Since it is pdf related,
might be the disable-pdfimport one, but that's just wild guessing
without looking at the actual test

ciao
Christian


More information about the LibreOffice mailing list