On Fri, May 24, 2013 at 03:25:02PM +0000, John Frankish wrote:
> Ref:
> 
> Beyond Linux(r) From Scratch - Version 2013-05-22
> Chapter 35. Office Programs
> LibreOffice-4.0.3
> 
> On an x86_64 machine, using the required and recommended dependencies, 
> libreoffice fails to build - please see details below.
> 
> Regards
> John
> 
> ----------
> 
> CFLAGS="-mtune=generic -Os -pipe" CXXFLAGS="-mtune=generic -Os -pipe" 
> ./autogen.sh --prefix=/usr/local --sysconfdir=/usr/local/etc 
> --with-lang="en-US" --with-alloc=system --without-java --disable-gconf 
> --disable-odk --disable-postgresql-sdbc --with-system-boost 
> --with-system-cairo --with-system-curl --with-system-expat --with-system-icu 
> --with-system-jpeg --with-system-lcms2 --with-system-libpng 
> --with-system-libxml --with-system-mesa-headers --with-system-neon 
> --with-system-nss --with-system-odbc --with-system-openldap 
> --with-system-openssl --with-system-poppler --with-system-redland 
> --with-system-zlib --disable-python
> 
> make build
> ...
> [build LNK] Library/vbaobj.uno.so
> [build LNK] Library/libscuilo.so
> [build CUT] sc_ucalc
> `.text._ZN19ScVbaCollectionBaseIN4cppu15WeakImplHelper1IN3ooo3vba11XCollectionEEEE4ItemERKN3com3sun4star3uno3AnyESD_'
>  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 
> /usr/src/libreoffice-4.0.3.3/workdir/unxlngx6.pro/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 
> /usr/src/libreoffice-4.0.3.3/workdir/unxlngx6.pro/CxxObject/sc/source/ui/vba/vbasheetobjects.o
[ snip ]
> collect2: ld returned 1 exit status
> make[2]: *** 
> [/usr/src/libreoffice-4.0.3.3/workdir/unxlngx6.pro/LinkTarget/Library/vbaobj.uno.so]
>  Error 1
> make[2]: *** Waiting for unfinished jobs....
> 
 The key phrase is "defined in discarded section `.text."

 Google finds nothing recent, but previous similar reports were for
gcc bugs (although it might be a linker bug).  Is your system LFS ?
You are using /usr/local, so I guess it's something else.  Are you
using the "gold" linker (it's known to have had problems in the past)
?  And which versions of gcc and binutils ?

 If all else fails, perhaps try omitting -Os (known to sometimes do
the wrong thing on kernel compiles), but I don't have any confidence
it will help here.  If it's a distro, maybe upgrading or downgrading
gcc / binutils.

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to