[Bug 257638] Compressed debug build fails on powerpc, mips

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 05 Aug 2021 15:36:03 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257638

            Bug ID: 257638
           Summary: Compressed debug build fails on powerpc, mips
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs_at_FreeBSD.org
          Reporter: emaste_at_freebsd.org

I introduced compressed debug in:

commit c910570e757305ba4a974b628bcd8fd4278908a7
Author: Ed Maste <emaste_at_FreeBSD.org>
Date:   Mon Mar 1 12:25:22 2021 -0500

    Use compressed debug in standalone userland debug files by default

    The compiler supports CFLAGS=-gz=zlib to compress .debug sections in
    object files, libraries, and binaries.  Enable it to reduce disk usage
    for standalone debug files (and /usr/obj).

    Reviewed by:    dim, kevans
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D29002

but the build failed on powerpc and mips and so was reverted:

commit 89ed2ecb14ceabc27883282cf96559a9e7d52717
Author: Ed Maste <emaste_at_FreeBSD.org>
Date:   Thu Aug 5 08:34:03 2021 -0400

    Disable compressed debug by default

    In c910570e7573 I enabled compressed debug sections, but it broke mips
    and powerpc.  Disable it for now.

    Reported by:    jenkins, manu
    Sponsored by:   The FreeBSD Foundation

Failure examples:

FreeBSD-main-powerpc-build - Build #20581

 --- Scrt1.o ---
ld  -o Scrt1.o -r Scrt1_c.o crtbrand.o feature_note.o ignore_init_note.o
ld: error: Scrt1_c.o:(.debug_loc): unsupported compression type
ld: error: Scrt1_c.o:(.debug_abbrev): unsupported compression type
ld: error: Scrt1_c.o:(.debug_info): unsupported compression type
ld: error: Scrt1_c.o:(.debug_str): unsupported compression type
ld: error: Scrt1_c.o:(.debug_line): unsupported compression type

These ones also failed with *crt objects:
FreeBSD-main-powerpc64-build
FreeBSD-main-mips64-build
FreeBSD-main-mips-build
FreeBSD-main-powerpcspe-build

This one was in stand:

FreeBSD-main-powerpc64le-build

 --- all_subdir_stand ---
ld: error:
/usr/obj/usr/src/powerpc.powerpc64le/stand/ficl/libficl.a(ficl.o):(.debug_loc):
unsupported compression type
ld: error:
/usr/obj/usr/src/powerpc.powerpc64le/stand/ficl/libficl.a(ficl.o):(.debug_abbrev):
unsupported compression type
ld: error:
/usr/obj/usr/src/powerpc.powerpc64le/stand/ficl/libficl.a(ficl.o):(.debug_info):
unsupported compression type
ld: error:
/usr/obj/usr/src/powerpc.powerpc64le/stand/ficl/libficl.a(ficl.o):(.debug_str):
unsupported compression type
ld: error:
/usr/obj/usr/src/powerpc.powerpc64le/stand/ficl/libficl.a(ficl.o):(.debug_line):
unsupported compression type
ld: error:
/usr/obj/usr/src/powerpc.powerpc64le/stand/ficl/libficl.a(dict.o):(.debug_loc):
unsupported compression type
ld: error:
/usr/obj/usr/src/powerpc.powerpc64le/stand/ficl/libficl.a(dict.o):(.debug_abbrev):
unsupported compression type
ld: error:
/usr/obj/usr/src/powerpc.powerpc64le/stand/ficl/libficl.a(dict.o):(.debug_info):
unsupported compression type
ld: error:
/usr/obj/usr/src/powerpc.powerpc64le/stand/ficl/libficl.a(dict.o):(.debug_ranges):
unsupported compression type
ld: error:
/usr/obj/usr/src/powerpc.powerpc64le/stand/ficl/libficl.a(dict.o):(.debug_str):
unsupported compression type

-- 
You are receiving this mail because:
You are the assignee for the bug.
Received on Thu Aug 05 2021 - 15:36:03 UTC

Original text of this message