Openoffice doesn't work with kernel+world built with Clang

Ed Schouten ed at 80386.nl
Wed Nov 3 14:44:51 UTC 2010


* Renato Botelho <rbgarga at gmail.com>, 20101103 15:36:
> On Wed, Nov 3, 2010 at 11:44 AM, Ed Schouten <ed at 80386.nl> wrote:
> > Garga!
> >
> > * Renato Botelho <rbgarga at gmail.com>, 20101103 13:36:
> >> For now i solve my problem adding this to /etc/src.conf
> >>
> >> .if ${.CURDIR} == "/usr/src/gnu/lib/libgcc"
> >> CC=cc
> >> CXX=c++
> >> .endif
> >>
> >> This way libgcc_s.so is built using gcc instead of clang and the problem
> >> is gone. I just wonder other problems we can find since simething on
> >> libgcc_s.so is broken when built with clang.
> >
> > Would it be hard to figure out which exact object file causes this?
> 
> Hi Ed,
> 
> I've submitted a ktrace result of openoffice execution [1], i just
> saw it got a SIGBUS at some point, but debug openoffice doesn't
> seem to be a trivial task.
> 
> I don't know if we can build OO with debug symbols to make it
> easier to debug. If you know what i can do to help debugging,
> just let me know and i can provide any information.

Well, I mean, can you build some of libgcc's object files with Clang and
others with GCC? Hint: Just build everything with GCC. Afterwards, go
into the object directory, rm some of the .o files and make CC=clang.

Since OOo is a C++ application, I suspect the unwind-related object
files to be the culprit.

-- 
 Ed Schouten <ed at 80386.nl>
 WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20101103/41b443ee/attachment.pgp


More information about the freebsd-current mailing list