From nobody Sat Nov 27 08:42:12 2021 X-Original-To: current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 2666918B6E78 for ; Sat, 27 Nov 2021 08:42:15 +0000 (UTC) (envelope-from avg@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J1Q8k6Vb8z4dr0; Sat, 27 Nov 2021 08:42:14 +0000 (UTC) (envelope-from avg@freebsd.org) Received: from [192.168.0.88] (unknown [195.64.148.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: avg/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 6CD522FC68; Sat, 27 Nov 2021 08:42:14 +0000 (UTC) (envelope-from avg@freebsd.org) Message-ID: Date: Sat, 27 Nov 2021 10:42:12 +0200 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.3.0 From: Andriy Gapon Subject: Re: ctfconvert: rc = 1 Unsupported version [_dwarf_info_load(229)] Content-Language: en-US To: Mark Johnston Cc: FreeBSD Current References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638002534; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=V25bGptePsbj6AcGRAvuMBEwBZ02NcJbRzEysqyAXY0=; b=WqiYo+bdo9+z1ycUVWlS0LbbzFTNm/wwwQ9OZ7g3HmRSXYSJkXl+TRPSqGSofOfNsmf6P+ smLQKbaf8OyFmCQde1TNQ0AjW5egYSDYXA+BRgSnVgxVKYoqyHGd2EJOQQaKsMf5OshfL5 1xFk/BTvgtj2RylSsjyF09I3jCcYSLJqI6NGDFAu3BMrz8pGc10NXE7xt1LvM6AEvRTR8+ 9rLlEwag5I+Rog31q/sAdwEiuQeIU5GCPIXaJx08I3bxdjl1+20t/J3LD1cc0/AsL4v8Fj Z+oMSO/aDTozddMk/Hpq2ajO1vc26GLQLhhxHSldI65CQ9LTolRwUP6crB1UsQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638002534; a=rsa-sha256; cv=none; b=rNoaNArdM/yk/T5jnmNJM4L0FF2u8LJPQ0mpflimV4gOsNxdHySxbgjO3o90dHnqSJanWj X+rkKYr61KMVLJbUT4lLZiY8Zru1Djss1z4tfH+tZ+vlJsx5ObjhgF6qQLdVga//crRxQp zVsbxH2p5Cnxahp+hMsQ8lpl2O5QBYezAwtBf3SOzq3Ars4F152SrPPuCbxiVdigeYQ8ac OkHCKn6FyzcFvLu0gB3TklPjJr0popMii25CrjZk7DQ01G4fd5pZruEzv6RbK95HfJiXqK a8QTSEDvnJ2Te6MiaV5qWa5sRtXYz/SpnS/zuTzyAI6FPgIubOccJ3sKqTWERg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N On 26/11/2021 21:48, Mark Johnston wrote: > On Fri, Nov 26, 2021 at 02:00:27PM -0500, Mark Johnston wrote: >> Thanks, I can reproduce it now. >> >> Our libdwarf is complaining that the first compilation unit header in >> .debug_info contains an unsupported DWARF version number (libdwarf only >> supports 2, 3 and 4). In files compiled by clang it ends up being zero. >> For instance, compiling bin/cat and dumping the .debug_info section: >> >> gcc10: >> c1250000 04000000 00000801 00000000 >> ^ DWARF version >> clang: >> 01000000 00000000 4e230000 00000000 >> >> llvm-dwarfdump and binutils readelf are somehow still able to find a >> valid-looking unit header, but I haven't yet been able to figure out how >> they do that from reading the DWARF 4/5 specs or the LLVM sources. > |Ah, we recently started configuring clang to compress debug sections by > default, and our libdwarf doesn't know how to handle that. As an interim > workaround this could simply be disabled with WITH_CTF is configured: Oh wow, you were very fast at figuring this out. Thank you very much! I'll give the build change a whirl first and then test D33139 a bit later. -- Andriy Gapon