From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id KMHZM//GgmnpBCcAWB0awg (envelope-from ) for ; Tue, 03 Feb 2026 23:11:43 -0500 Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=tSHpcZ9k; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id C5B5C1E0BA; Tue, 03 Feb 2026 23:11:43 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED,RDNS_NONE autolearn=no autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (unknown [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id C1FB11E089 for ; Tue, 03 Feb 2026 23:11:42 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 368E34BA2E17 for ; Wed, 4 Feb 2026 04:11:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 368E34BA2E17 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1770178302; bh=kkStu5rixd8jdZexjzPCcXNepk7TzkC078xM2LKEWJ8=; h=To:Cc:Subject:In-Reply-To:References:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=tSHpcZ9kL/8GRaGJW9Ero/E+wMGFdnedq9FPqS9QywdItK7lLhfIUVGxfA//BSB5i Vuv6WgAk/EUxkIY2ltXBOmIflXpeMnX+2CJipXYd1fJSc/S6n1fC9IrwFvyEewsvwv qX/SXvvbXt09DrriftGx0Dho9IqycZoHeIed0y3I= Received: from mail-yx1-xb12e.google.com (mail-yx1-xb12e.google.com [IPv6:2607:f8b0:4864:20::b12e]) by sourceware.org (Postfix) with ESMTPS id 24ADD4BA543C for ; Wed, 4 Feb 2026 04:11:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 24ADD4BA543C ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 24ADD4BA543C ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1770178265; cv=none; b=u1/Sv0zfRemzYrHisuj/7KEhuJ42PyIU1LMIpmB0RTCFdbkswPiti2FylY73sS2RBrI9swct5R1CuqvqRbfzNmPBJOlzk4LS2FC6sNAAahgNfTQMGnnd6/DOqox4iS95bs2zQO/J9Wz+4V5gXMGg2prIIjgqYWZs16NMDSfo9XU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1770178265; c=relaxed/simple; bh=soowY2sPxlA3Ss0NPCFMUN9jPM1IHLfmRMD30/a4KO8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=kWWTdiLIL9M2CJILMVUGjtuYJ4wjLk97KBCGXcBnmvpfTEvoOAzaOwD+yI1XAmTwVn4ynIz1621uOtb2fkqzLMezHA/DWEM9Gg8sm0Cy+jkj9JdR/JjWvalVBKobQkpzALPaXU7a67WTqlVniCgcYDWxTj3owmJGrLCLJepYzM4= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 24ADD4BA543C Received: by mail-yx1-xb12e.google.com with SMTP id 956f58d0204a3-649389b1cc5so6037183d50.1 for ; Tue, 03 Feb 2026 20:11:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770178264; x=1770783064; h=content-transfer-encoding:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kkStu5rixd8jdZexjzPCcXNepk7TzkC078xM2LKEWJ8=; b=epqGyAcgntlYclTyVms7m8gABXV8ojTi75PgOt2K7ieOvdkb3I/H6vJ48ADTtxZEWY RPF9PM+9UkLS432ct8k7jEjQ+l+fSmD/fpQTAZhloNacrkHQvgKQOR6VLFftBLB7uXe8 1vovg/P3XdazvOMhUv9OIgHvvyNC8yJkVQZSbnMFYk5hkdiI/AfDKutw4kAnWDWWhSdk y4zg5tvsqUfCPQ0JKcqOcy6/PrY0BMZdKRxUE1M444KakBM9ibitq8GaK+jzuWfEM9xY 3oJHmfmH4BrBiX0i7+miaFPHy3q8sUZ8B7zmr0ofmbhENv8QSMK4vk1+AZ88tcdup0I2 vIpg== X-Gm-Message-State: AOJu0YwyYWvrtDmTkJhMaBtPEvg07CtNnhLpLV/bzHPvu/oJAc5UNfCZ 0TiYlU4HCs/x32wAWsLdejFlo+DJkGnP65ERNpybTh+c1WzMC1NLSM0mxF7c6Tl9hSA= X-Gm-Gg: AZuq6aLXxcOkaap5HoVIencesuWM8xHFnUT62zbyu+9qwMT1udx2nBVia67z/2dWcDG 0ysZ3nv5V2fkdHwEcjiG7sO9TV0F0uPuE/eHx7jgbVIxVVbx0YF3/b8qZyQrKiPkPvQjouM3fxi Hg6hfsl5WjnSQlUH1mpWgAbIl1FDODlxSzbrs/ciBRhsZAigwBHVubWXhjOXZ0Mr4jiT6RYcARv /XfKl2s4u0v+g5HbpmmVf2YWHtpmlhdYOOwHP42DanKfiUmxnVTjWdoTqXLeofxV0a80JOYe2Nh B678hWC7zlJ3g+ufJxZ3eudxXeCkimrgsANBkZu4kICMXUJ8Px5Znw8iuCg4BOtZN1tStHJSCqn NTkk+lnZZjcLvWpUaoEX5iVg1jO32oWqJADEKvd9PPcLQ3z+P3/Mk2f9qp9Wai9pibKaDFOzstv C/7KKfPjLoj7j/6y82uR3vZQ== X-Received: by 2002:a53:cd43:0:b0:649:d200:a807 with SMTP id 956f58d0204a3-649db4c4030mr1128045d50.90.1770178264264; Tue, 03 Feb 2026 20:11:04 -0800 (PST) Received: from localhost ([2804:14d:7e39:8083:f04c:42e3:5943:38f6]) by smtp.gmail.com with ESMTPSA id 956f58d0204a3-649dc49521asm1315427d50.3.2026.02.03.20.11.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Feb 2026 20:11:03 -0800 (PST) To: Chris Packham Cc: gdb@sourceware.org Subject: Re: GDB 17 build failure with musl In-Reply-To: (Chris Packham's message of "Wed, 4 Feb 2026 10:56:35 +1300") References: <87o6m6jzdj.fsf@linaro.org> User-Agent: mu4e 1.12.15; emacs 30.2 Date: Wed, 04 Feb 2026 04:11:01 +0000 Message-ID: <87cy2ltaga.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Thiago Jung Bauermann via Gdb Reply-To: Thiago Jung Bauermann Errors-To: gdb-bounces~public-inbox=simark.ca@sourceware.org Sender: "Gdb" Chris Packham writes: > On Tue, Feb 3, 2026 at 4:10=E2=80=AFPM Thiago Jung Bauermann > wrote: >> >> Do you have reproduction instructions for this problem? I'd like to >> experiment a bit and see if I can come up with a solution. > > The only reproduction I have right now is to build crosstool-ng then > use ct-ng to build the aarch64-unknown-linux-musl sample. You'd need > to build from crosstool-ng commit be7fafbc7b6435 as I ended up > reverting the update for now to unblock some builds. > > For the intrepid: > > git clone https://github.com/crosstool-ng/crosstool-ng.git > cd crosstool-ng > git checkout -B gdb-17-build be7fafbc7b6435 > ./bootstrap && ./configure --enable-local && make > ./ct-ng aarch64-unknown-linux-musl > ./ct-ng build > # go get a coffee this part can take a while > > I have been meaning to come up with a better reproduction. At the very > least you could disable the gdb options in ./ct-ng menuconfig and use > the resulting toolchain & sysroot to build gdb rather than having to > sit through a full build to try something out (ct-ng does also have > various options for restarting a build from a particular step). Thank you! This got me started. I suspect I'll have to add a configure test for availability of struct user_gcs. I don't see any macro in itself which is correlated to the presence of that struct. I'll let you know when I have a patch. > I actually suspect you could probably see the problem on a musl based > distro on an aarch64 host (or docker multiarch) but I haven't looked > into that. Ah, that's true. I'll also test on Alpine Linux to make sure the patch works there. --=20 Thiago