Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Aug 2017 11:07:56 -0700
From:      Ryan Libby <rlibby@gmail.com>
To:        John Baldwin <jhb@freebsd.org>
Cc:        src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org,  svn-src-head@freebsd.org
Subject:   Re: svn commit: r322824 - in head: lib/clang share/mk usr.bin/clang
Message-ID:  <CAHgpiFwzK5FyB6GDSXdGReO=wAQOAFDxqtQRNZWSR4WHz4ULEA@mail.gmail.com>
In-Reply-To: <201708232330.v7NNUPpV052276@repo.freebsd.org>
References:  <201708232330.v7NNUPpV052276@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Aug 23, 2017 at 4:30 PM, John Baldwin <jhb@freebsd.org> wrote:
> Author: jhb
> Date: Wed Aug 23 23:30:25 2017
> New Revision: 322824
> URL: https://svnweb.freebsd.org/changeset/base/322824
>
> Log:
>   Improve the coverage of debug symbols for MK_DEBUG_FILES.
>
>   - Include debug symbols in static libraries.  This permits binaries
>     to include debug symbols for functions obtained from static libraries.
>   - Permit the C/C++ compiler flags added for MK_DEBUG_FILES to be
>     overridden by setting DEBUG_FILES_CFLAGS.  Use this to limit the debug
>     information for llvm libraries and binaries.
>
>   Reviewed by:  emaste
>   Sponsored by: DARPA / AFRL
>   Differential Revision:        https://reviews.freebsd.org/D12025
>
> Added:
>   head/lib/clang/Makefile.inc   (contents, props changed)
> Modified:
>   head/share/mk/bsd.lib.mk
>   head/share/mk/bsd.prog.mk
>   head/share/mk/bsd.sys.mk
>   head/usr.bin/clang/Makefile.inc

This causes llvm to emit hundreds of new warnings [1] for
"DWARF2 only supports one section per compilation unit"

Are these expected?  Are they a concern?  Should we silence them?
Is this an upstream llvm bug [2]?

[1] https://ci.freebsd.org/job/FreeBSD-head-amd64-build/4719/warnings9Result/new/

$ grep -A 1 "warning: DWARF2 only supports one section"
consoleText.txt  | grep -o "\.section.*" | sort | uniq -c
      3 .section .fini,"ax",@progbits
      6 .section .init
      4 .section .init,"ax",@progbits
     17 .section .note.GNU-stack,"",@progbits
   2785 .section .note.GNU-stack,"",%progbits
      2 .section .reloc, "a"
     21 .section .rodata
      1 .section __xen_guest

[2] https://lists.freebsd.org/pipermail/freebsd-toolchain/2016-March/002122.html



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