Ask Your Question
0

Unit test fails while building LibreOffice

asked 2017-11-02 19:28:10 +0200

fovecsernyes gravatar image

I can't build LibreOffice, because sw_ooxmlexport3.test fails. Using MBP retina, macOS 10.11.

 warn:sw.core:73344:994414:sw/source/core/attr/calbck.cxx:170: a 12SwCharFormat client added as listener to a 12SwCharFormat during client iteration.
warn:sw.core:73344:994414:sw/source/core/attr/calbck.cxx:170: a 12SwCharFormat client added as listener to a 12SwCharFormat during client iteration.
warn:sw.core:73344:994414:sw/source/core/attr/calbck.cxx:170: a 12SwCharFormat client added as listener to a 12SwCharFormat during client iteration.
warn:sw.core:73344:994414:sw/source/core/attr/calbck.cxx:170: a 12SwCharFormat client added as listener to a 12SwCharFormat during client iteration.
warn:sw.core:73344:994414:sw/source/core/attr/calbck.cxx:170: a 12SwCharFormat client added as listener to a 12SwCharFormat during client iteration.
warn:sw.core:73344:994414:sw/source/core/attr/calbck.cxx:170: a 12SwCharFormat client added as listener to a 12SwCharFormat during client iteration.
warn:sw.core:73344:994414:sw/source/core/attr/calbck.cxx:170: a 12SwCharFormat client added as listener to a 12SwCharFormat during client iteration.
warn:sw.core:73344:994414:sw/source/core/attr/calbck.cxx:170: a 12SwCharFormat client added as listener to a 12SwCharFormat during client iteration.
warn:sw.core:73344:994414:sw/source/core/attr/calbck.cxx:170: a 12SwCharFormat client added as listener to a 12SwCharFormat during client iteration.
warn:sw.core:73344:994414:sw/source/core/attr/calbck.cxx:170: a 12SwCharFormat client added as listener to a 12SwCharFormat during client iteration.
testFileOpenInputOutputError::Import_Export_Import finished in: 3556ms
/Users/markvecsernyes/lode/dev/core/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx:588: Assertion
Test name: testTdf106974_int32Crop::Import
assertion failed
- Expression: sal_Int32( 40470 ) < aGraphicCropStruct.Right
- 39400

/Users/markvecsernyes/lode/dev/core/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx:588: Assertion
Test name: testTdf106974_int32Crop::Import_Export_Import
assertion failed
- Expression: sal_Int32( 40470 ) < aGraphicCropStruct.Right
- 39398

Failures !!!
Run: 86   Failure total: 2   Failures: 2   Errors: 0
warn:fwk.desktop:73344:994414:framework/source/services/desktop.cxx:1068: Desktop disposed before terminating it
warn:vcl.schedule.deinit:73344:994414:vcl/source/app/scheduler.cxx:158: DeInit task: Timer a: 1 p: 1 svtools::GraphicCache maReleaseTimer 10000ms (0x7fad9e551920) (ignored)
warn:vcl.schedule.deinit:73344:994414:vcl/source/app/scheduler.cxx:174: DeInit active tasks: 1 (ignored: 1)
2017-11-02 19:15:59.921 cppunittester[73344:994414] *** -[NSAutoreleasePool release]: This pool has already been released, do not drain it (double release).
warn:unotools.config:73344:994414:unotools/source/config/configmgr.cxx:167: ConfigManager not empty

Error: a unit test failed, please do one of:
make CppunitTest_sw_ooxmlexport3 CPPUNITTRACE="lldb --"       # for interactive debugging on OS X
make CppunitTest_sw_ooxmlexport3 VALGRIND=memcheck            # for memory checking

/Users/markvecsernyes/lode/dev/core/solenv/gbuild/CppunitTest.mk:114: recipe for target '/Users/markvecsernyes/lode/dev/core/workdir/CppunitTest/sw_ooxmlexport3.test' failed
make[1]: *** [/Users/markvecsernyes/lode/dev/core/workdir/CppunitTest/sw_ooxmlexport3.test] Error 1
make[1]: *** Waiting for unfinished jobs....
Makefile:266: recipe for target 'build' failed
make: *** [build] Error 2
edit retag flag offensive close merge delete

Comments

Development-related questions are better solved at #libreoffice-dev IRC channel at FreeNode.

Anyway, you didn't say which version are you building, and from which source. (Refer to Development wiki for details about setting up the development environment, but you should be already ~OK because you went that far).

Mike Kaganski gravatar imageMike Kaganski ( 2017-11-02 19:47:49 +0200 )edit

2 Answers

Sort by » oldest newest most voted
0

answered 2018-04-08 05:38:57 +0200

updated 2018-04-08 05:47:02 +0200

Same here. My first time build/make of Libreoffice clone(2018.4.5) from official repo failed with 2 errors: "Run: 88 Failure total: 2 Failures: 2 Errors: 0", I didn't use "build-nocheck", I found other person was suggested to build with "build-nocheck" option.

Failures !!! Run: 88 Failure total: 2 Failures: 2 Errors: 0 warn:vcl.schedule.deinit:62067:4554479:vcl/source/app/scheduler.cxx:166: DeInit task: Timer a: 1 p: 1 drawinglayer ImpTimedRefDev destroy mpVirDev 180000ms (0x7fbf85f1c510) warn:vcl.schedule.deinit:62067:4554479:vcl/source/app/scheduler.cxx:166: DeInit task: Timer a: 1 p: 1 svtools::GraphicCache maReleaseTimer 10000ms (0x7fbf83b6f4c0) (ignored) warn:vcl.schedule.deinit:62067:4554479:vcl/source/app/scheduler.cxx:182: DeInit active tasks: 2 (ignored: 1) warn:fwk.desktop:62067:4554479:framework/source/services/desktop.cxx:1068: Desktop disposed before terminating it 2018-04-05 14:55:32.332 cppunittester[62067:4554479] * -[NSAutoreleasePool release]: This pool has already been released, do not drain it (double release). warn:unotools.config:62067:4554479:unotools/source/config/configmgr.cxx:168: ConfigManager not empty

Error: a unit test failed, please do one of: make CppunitTest_sw_ooxmlexport3 CPPUNITTRACE="lldb --" # for interactive debugging on OS X make CppunitTest_sw_ooxmlexport3 VALGRIND=memcheck # for memory checking

You can limit the execution to just one particular test by:

make CppunitTest_sw_ooxmlexport3 CPPUNIT_TEST_NAME="testXYZ" ...above mentioned params...

/Users/almas/lode/dev/core/solenv/gbuild/CppunitTest.mk:114: recipe for target '/Users/almas/lode/dev/core/workdir/CppunitTest/sw_ooxmlexport3.test' failed make[1]: * [/Users/almas/lode/dev/core/workdir/CppunitTest/sw_ooxmlexport3.test] Error 1 make[1]: Waiting for unfinished jobs.... Makefile:282: recipe for target 'build' failed make: ** [build] Error 2

But https://wiki.documentfoundation.org/D... says:"make performs a number of checks (e.g. unit tests). That is a subset make check tests. There is a build-nocheck switch that disables the checks when building. It may speed up the build considerably. However, it should definitely not be used when building for the first time, because otherwise you may miss a problem with your setup that will give you a build with strange behavior that nobody else sees." I can't build/make with no errors on MacBook Pro2011/macOS 10.13.4 with latest Xcode and its commandline tools.

Commands I used was:"${LODE_HOME}/opt/bin/make clean && ${LODE_HOME}/opt/bin/make -s ENABLE_SYMBOLS=true 2>&1"

autogen.input: #--enable-debug --enable-dbgutil --enable-symbols --disable-cve-tests --without-junit

Are there any other switches/options than last 2 options specified in autogen.input, which cause make errors?

I already asked this in mailing list, but with no working solution so far. How can I build LO successfully?

edit flag offensive delete link more
0

answered 2017-12-30 09:28:33 +0200

updated 2017-12-30 09:29:21 +0200

You can try building without tests using make build-nocheck This was suggested to me on IRC. Also the IRC is the best place for such queries.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-11-02 19:28:10 +0200

Seen: 551 times

Last updated: Apr 08 '18