[Libreoffice-commits] core.git: Branch 'distro/lhm/libreoffice-6-4+backports' - solenv/gbuild

Michael Stahl (via logerrit) logerrit at kemper.freedesktop.org
Thu May 13 08:30:46 UTC 2021


 solenv/gbuild/platform/com_GCC_defs.mk |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 534932d514be4c0b811c55fb982fa01a0e82429e
Author:     Michael Stahl <michael.stahl at allotropia.de>
AuthorDate: Tue May 4 09:22:03 2021 +0200
Commit:     Thorsten Behrens <thorsten.behrens at allotropia.de>
CommitDate: Thu May 13 10:30:11 2021 +0200

    gbuild: work around GDB 10 bug with DWARF5 in split debug info
    
    GCC 11 defaults to -gdwarf-5 and GDB can only read it if
    -gsplit-dwarf isn't used.
    
    Dwarf Error: wrong unit_type in compilation unit header (is DW_UT_split_compile (0x05), should be DW_UT_type (0x02)) [in module /workdir/CObject/desktop/source/app/main.dwo]
    
    https://sourceware.org/bugzilla/show_bug.cgi?id=27354
    https://bugzilla.redhat.com/show_bug.cgi?id=1956475
    
    Change-Id: Ie2ac7193a29a8f257cf6f1d711f9fa6941df48ad
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115054
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <michael.stahl at allotropia.de>
    (cherry picked from commit dc8c8a4aa20ddd3139a25d5c052cac9bae944cb8)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115193
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    (cherry picked from commit 626ea4e62a3e5005fe9825923a1c0c5bdb61cc08)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115504
    Tested-by: Thorsten Behrens <thorsten.behrens at allotropia.de>
    Reviewed-by: Thorsten Behrens <thorsten.behrens at allotropia.de>

diff --git a/solenv/gbuild/platform/com_GCC_defs.mk b/solenv/gbuild/platform/com_GCC_defs.mk
index 9e3b695360cd..c976652d6ecd 100644
--- a/solenv/gbuild/platform/com_GCC_defs.mk
+++ b/solenv/gbuild/platform/com_GCC_defs.mk
@@ -205,8 +205,12 @@ gb_DEBUGINFO_FLAGS=-g2
 endif
 gb_LINKER_DEBUGINFO_FLAGS=
 
+# GCC 11 defaults to -gdwarf-5, which GDB 10 doesn't support in split debug info
 ifeq ($(HAVE_GCC_SPLIT_DWARF),TRUE)
 gb_DEBUGINFO_FLAGS+=-gsplit-dwarf
+ifeq ($(COM_IS_CLANG),)
+gb_DEBUGINFO_FLAGS+=-gdwarf-4
+endif
 endif
 
 ifeq ($(ENABLE_GDB_INDEX),TRUE)


More information about the Libreoffice-commits mailing list