Bug 51288 - Libreoffice doesn't build under FreeBSD + CLANG
Summary: Libreoffice doesn't build under FreeBSD + CLANG
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Installation (show other bugs)
Version:
(earliest affected)
3.5.2 release
Hardware: x86-64 (AMD64) FreeBSD
: medium major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-21 03:14 UTC by Anonymous Helper
Modified: 2013-07-08 21:22 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anonymous Helper 2012-06-21 03:14:53 UTC
/usr/local/bin/xsltproc --nonet --stringparam uri \
        'vnd.sun.star.expand:$LO_LIB_DIR/libspelllo.so' -o ../../../unxfbsd.pro/
misc/spell.component \
        /usr/ports/editors/libreoffice/work/libreoffice-core-3.5.2.2/solenv/bin/
createcomponent.xslt spell.component
Compiling: lingucomponent/unxfbsd.pro/misc/guesslang_dflt_version.c
Compiling: lingucomponent/source/languageguessing/altstrfunc.cxx
Compiling: lingucomponent/source/languageguessing/guess.cxx
Compiling: lingucomponent/source/languageguessing/guesslang.cxx
Compiling: lingucomponent/source/languageguessing/simpleguesser.cxx
Making:    spell.lib
Making:    libspelllo.so
/usr/local/bin/xsltproc --nonet --stringparam uri \
        'vnd.sun.star.expand:$LO_LIB_DIR/libguesslanglo.so' -o ../../unxfbsd.pro
/misc/guesslang.component \
        /usr/ports/editors/libreoffice/work/libreoffice-core-3.5.2.2/solenv/bin/
createcomponent.xslt guesslang.component
Entering /usr/ports/editors/libreoffice/work/libreoffice-core-3.5.2.2/lingucompo
nent/source/spellcheck/macosxspell

 Nothing to build for GUIBASE=unx
Making:    guesslang.lib
Making:    libguesslanglo.so
lingucomponent deliver
Module 'lingucomponent' delivered successfully. 12 files copied, 2 files unchang
ed

-----------------------------------------------------------------------
        Oh dear - something failed during the build - sorry !
  For more help with debugging build errors, please see the section in:
            http://wiki.documentfoundation.org/Development

  internal build errors:

ERROR: error 65280 occurred while making /usr/ports/editors/libreoffice/work/lib
reoffice-core-3.5.2.2/vcl/prj

 it seems that the error is inside 'vcl', please re-run build
 inside this module to isolate the error and/or test your fix:
-----------------------------------------------------------------------

/usr/local/bin/bash
cd /usr/ports/editors/libreoffice/work/libreoffice-core-3.5.2.2
source ./Env.Host.sh
cd vcl
gmake clean # optional
gmake -r

when the problem is isolated and fixed exit and re-run 'make' from the top-level
gmake[1]: *** [build] Error 1
gmake[1]: Leaving directory `/usr/ports/editors/libreoffice/work/libreoffice-cor
e-3.5.2.2'
gmake: *** [source-env-and-recurse] Error 2
*** [do-build] Error code 1

Stop in /usr/ports/editors/libreoffice.
*** [install] Error code 1

Stop in /usr/ports/editors/libreoffice.
mage@rivendell libreoffice % 
mage@rivendell libreoffice % clang --version
FreeBSD clang version 3.1 (branches/release_31 156863) 20120523
Target: x86_64-unknown-freebsd9.0
Thread model: posix
mage@rivendell libreoffice % pwd
/usr/ports/editors/libreoffice
mage@rivendell libreoffice % make showconfig
===> The following configuration options are available for libreoffice-3.5.2_5:
     DEBUG=off: Enable debug flags
     GNOME=off: Enable GNOME Desktop support
     GTK2=on: Enable GTK2 gui toolkit support
     GTK3=off: Enable GTK3 gui toolkit support
     JAVA=off: Add java support (XML Filters, macros)
     KDE4=off: Enable KDE4 Desktop support
     MMEDIA=off: Enable multimedia backend for impress
     PGSQL=off: Build with PostgreSQL-SDBC driver
     SDK=off: Build with SDK
     SVG=off: Enable SVG image support
     SYSTRAY=off: Enable systemtray quickstarter
     WEBDAV=off: Enable webdav protocol
===> Use 'make config' to modify these settings
mage@rivendell libreoffice %
Comment 1 David Tardon 2012-06-21 03:51:04 UTC
Well, obviously noone else uses clang on FreeBSD... It would help if you posted that part of the build log where the error message is, though.
Comment 2 Anonymous Helper 2012-06-22 04:22:56 UTC
some more infos... (I runned gmake -r):

[ build CMP ] sw/util/sw
Segmentation fault (core dumped)
File tested,Test Result,Execution Time (ms)
file:///usr/ports/editors/libreoffice/work/libreoffice-core-3.5.2.2/lotuswordpro/qa/cppunit/data/pass/A14.lwp,Signal 11 during cups initialization called, ignoring cups

Error: a unit test failed, please do one of:

export DEBUGCPPUNIT=TRUE            # for exception catching
export GDBCPPUNITTRACE="gdb --args" # for interactive debugging
export VALGRIND=memcheck            # for memory checking
and retry.
gmake[1]: *** [/usr/ports/editors/libreoffice/work/libreoffice-core-3.5.2.2/workdir/unxfbsd.pro/CppunitTest/lotuswordpro_test_lotuswordpro.test] Error 1
gmake[1]: *** Waiting for unfinished jobs....
TEMPFILE=/tmp/gbuild.XXXXXX.3jx8fyQs &&  mv ${TEMPFILE} /usr/ports/editors/libreoffice/work/libreoffice-core-3.5.2.2/workdir/unxfbsd.pro/LinkTarget/Library/libmswordlo.so.objectlist
gmake[1]: Leaving directory `/usr/ports/editors/libreoffice/work/libreoffice-core-3.5.2.2/tail_build'
gmake: *** [source-env-and-recurse] Error 2

mage@rivemage@rivendell tail_build % sudo DEBUGCPPUNIT=TRUE GDBCPPUNITTRACE="gdb --args" VALGRIND=memcheck gmake -r
ndell tail_build % sudo DEBUGCPPUNIT=TRUE GDBCPPUNITTRACE="gdb --args" VALGRIND=memcheck gmake -r
(...)
[ build LNK ] CppunitTest/libtest_writerfilter_doctok.so
R=/usr/ports/editors/libreoffice/work && S=$R/libreoffice-core-3.5.2.2 && O=$S/solver/unxfbsd.pro && W=$S/workdir/unxfbsd.pro &&  mkdir -p $W/LinkTarget/CppunitTest/ && clang++ -shared -Wl,-z,noexecstack   -Wl,-rpath-link,/lib:/usr/lib -Wl,-z,combreloc   -L$S/solenv/unxfbsd/lib -L$O/lib -L$S/solenv/unxfbsd/lib -L/usr/local/lib  -Wl,--hash-style=gnu  -Wl,--dynamic-list-cpp-new -Wl,--dynamic-list-cpp-typeinfo -Wl,-Bsymbolic-functions  -Wl,--strip-all   $W/CxxObject/writerfilter/qa/cppunittests/doctok/testdoctok.o     -Wl,--start-group  -Wl,--end-group  -L/usr/local/lib -lcppunit    -luno_cppu -luno_cppuhelpergcc3 -ldoctoklo -lresourcemodello -luno_sal -lucbhelper4gcc3 -lwriterfilterlo -o $W/LinkTarget/CppunitTest/libtest_writerfilter_doctok.so
[ build LNK ] CppunitTest/libtest_writerfilter_rtftok.so
gdb: unrecognized option `-return-child-result'
Use `gdb --help' for a complete list of options.

Error: a unit test failed, please do one of:

export DEBUGCPPUNIT=TRUE            # for exception catching
export GDBCPPUNITTRACE="gdb --args" # for interactive debugging
export VALGRIND=memcheck            # for memory checking
and retry.
gmake[1]: *** [/usr/ports/editors/libreoffice/work/libreoffice-core-3.5.2.2/workdir/unxfbsd.pro/CppunitTest/lotuswordpro_test_lotuswordpro.test] Error 1
gmake[1]: *** Waiting for unfinished jobs....
TEMPFILE=/tmp/gbuild.XXXXXX.G5eqKveQ &&  mv ${TEMPFILE} /usr/ports/editors/libreoffice/work/libreoffice-core-3.5.2.2/workdir/unxfbsd.pro/LinkTarget/CppunitTest/libtest_writerfilter_doctok.so.objectlist
gmake[1]: Leaving directory `/usr/ports/editors/libreoffice/work/libreoffice-core-3.5.2.2/tail_build'
gmake: *** [source-env-and-recurse] Error 2
mage@rivendell tail_build % sudo cat /usr/ports/editors/libreoffice/work/libreoffice-core-3.5.2.2/workdir/unxfbsd.pro/LinkTarget/CppunitTest/libtest_writerfilter_doctok.so.objectlist
 /usr/ports/editors/libreoffice/work/libreoffice-core-3.5.2.2/workdir/unxfbsd.pro/CxxObject/writerfilter/qa/cppunittests/doctok/testdoctok.o
Comment 3 Markus Mohrhard 2012-08-07 13:40:45 UTC
Could you run this unit test with GDB and attach the backtrace of the crash?
Comment 4 QA Administrators 2013-05-27 16:54:43 UTC
Dear Bug Submitter,

This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INVALID due to lack of needed information.

For more information about our NEEDINFO policy please read the wiki located here: 
https://wiki.documentfoundation.org/QA/FDO/NEEDINFO

If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed.


Thank you for helping us make LibreOffice even better for everyone!


Warm Regards,
QA Team
Comment 5 QA Administrators 2013-07-08 21:22:58 UTC
Dear Bug Submitter,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INVALID due to inactivity and a lack of information which is needed in order to accurately reproduce and confirm the problem. We encourage you to retest your bug against the latest release. If the issue is still present in the latest stable release, we need the following information (please ignore any that you've already provided):

a) Provide details of your system including your operating system and the latest version of LibreOffice that you have confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED and we will attempt to reproduce the issue. 
Please do not:
a) respond via email 
b) update the version field in the bug or any of the other details on the top section of FDO