> -----Original Message-----
> From: blfs-support-boun...@linuxfromscratch.org [mailto:blfs-support-
> boun...@linuxfromscratch.org] On Behalf Of Ken Moffat
> Sent: Sunday, 26 May, 2013 00:53
> To: BLFS Support List
> Subject: Re: [blfs-support] libreoffice fails to build
> 
> 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._ZN19ScVbaCollectionBaseIN4cppu15WeakImplHelper1IN3ooo3vba11
> > XCo
> > llectionEEEE4ItemERKN3com3sun4star3uno3AnyESD_' referenced in
> > section 
> > `.rodata._ZN19ScVbaCollectionBaseIN4cppu15WeakImplHelper1IN3ooo3vba11X
> >
> > CollectionEEEE4ItemERKN3com3sun4star3uno3AnyESD_[ScVbaCollectionBase<c
> > ppu::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._ZN19ScVbaCollectionBaseIN4cppu15WeakImplHelper1IN3ooo3vba11XCo
> > llectionEEEE4ItemERKN3com3sun4star3uno3AnyESD_[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 ?

Not fully LFS - tinycorelinux x86_64 but the toolchain was built following 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) ?

No, I'm not using the "gold" linker

> And which versions of gcc and binutils ?

gcc-4.6.1 and binutils-2.21.1

>  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.

Thanks for the reply, I'll have a look

John
-- 
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