HEADS UP: merged llvm/clang 3.4

Dimitry Andric dim at FreeBSD.org
Fri Mar 28 18:08:11 UTC 2014


On 28 Mar 2014, at 19:03, Craig Rodrigues <rodrigc at FreeBSD.org> wrote:
> On Fri, Mar 28, 2014 at 10:51 AM, Dimitry Andric <dim at freebsd.org> wrote:
>> On 28 Mar 2014, at 17:51, Larry Baird <lab at 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]
>> 
>> 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.
> 
> Is this also true for kernel debugging with kgdb?

Please read UPDATING, which mentions this.  Another MFC will be done
soon, which automagically sets -gdwarf-2 for kernel builds, until
somebody ports the kgdb extensions to e.g. lldb or ports gdb.

-Dimitry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20140328/dc3a5074/attachment.sig>


More information about the freebsd-stable mailing list