Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Mar 2014 19:11:16 +0100
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Ian Lepore <ian@FreeBSD.org>
Cc:        Larry Baird <lab@maxwell.gta.com>, freebsd-stable@FreeBSD.org
Subject:   Re: HEADS UP: merged llvm/clang 3.4
Message-ID:  <B373566C-03DB-4508-9088-4E343A2638F5@FreeBSD.org>
In-Reply-To: <1396029772.81853.150.camel@revolution.hippie.lan>
References:  <20140328165121.13797.qmail@mailgate.gta.com> <6F2AEDEC-4173-45B0-9C21-1D80E33660F6@FreeBSD.org> <1396029772.81853.150.camel@revolution.hippie.lan>

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

--Apple-Mail=_E099B458-BFD8-4B77-ACF2-ACD39ADCC978
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

On 28 Mar 2014, at 19:02, Ian Lepore <ian@FreeBSD.org> wrote:
> On Fri, 2014-03-28 at 18:51 +0100, Dimitry Andric wrote:
>> On 28 Mar 2014, at 17:51, Larry Baird <lab@maxwell.gta.com> wrote:
>> ...
>>> This GDB was configured as "i386-marcel-freebsd"...Dwarf Error: =
wrong version in compilation unit header (is 4, should be 2) [in module =
/usr2/lab/6.2/sw/src/hello]
>>=20
>> The default debug info format for clang 3.4 is now DWARF4, which gdb
>> from base cannot handle.  So please use gdb from ports, which is much
>> better anyway, or compile with -gdwarf-2. =20
>>=20
>> -Dimitry
>>=20
>=20
> Something seems very wrong here.  We now have a 10-stable in which you
> can't debug an app that crashes without rebuilding the entire system
> with different options or adding non-base tools?  That seems... not
> right for a branch with "stable" in its name.

You need to rebuild the system anyway, if you want debug information, so
nothing changed?  If you insist on wanting to use the crummy gdb in
base, which should have been axed years ago, then just use
DEBUG_FLAGS=3D-gdwarf-2, otherwise use ports gdb, which any sensible
person should do.

-Dimitry


--Apple-Mail=_E099B458-BFD8-4B77-ACF2-ACD39ADCC978
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)

iEYEARECAAYFAlM1u0QACgkQsF6jCi4glqMwHACdFHSvidsQ9HrhQPIOQHcEkxWg
ZFgAoLiTvZ/cDnpcXpua3ggDaQoPQBn5
=rmKF
-----END PGP SIGNATURE-----

--Apple-Mail=_E099B458-BFD8-4B77-ACF2-ACD39ADCC978--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B373566C-03DB-4508-9088-4E343A2638F5>