Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Nov 2010 13:05:41 -0200
From:      Renato Botelho <rbgarga@gmail.com>
To:        Ed Schouten <ed@80386.nl>
Cc:        FreeBSD Current <current@freebsd.org>
Subject:   Re: Openoffice doesn't work with kernel+world built with Clang
Message-ID:  <AANLkTimW7fC0vt8%2BHNhazfRxWjcAEtM0tENs3rVZ1x6K@mail.gmail.com>
In-Reply-To: <20101103144449.GD81149@hoeg.nl>
References:  <AANLkTi=SjqZnbPQdJKeCk5SvYqg4TjryaNJ759-Dyay=@mail.gmail.com> <AANLkTikuBmtWgCRnGwqb3Q6JhVkuD5s%2BCCt-TDOVX=UV@mail.gmail.com> <20101103134417.GB81149@hoeg.nl> <AANLkTi=npkJuQE4ASEw53NWQ4sHUbdZbVCV56svw9hvc@mail.gmail.com> <20101103144449.GD81149@hoeg.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Nov 3, 2010 at 12:44 PM, Ed Schouten <ed@80386.nl> wrote:
> * Renato Botelho <rbgarga@gmail.com>, 20101103 15:36:
>> On Wed, Nov 3, 2010 at 11:44 AM, Ed Schouten <ed@80386.nl> wrote:
>> > Garga!
>> >
>> > * Renato Botelho <rbgarga@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.

Bingo! When I build everything but unwind-dw2.o with clang it works.
This is the object that is causing the problem.

-- 
Renato Botelho



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimW7fC0vt8%2BHNhazfRxWjcAEtM0tENs3rVZ1x6K>