Re: ctfconvert again

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Tue, 15 Jan 2013 08:53:56 +0100
On 2013-01-15 00:57, George Mitchell wrote:
> So I updated my FreeBSD machine to 9.1-RELEASE in the hope of getting
> past the ctfconvert problem that causes a build of 10-CURRENT to say:
>
> ERROR: ctfconvert: failed to initialize DWARF: Unimplemented code at
> [dwarf_init_attr(400)]
>
> while compiling every kernel source file.  Then I checked out head as
> of 245422 into a different partition and tried "make buildworld" (ran
> okay) and "make buildkernel" (failed with the same error as before).

This is because clang outputs dwarf attributes which libdwarf did not
understand before r239872.  However, that fix to libdwarf did not make
it into 9.1-RELEASE, unfortunately.

To fix it locally, you can apply r239872 to your local source tree, and
then rebuild and reinstall libdwarf.

The proper solution would be to make ctfconvert a bootstrap tool for the
kernel build, but it is more complicated...
Received on Tue Jan 15 2013 - 06:53:57 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:34 UTC