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

next in thread | previous in thread | raw e-mail | index | archive | help

--73F5niR8LUvFAf4p
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* 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} =3D=3D "/usr/src/gnu/lib/libgcc"
> >> CC=3Dcc
> >> CXX=3Dc++
> >> .endif
> >>
> >> This way libgcc_s.so is built using gcc instead of clang and the probl=
em
> >> 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?
>=20
> Hi Ed,
>=20
> 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.
>=20
> 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=3Dclang.

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

--=20
 Ed Schouten <ed@80386.nl>
 WWW: http://80386.nl/

--73F5niR8LUvFAf4p
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (FreeBSD)

iEYEARECAAYFAkzRdWEACgkQ52SDGA2eCwVEZACfRzRC2NqY52/u2aD4iOY5/EM/
QV0An06aC7QbuIRiRuCwcmmiXLtNOnRt
=K8z6
-----END PGP SIGNATURE-----

--73F5niR8LUvFAf4p--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101103144449.GD81149>