https://bugs.documentfoundation.org/show_bug.cgi?id=164485
Bug ID: 164485
Summary: a few c++ object files fail to be linked when compiled
with -Os optimization option of gcc
Product: LibreOffice
Version: unspecified
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: LibreOffice
Assignee: [email protected]
Reporter: [email protected]
With the master branch, a configuration with the following arguments of
"autogen.sh" fails to build :
./autogen.sh [...] CFLAGS="-pipe -Os" CXXFLAGS="-pipe -Os"
I get the bellow error :
/usr/bin/ld : /home/d/tmp/lo/workdir/CxxObject/xmloff/source/core/xmlimp.o :
dans la fonction « SvXMLImport::SetAutoStyles(SvXMLStylesContext*) » :
xmlimp.cxx:(.text+0x8a3f) : référence indéfinie vers « non-virtual thunk to
cppu::WeakImplHelper<com::sun::star::xml::sax::XFastAttributeList,
com::sun::star::util::XCloneable>::acquire() »
Next I commented the content of the method definition. Then I could compile
further.
Only a few source files are concerned by this problem.
If I :
1. make clean
2. restore the files to the master version (git restore --source=master
xmloff/source/core/xmlimp.cxx)
3. check that my local files have no difference (git diff)
4. run again autogen.sh without my CFLAGS and CXXFLAGS.
Then it properly builds.
Below is my gcc C++ compiler version :
~$ g++ --version | head -1
g++ (Debian 12.2.0-14) 12.2.0
~$
Does this issue hides a wolf ?
--
You are receiving this mail because:
You are the assignee for the bug.