Currently it's impossible to build LO with the compliers on Ubuntu 14.10. Bug 78174 prevents gcc from working. And this error prevents clang from working. $ lsb_release -rcd ; uname -rm Description: Ubuntu 14.10 3.16.0-22-generic i686 $ clang --version Ubuntu clang version 3.5.0-4ubuntu2 (tags/RELEASE_350/final) $ cat autogen.input CC=clang CXX=clang++ --disable-gstreamer-0_10 --enable-gstreamer Build log: [build CHK] filter [build CUT] writerperfect_stream /media/luke/69e81ab4-a375-4ae1-afad-ded6e0f00c45/home/luke/Downloads/lo/core/writerperfect/qa/unit/WPXSvStreamTest.cxx:330:(anonymous namespace)::WPXSvStreamTest::testStructured assertion failed - Expression: !pSubStream->isEnd() WPXSvStreamTest.cxx:330:Assertion Test name: (anonymous namespace)::WPXSvStreamTest::testStructured assertion failed - Expression: !pSubStream->isEnd() Failures !!! Run: 9 Failure total: 1 Failures: 1 Errors: 0 Error: a unit test failed, please do one of: export DEBUGCPPUNIT=TRUE # for exception catching export CPPUNITTRACE="gdb --args" # for interactive debugging on Linux export CPPUNITTRACE="\"[full path to devenv.exe]\" /debugexe" # for interactive debugging in Visual Studio export VALGRIND=memcheck # for memory checking and retry using: make CppunitTest_writerperfect_stream /media/luke/69e81ab4-a375-4ae1-afad-ded6e0f00c45/home/luke/Downloads/lo/core/solenv/gbuild/CppunitTest.mk:76: recipe for target '/media/luke/69e81ab4-a375-4ae1-afad-ded6e0f00c45/home/luke/Downloads/lo/core/workdir/CppunitTest/writerperfect_stream.test' failed make[1]: *** [/media/luke/69e81ab4-a375-4ae1-afad-ded6e0f00c45/home/luke/Downloads/lo/core/workdir/CppunitTest/writerperfect_stream.test] Error 1 make[1]: *** Waiting for unfinished jobs.... Makefile:231: recipe for target 'build' failed make: *** [build] Error 2
Luke - you might get faster input if you email the dev list. Just a suggestion
Well, this test has been around for 6 months. And it works fine on various Linux, Windows and OS X systems (this is the first time I hear of a problem). This strongly suggests that the bug is in clang: it produces faulty code somewhere. If you want to debug this, the code is in writerperfect/source/common/WPXSvInputStream.cxx. You need to determine why the substream is created empty or why the isEnd() test thinks it is empty... Relevant functions are WPXSvInputStreamImpl::getSubStreamByName (which ultimately leads to ZipStorageImpl::getStream) and WPXSvInputStreamImpl::isEnd.
It looks like this is a bug with the version of clang that was shipped with Ubuntu 14.10. I resolved this issue by using the stable version of clang from here: http://llvm.org/apt/ No errors building with $ clang --version Ubuntu clang version 3.5-1ubuntu1 (trunk) (based on LLVM 3.5) Target: i386-pc-linux-gnu