Fwd: libreoffice-4.0.1_1 failed on i386 8
Jung-uk Kim
jkim at FreeBSD.org
Thu Apr 11 17:53:21 UTC 2013
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 2013-04-11 12:52:30 -0400, Chris Rees wrote:
> On 11 April 2013 17:32, Tijl Coosemans <tijl at coosemans.org> wrote:
>> On 2013-04-02 06:52, Martin Wilke wrote:
>>> Begin forwarded message:
>>>
>>>> Excerpt from the build log at
>>>>
>>>> http://pointyhat.freebsd.org/errorlogs/i386-errorlogs/a.8.20130402010859.pointyhat/libreoffice-4.0.1_1.log
>>>>
>>>>
>>>>
[... lines trimmed ...]
>>>>
>>>> [build CXX] sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx
>>>> [build CXX]
>>>> sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx [build
>>>> LNK] StaticLibrary/libooopathutils.a [build LNK]
>>>> Library/libuno_sal.so [build LNK]
>>>> StaticLibrary/libcodemaker_cpp.a [build LNK]
>>>> StaticLibrary/libcodemaker.a [build CXX]
>>>> registry/tools/fileurl.cxx [build CXX]
>>>> registry/tools/options.cxx aclocal-1.12: warning: autoconf
>>>> input should be named 'configure.ac', not 'configure.in'
>>>> local symbol 0: discarded in section
>>>> `.text._ZN3osl5MutexD1Ev' from
>>>> /tmp/lobuild/workdir/unxfbsdi.pro/CxxObject/sal/rtl/source/logfile.o
>>>>
>>>>
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
>>
>> After a bit of googling I found similar errors reported here:
>> http://llvm.org/bugs/show_bug.cgi?id=9758
>>
>> That page says it's a bug in ld fixed here:
>> http://sourceware.org/ml/binutils-cvs/2004-06/msg00130.html
>> http://sourceware.org/ml/binutils-cvs/2004-07/msg00002.html
>> (fixup)
>>
>> The first patch was also submitted here:
>> http://www.freebsd.org/cgi/query-pr.cgi?pr=gnu/161869
>>
>> Libreoffice is built with clang from ports but that still uses
>> ld from base which is quite old on FreeBSD 8. I think it's too
>> late and too risky to start patching binutils in stable/8 and
>> releng/8.4 now (Dimitry?), so maybe it's best to build
>> Libreoffice on 8.x with ports gcc (which uses ports binutils).
>> See attached patch.
Nice catch!
> I've copied in Jung-uk Kim directly, because he's the main one to
> ask on the Libreoffice build.
>
> It certainly looks familiar to me forcing gcc, and it's usually
> worked well for me in the past. I think most people will be
> relieved to have a Libreoffice that works, and gcc is a price worth
> paying.
>
> Jung-uk Kim, is that OK with you?
Unfortunately, it is not okay. As I ranted many times in the past,
you should not link C++ objects built for/with different versions of
libstdc++.
If the ld is the only problem here, all we have to do is to add this line:
USE_BINUTILS= yes
because executing clang from ${LOCALBASE}/bin will look for ld from
the same directory first. If it cannot be found, then it searches
through $PATH.
Jung-uk Kim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)
iQEcBAEBAgAGBQJRZvfuAAoJECXpabHZMqHO7FkH+wT1q12M9Hbt2DETnq2ZG8iN
LBdNzr0LHy29Be4uAX94/R4QZuN2cI7N5itFJTfudV7B2gwwV7vyRlW2F4TWSsKg
+5Le4n4ManilKR67KZSfAz+vj0sTz45aFAAL3LPKgAXTpe6qCXDXvgXm+/psNOPx
BRJ6Kplz6hLlyqEQ5PFKvOeSCD3EnIgXO4d67QA1OL7L3yy6rTdgQTZ1LcXK7oh/
OEUQtnHxgAS+c22Y5HlFwNH12Z0sqzNK3TFhNWQY2cM6++YJcxNueD1BslA9sfB5
0ceuMejMruphDB9Vxb8Isr3NY7rg/bjXOOZ0twOUjMRpJAZu+1BfL9zCW65MzaY=
=q9mU
-----END PGP SIGNATURE-----
More information about the freebsd-office
mailing list