<div dir="ltr"><div>Hi Christian,</div><div>Thanks for your pointers.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 4 Jun 2024 at 22:24, Christian Lohmaier <<a href="mailto:lohmaier@googlemail.com" target="_blank">lohmaier@googlemail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
On Tue, Jun 4, 2024 at 11:37 AM Xinliang Liu <<a href="mailto:xinliang.liu@linaro.org" target="_blank">xinliang.liu@linaro.org</a>> wrote:<br>
><br>
> We follow the building guide: <a href="https://wiki.documentfoundation.org/Development/lode" rel="noreferrer" target="_blank">https://wiki.documentfoundation.org/Development/lode</a><br>
><br>
> By default, run `make check` everything is ok. It can build and run the app successfully.<br>
><br>
> But when building a MacOS publish version it failed:<br>
<br>
> ```<br>
> core % cat distro-configs/LibreOfficeVanillaMacAppStore.conf >> autogen.input<br>
<br>
Note: that this is not necessary, you'd specify<br>
--with-distro=LibreOfficeVanillaMacAppStore to your autogen.input and<br>
it would apply the values.<br>
Note#2: this is not the distro-configuration used by TDF for appstore builds.<br>
<br>
> --enable-debug<br>
> --disable-ext-numbertext<br>
> --disable-firebird-sdbc<br>
> --disable-lotuswordpro<br>
> --disable-lpsolve<br>
<br>
Not used by TDF<br>
<br>
> --disable-odk<br>
> --disable-online-update<br>
<br>
that is used.<br>
<br>
> --disable-pdfimport<br>
> --disable-postgresql-sdbc<br>
<br>
Both not used, --without-system-postgresql is used instead<br>
<br>
> --enable-extension-integration<br>
> --enable-macosx-sandbox<br>
<br>
used.<br>
<br>
> --enable-mpl-subset<br>
> --enable-readonly-installset<br>
<br>
readonly-installset is always forced for macOS/the switch is not necessary<br>
<br>
> --enable-release-build<br>
> --enable-symbols<br>
> --with-help<br>
> --with-myspell-dicts<br>
<br>
used, however using --with-help=html<br>
<br>
> --with-theme=sukapura<br>
> --with-vendor=Collabora<br>
> --without-java<br>
> --without-package-format<br>
<br>
No limit on themes, obviously using different vendor, --without-java<br>
and --without-package format are used.<br>
<br>
> core % ./autogen.sh<br>
> core % make check 2>&1 | tee build.log<br>
> make -j 12 -rs -f /Users/liuxl/work/lode/dev/core/Makefile.gbuild unitcheck slowcheck subsequentcheck check<br>
> ...<br>
> file:///Users/liuxl/work/lode/dev/core//sw/qa/extras/htmlexport/data//xhtml-css.odt:<br>
> (anonymous namespace)::testXHTMLUseCSS::TestBody finished in: 472ms<br>
> /Users/liuxl/work/lode/dev/core/sw/qa/extras/htmlexport/htmlexport.cxx:3039: Assertion<br>
> Test name: (anonymous namespace)::testReqIF_ExportFormulasAsPDF::TestBody<br>
> equality assertion failed<br>
> - Expected: pdf_Portable_Document_Format<br>
> - Actual : generic_Text<br>
> […]<br>
<br>
Would be interesting to see what the generic_Text would contain / or<br>
whether it is just an empty file. Since the biggest<br>
<br>
> Any pointers on this issue?<br>
<br>
You wrote "by default" a make check worked, but you didn't specify<br>
what configure switches you were using, completely empty or just not<br>
the sandboxing ones? did you "make clean" after changing the configure<br>
flags?<br></blockquote><div><br></div><div>I mean "by default" which means "./autogen.sh --without-java". I do "make clean" and "make distclean"</div><div>between configure flags change.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
A fist check is to remove the --disable-* switches then and try again<br>
to find the one actually causing the problem. Since it is pdf related,<br>
might be the disable-pdfimport one, but that's just wild guessing<br>
without looking at the actual test<br></blockquote><div><br></div><div>It failed at running "./autogen.sh --disable-odk --disable-online-update --without-system-postgresql --enable-extension-integration --enable-macosx-sandbox --enable-mpl-subset --enable-readonly-installset --enable-release-build --enable-symbols --with-help=html --with-myspell-dicts --with-vendor=xVendor --without-java --without-package-format --with-theme=colibre 2>&1 | tee autogen1.log" </div><div>...</div><div>checking whether ccache clang++ supports a working C++20 std::strong_order... yes<br>checking whether to create huge library... no<br>checking whether to use icerun wrapper... no<br>checking MPL subset... configure: error: <br> * Need to --disable-postgresql-sdbc - the PostgreSQL database backend.<br> * Need to --disable-lotuswordpro - a Lotus Word Pro file format import filter.<br> * Need to disable PDF import via poppler (--disable-poppler) or use system library.<br> * Need to --disable-lpsolve - calc linear programming solver.<br>Error running configure at ./autogen.sh line 321.<br></div><div><br></div><div><br></div><div>And after adding above --disable-xx , run "./autogen.sh success, but run "make check" failed new test.</div><div> ./autogen.sh --disable-odk --disable-online-update --without-system-postgresql --enable-extension-integration --enable-macosx-sandbox --enable-mpl-subset --enable-readonly-installset --enable-release-build --enable-symbols --with-help=html --with-myspell-dicts --with-vendor=xVendor --without-java --without-package-format --with-theme=colibre --disable-postgresql-sdbc --disable-lotuswordpro --disable-poppler --disable-lpsolve 2>&1 | tee autogen2.log <br>make check 2>&1 | tee build2.log<br></div><div>...</div><div>[_RUN_____] (anonymous namespace)::testURIs::TestBody<br>(anonymous namespace)::testURIs::TestBody finished in: 143ms<br>[_RUN_____] (anonymous namespace)::testVersion15::TestBody<br>(anonymous namespace)::testVersion15::TestBody finished in: 37ms<br>/Users/liuxl/work/lode/dev/core/vcl/qa/cppunit/pdfexport/pdfexport2.cxx:5067: Assertion<br>Test name: (anonymous namespace)::testTdf124116TrackUntrack::TestBody<br>equality assertion failed<br>- Expected: 15<br>- Actual : 17<br><br>Failures !!!<br>Run: 69 Failure total: 1 Failures: 1 Errors: 0<br><br>Error: a unit test failed, please do one of:<br>make CppunitTest_vcl_pdfexport2 CPPUNITTRACE="lldb --" # for interactive debugging on macOS<br>make CppunitTest_vcl_pdfexport2 VALGRIND=memcheck # for memory checking<br><br>You can limit the execution to just one particular test by:<br><br>make CppunitTest_vcl_pdfexport2 CPPUNIT_TEST_NAME="testXYZ" ...above mentioned params...<br><br>make[1]: *** [/Users/liuxl/work/lode/dev/core/solenv/gbuild/CppunitTest.mk:130: /Users/liuxl/work/lode/dev/core/workdir/CppunitTest/vcl_pdfexport2.test] Error 1<br>make[1]: *** Waiting for unfinished jobs....<br>make: *** [Makefile:294: build] Error 2<br></div><div><br></div><div><br></div><div>And BTW, my MacOS version is 14.2.1 (23C71).</div><div><br></div><div>Thanks,</div><div>Xinliang</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
ciao<br>
Christian<br>
</blockquote></div></div>