Bug 37935

Summary: libreoffice 3.4.0.2 compile error - ERROR: error 65280 occurred while making /sources/libreoffice-bootstrap-3.4.0.2/sc/prj
Product: LibreOffice Reporter: huanglixian <solohuang>
Component: LibreOfficeAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: other   
Whiteboard:
Crash report or crash signature: Regression By:

Description huanglixian 2011-06-04 17:14:12 UTC
Compile in linux host with GCC 4.6.0 and Binutils 2.21.

Bellow is the error log:

=============
Building module sw
=============
Entering /sources/libreoffice-bootstrap-3.4.0.2/scripting/inc

Entering /sources/libreoffice-bootstrap-3.4.0.2/sc/prj

cd .. && make -s -r -j1  && make -s -r deliverlog
Entering /sources/libreoffice-bootstrap-3.4.0.2/sw/prj

cd .. && make -s -r -j1  && make -s -r deliverlog
gb_LinkTarget_add_library_objects,CppunitTest/libtest_sc_ucalc.so,sc
gb_LinkTarget_add_linktarget_objects,CppunitTest/libtest_sc_ucalc.so,Library/libscli.so
[ build LNK ] Library/libscli.so
[ build LNK ] Library/libswli.so
[ build LNK ] Library/libscdli.so
[ build LNK ] Library/libscfiltli.so
[ build LNK ] Library/libmswordli.so
[ build LNK ] Library/libscuili.so
[ build LNK ] Library/libswdli.so
[ build LNK ] Library/vbaobj.uno.so
[ build LNK ] Library/libswuili.so
[ build LNK ] Library/vbaswobj.uno.so
`.L121' referenced in section `.rodata._ZN19ScVbaCollectionBaseIN4cppu15WeakImplHelper1IN3ooo3vba11XCollectionEEEE4ItemERKN3com3sun4star3uno3AnyESD_[ScVbaCollectionBase<cppu::WeakImplHelper1<ooo::vba::XCollection> >::Item(com::sun::star::uno::Any const&, com::sun::star::uno::Any const&)]' of /sources/libreoffice-bootstrap-3.4.0.2/solver/340/unxlngi6.pro/workdir/CxxObject/sc/source/ui/vba/vbasheetobjects.o: defined in discarded section `.text._ZN19ScVbaCollectionBaseIN4cppu15WeakImplHelper1IN3ooo3vba11XCollectionEEEE4ItemERKN3com3sun4star3uno3AnyESD_[non-virtual thunk to ScVbaCollectionBase<cppu::WeakImplHelper1<ooo::vba::XCollection> >::Item(com::sun::star::uno::Any const&, com::sun::star::uno::Any const&)]' of /sources/libreoffice-bootstrap-3.4.0.2/solver/340/unxlngi6.pro/workdir/CxxObject/sc/source/ui/vba/vbasheetobjects.o
`.L122' referenced in section `.rodata._ZN19ScVbaCollectionBaseIN4cppu15WeakImplHelper1IN3ooo3vba11XCollectionEEEE4ItemERKN3com3sun4star3uno3AnyESD_[ScVbaCollectionBase<cppu::WeakImplHelper1<ooo::vba::XCollection> >::Item(com::sun::star::uno::Any const&, com::sun::star::uno::Any const&)]' of /sources/libreoffice-bootstrap-3.4.0.2/solver/340/unxlngi6.pro/workdir/CxxObject/sc/source/ui/vba/vbasheetobjects.o: defined in discarded section `.text._ZN19ScVbaCollectionBaseIN4cppu15WeakImplHelper1IN3ooo3vba11XCollectionEEEE4ItemERKN3com3sun4star3uno3AnyESD_[non-virtual thunk to ScVbaCollectionBase<cppu::WeakImplHelper1<ooo::vba::XCollection> >::Item(com::sun::star::uno::Any const&, com::sun::star::uno::Any const&)]' of /sources/libreoffice-bootstrap-3.4.0.2/solver/340/unxlngi6.pro/workdir/CxxObject/sc/source/ui/vba/vbasheetobjects.o
`.L123' referenced in section `.rodata._ZN19ScVbaCollectionBaseIN4cppu15WeakImplHelper1IN3ooo3vba11XCollectionEEEE4ItemERKN3com3sun4star3uno3AnyESD_[ScVbaCollectionBase<cppu::WeakImplHelper1<ooo::vba::XCollection> >::Item(com::sun::star::uno::Any const&, com::sun::star::uno::Any const&)]' of /sources/libreoffice-bootstrap-3.4.0.2/solver/340/unxlngi6.pro/workdir/CxxObject/sc/source/ui/vba/vbasheetobjects.o: defined in discarded section `.text._ZN19ScVbaCollectionBaseIN4cppu15WeakImplHelper1IN3ooo3vba11XCollectionEEEE4ItemERKN3com3sun4star3uno3AnyESD_[non-virtual thunk to ScVbaCollectionBase<cppu::WeakImplHelper1<ooo::vba::XCollection> >::Item(com::sun::star::uno::Any const&, com::sun::star::uno::Any const&)]' of /sources/libreoffice-bootstrap-3.4.0.2/solver/340/unxlngi6.pro/workdir/CxxObject/sc/source/ui/vba/vbasheetobjects.o
`.L124' referenced in section `.rodata._ZN19ScVbaCollectionBaseIN4cppu15WeakImplHelper1IN3ooo3vba11XCollectionEEEE4ItemERKN3com3sun4star3uno3AnyESD_[ScVbaCollectionBase<cppu::WeakImplHelper1<ooo::vba::XCollection> >::Item(com::sun::star::uno::Any const&, com::sun::star::uno::Any const&)]' of /sources/libreoffice-bootstrap-3.4.0.2/solver/340/unxlngi6.pro/workdir/CxxObject/sc/source/ui/vba/vbasheetobjects.o: defined in discarded section `.text._ZN19ScVbaCollectionBaseIN4cppu15WeakImplHelper1IN3ooo3vba11XCollectionEEEE4ItemERKN3com3sun4star3uno3AnyESD_[non-virtual thunk to ScVbaCollectionBase<cppu::WeakImplHelper1<ooo::vba::XCollection> >::Item(com::sun::star::uno::Any const&, com::sun::star::uno::Any const&)]' of /sources/libreoffice-bootstrap-3.4.0.2/solver/340/unxlngi6.pro/workdir/CxxObject/sc/source/ui/vba/vbasheetobjects.o
`.L124' referenced in section `.rodata._ZN19ScVbaCollectionBaseIN4cppu15WeakImplHelper1IN3ooo3vba11XCollectionEEEE4ItemERKN3com3sun4star3uno3AnyESD_[ScVbaCollectionBase<cppu::WeakImplHelper1<ooo::vba::XCollection> >::Item(com::sun::star::uno::Any const&, com::sun::star::uno::Any const&)]' of /sources/libreoffice-bootstrap-3.4.0.2/solver/340/unxlngi6.pro/workdir/CxxObject/sc/source/ui/vba/vbasheetobjects.o: defined in discarded section `.text._ZN19ScVbaCollectionBaseIN4cppu15WeakImplHelper1IN3ooo3vba11XCollectionEEEE4ItemERKN3com3sun4star3uno3AnyESD_[non-virtual thunk to ScVbaCollectionBase<cppu::WeakImplHelper1<ooo::vba::XCollection> >::Item(com::sun::star::uno::Any const&, com::sun::star::uno::Any const&)]' of /sources/libreoffice-bootstrap-3.4.0.2/solver/340/unxlngi6.pro/workdir/CxxObject/sc/source/ui/vba/vbasheetobjects.o
collect2: ld returned 1 exit status
make[1]: *** [/sources/libreoffice-bootstrap-3.4.0.2/solver/340/unxlngi6.pro/workdir/LinkTarget/Library/vbaobj.uno.so] Error 1
dmake:  Error code 2, while making 'all'
Retrying /sources/libreoffice-bootstrap-3.4.0.2/sc/prj

cd .. && make -s -r -j1  && make -s -r deliverlog
[ build MOD ] sw
[ build ALL ] top level modules: sw
[ build ALL ] loaded modules: sw
[ build CHK ] loaded modules: sw
gb_LinkTarget_add_library_objects,CppunitTest/libtest_sc_ucalc.so,sc
gb_LinkTarget_add_linktarget_objects,CppunitTest/libtest_sc_ucalc.so,Library/libscli.so
[ build LNK ] Library/vbaobj.uno.so
`.L121' referenced in section `.rodata._ZN19ScVbaCollectionBaseIN4cppu15WeakImplHelper1IN3ooo3vba11XCollectionEEEE4ItemERKN3com3sun4star3uno3AnyESD_[ScVbaCollectionBase<cppu::WeakImplHelper1<ooo::vba::XCollection> >::Item(com::sun::star::uno::Any const&, com::sun::star::uno::Any const&)]' of /sources/libreoffice-bootstrap-3.4.0.2/solver/340/unxlngi6.pro/workdir/CxxObject/sc/source/ui/vba/vbasheetobjects.o: defined in discarded section `.text._ZN19ScVbaCollectionBaseIN4cppu15WeakImplHelper1IN3ooo3vba11XCollectionEEEE4ItemERKN3com3sun4star3uno3AnyESD_[non-virtual thunk to ScVbaCollectionBase<cppu::WeakImplHelper1<ooo::vba::XCollection> >::Item(com::sun::star::uno::Any const&, com::sun::star::uno::Any const&)]' of /sources/libreoffice-bootstrap-3.4.0.2/solver/340/unxlngi6.pro/workdir/CxxObject/sc/source/ui/vba/vbasheetobjects.o
`.L122' referenced in section `.rodata._ZN19ScVbaCollectionBaseIN4cppu15WeakImplHelper1IN3ooo3vba11XCollectionEEEE4ItemERKN3com3sun4star3uno3AnyESD_[ScVbaCollectionBase<cppu::WeakImplHelper1<ooo::vba::XCollection> >::Item(com::sun::star::uno::Any const&, com::sun::star::uno::Any const&)]' of /sources/libreoffice-bootstrap-3.4.0.2/solver/340/unxlngi6.pro/workdir/CxxObject/sc/source/ui/vba/vbasheetobjects.o: defined in discarded section `.text._ZN19ScVbaCollectionBaseIN4cppu15WeakImplHelper1IN3ooo3vba11XCollectionEEEE4ItemERKN3com3sun4star3uno3AnyESD_[non-virtual thunk to ScVbaCollectionBase<cppu::WeakImplHelper1<ooo::vba::XCollection> >::Item(com::sun::star::uno::Any const&, com::sun::star::uno::Any const&)]' of /sources/libreoffice-bootstrap-3.4.0.2/solver/340/unxlngi6.pro/workdir/CxxObject/sc/source/ui/vba/vbasheetobjects.o
`.L123' referenced in section `.rodata._ZN19ScVbaCollectionBaseIN4cppu15WeakImplHelper1IN3ooo3vba11XCollectionEEEE4ItemERKN3com3sun4star3uno3AnyESD_[ScVbaCollectionBase<cppu::WeakImplHelper1<ooo::vba::XCollection> >::Item(com::sun::star::uno::Any const&, com::sun::star::uno::Any const&)]' of /sources/libreoffice-bootstrap-3.4.0.2/solver/340/unxlngi6.pro/workdir/CxxObject/sc/source/ui/vba/vbasheetobjects.o: defined in discarded section `.text._ZN19ScVbaCollectionBaseIN4cppu15WeakImplHelper1IN3ooo3vba11XCollectionEEEE4ItemERKN3com3sun4star3uno3AnyESD_[non-virtual thunk to ScVbaCollectionBase<cppu::WeakImplHelper1<ooo::vba::XCollection> >::Item(com::sun::star::uno::Any const&, com::sun::star::uno::Any const&)]' of /sources/libreoffice-bootstrap-3.4.0.2/solver/340/unxlngi6.pro/workdir/CxxObject/sc/source/ui/vba/vbasheetobjects.o
`.L124' referenced in section `.rodata._ZN19ScVbaCollectionBaseIN4cppu15WeakImplHelper1IN3ooo3vba11XCollectionEEEE4ItemERKN3com3sun4star3uno3AnyESD_[ScVbaCollectionBase<cppu::WeakImplHelper1<ooo::vba::XCollection> >::Item(com::sun::star::uno::Any const&, com::sun::star::uno::Any const&)]' of /sources/libreoffice-bootstrap-3.4.0.2/solver/340/unxlngi6.pro/workdir/CxxObject/sc/source/ui/vba/vbasheetobjects.o: defined in discarded section `.text._ZN19ScVbaCollectionBaseIN4cppu15WeakImplHelper1IN3ooo3vba11XCollectionEEEE4ItemERKN3com3sun4star3uno3AnyESD_[non-virtual thunk to ScVbaCollectionBase<cppu::WeakImplHelper1<ooo::vba::XCollection> >::Item(com::sun::star::uno::Any const&, com::sun::star::uno::Any const&)]' of /sources/libreoffice-bootstrap-3.4.0.2/solver/340/unxlngi6.pro/workdir/CxxObject/sc/source/ui/vba/vbasheetobjects.o
`.L124' referenced in section `.rodata._ZN19ScVbaCollectionBaseIN4cppu15WeakImplHelper1IN3ooo3vba11XCollectionEEEE4ItemERKN3com3sun4star3uno3AnyESD_[ScVbaCollectionBase<cppu::WeakImplHelper1<ooo::vba::XCollection> >::Item(com::sun::star::uno::Any const&, com::sun::star::uno::Any const&)]' of /sources/libreoffice-bootstrap-3.4.0.2/solver/340/unxlngi6.pro/workdir/CxxObject/sc/source/ui/vba/vbasheetobjects.o: defined in discarded section `.text._ZN19ScVbaCollectionBaseIN4cppu15WeakImplHelper1IN3ooo3vba11XCollectionEEEE4ItemERKN3com3sun4star3uno3AnyESD_[non-virtual thunk to ScVbaCollectionBase<cppu::WeakImplHelper1<ooo::vba::XCollection> >::Item(com::sun::star::uno::Any const&, com::sun::star::uno::Any const&)]' of /sources/libreoffice-bootstrap-3.4.0.2/solver/340/unxlngi6.pro/workdir/CxxObject/sc/source/ui/vba/vbasheetobjects.o
collect2: ld returned 1 exit status
make[1]: *** [/sources/libreoffice-bootstrap-3.4.0.2/solver/340/unxlngi6.pro/workdir/LinkTarget/Library/vbaobj.uno.so] Error 1
dmake:  Error code 2, while making 'all'
Comment 1 huanglixian 2011-06-04 17:22:33 UTC
Here is the compile configuration:

./configure --prefix=/opt/libreoffice \
            --with-lang="zh-CN" \
            --without-junit --without-java --disable-epm --disable-mozilla
Comment 2 Philippe Gauthier 2011-06-16 10:03:11 UTC
Seems like the problem is already known and a patch already exists [1]. Current master branch (June 15, 2011) needs this patch to compile with gcc 4.6.0.

[1] http://permalink.gmane.org/gmane.comp.documentfoundation.libreoffice.devel/10987
Comment 3 huanglixian 2011-06-20 08:24:22 UTC
THanks very much. The patches do work.


--- vbahelper/inc/vbahelper/vbacollectionimpl.hxx	2011-01-28 20:27:51.507604173 +0000
+++ vbahelper/inc/vbahelper/vbacollectionimpl.hxx	2011-01-28 20:28:26.230045727 +0000
@@ -238,7 +238,7 @@

 // including a HelperInterface implementation
 template< typename Ifc1 >
-class ScVbaCollectionBase : public InheritedHelperInterfaceImpl< Ifc1 >
+class VBAHELPER_DLLPUBLIC ScVbaCollectionBase : public InheritedHelperInterfaceImpl< Ifc1 >
 {
 typedef InheritedHelperInterfaceImpl< Ifc1 > BaseColBase;
 protected:
--- sc/Library_vbaobj.mk
+++ sc/Library_vbaobj.mk
@@ -118,7 +118,6 @@ $(eval $(call gb_Library_add_exception_objects,vbaobj,\
         sc/source/ui/vba/vbaquerytable \
         sc/source/ui/vba/vbarange \
         sc/source/ui/vba/vbasheetobject \
-        sc/source/ui/vba/vbasheetobjects \
         sc/source/ui/vba/vbastyle \
         sc/source/ui/vba/vbastyles \
         sc/source/ui/vba/vbatextboxshape \
@@ -133,6 +132,11 @@ $(eval $(call gb_Library_add_exception_objects,vbaobj,\
         sc/source/ui/vba/vbawsfunction \
 ))

+$(eval $(call gb_Library_add_cxxobjects,vbaobj,\
+        sc/source/ui/vba/vbasheetobjects \
+        , $(gb_COMPILERNOOPTFLAGS) $(gb_LinkTarget_EXCEPTIONFLAGS) \
+))
+
 ifneq (,$(filter LINUX DRAGONFLY OPENBSD FREEBSD NETBSD, $(OS)))
 $(eval $(call gb_Library_set_ldflags,vbaobj,\
 	$$(LDFLAGS) \