From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id iZWzJP7lg2l08CgAWB0awg (envelope-from ) for ; Wed, 04 Feb 2026 19:36:14 -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=j2HrfGlS; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 909CD1E0BA; Wed, 04 Feb 2026 19:36:14 -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 B04FC1E089 for ; Wed, 04 Feb 2026 19:36:13 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 3A19F4BA2E0F for ; Thu, 5 Feb 2026 00:36:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3A19F4BA2E0F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1770251773; bh=TuVYoDME7x8oQrcitrEpoZ6xb+YgeCTb+K3UNub7UzA=; h=References:In-Reply-To:Date:Subject:To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=j2HrfGlS0QGKcOMb3FrAXum6GS6X9DezXAWn/KLA3E3NuKaTfcMwwewQL8YbOvb91 nzURzzQmsqYulMNwc17C9VqY9zTJrF2QoRMJZ1TfZe6JUyPKr2E7YjO8Q1pmGCxnth Xj1kvCXywZYo6+cmzB5Rv4TwopL3welPIB6QBfzE= Received: from mail-yx1-xb133.google.com (mail-yx1-xb133.google.com [IPv6:2607:f8b0:4864:20::b133]) by sourceware.org (Postfix) with ESMTPS id DAE5C4BA2E08 for ; Thu, 5 Feb 2026 00:35:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DAE5C4BA2E08 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DAE5C4BA2E08 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1770251738; cv=pass; b=chqBW8Q9gO1eAa6XcDa6Vhigb6EMhESRedJq7T6MzGY9AootnsJMekMjO0u09i8EVmukFhBAIITT2bqoIVXHhjjeSGToe2MM3KeTigo/698RllBhD/nVo7eTjMD0IYtojCqb0JroxIoxylIUHziYyY0Z8nRqBUOwqgyHj/J8lzI= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1770251738; c=relaxed/simple; bh=btjEm1dl9T8Nd+XCi0fYkJIuIzEMbqqH9VD/yQvoERQ=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=Su2HAn4ipNfV4Hd/sg39cUoMo0VxVaa+Gn4uupWCZAGIisgLiWOZg+DPk700yianqC4dUdnyAVKcJ8tfrSZXi1KuQTwErzl5aS8sbUVKxZutmTvKYW8C5FEANHYOH7V4WOSxvLKbKBlkjIiDwJh2SBf4u9l/oHTBvlF1xwK+0Y8= ARC-Authentication-Results: i=2; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DAE5C4BA2E08 Received: by mail-yx1-xb133.google.com with SMTP id 956f58d0204a3-649bb5a0c3fso584244d50.2 for ; Wed, 04 Feb 2026 16:35:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1770251737; cv=none; d=google.com; s=arc-20240605; b=PZrscXy0sAxNECvx68mG9Z88Z5xYLuWoW4KUP7RhmOQTI4CL9oLZWVHWVPxwnXCfkF E/KdfJaZBa9vyEj0dqtwnILFymbX5Uj8/JLK7031DQ73rEIurV2ggCNWITc9ZvTkf+T3 JoOVct5dCPaXp3MLHLuccJckytSI6ifiJQu8P8FAq5pbS0kKKVhcaL651L0XB9lCxRYS 5xnrCrqODqOaodJbvrFfAPUYi+pkjGiai8kECRfmqCc8eiyEhLZj8zMsj1wdp00ZhGOc 3dFFlQV15Y1bmdrzl43AmOKOihWgfd7JU6rqSQuHeptaBStxXKlsHBbgmQ+bVp4O/9i/ mAoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=TuVYoDME7x8oQrcitrEpoZ6xb+YgeCTb+K3UNub7UzA=; fh=TnGyrw5p1daX933Vg3djojkS2BKHtoiPUuN5M/k0mys=; b=I9MU+pYCgzpSmurNnTXjiETMHJNKNlVw/dAN5aLWFsaRWWL8aJCH81P8a8uLHl6mxG T4WSduwLQmFA+EicM+Sp9G0LfJ5CstUh0yF+BVrMkgWk69SME+hTTboYYpkiqKx2abJ5 Q9UcgPH9LjXRwl8/GSHRWzY7FEEVEAV3PDMaGNYnQs4DWTvv7qulUdIGPaRgLkPwLF3G Rrb3vwm/MTJSsBFrTOTik0INpM2dY8BuvT5yeeGn4jKZxx1pIEJAr3/IflFnKXHL2kG6 qFfpG79ZKy1XcYowG4m+Ke+smDd8dzsou+j0PC54aphtshkxWuEPbfW5TYEwkJ1iMHaI 089w==; darn=sourceware.org ARC-Authentication-Results: i=1; mx.google.com; arc=none X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770251737; x=1770856537; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=TuVYoDME7x8oQrcitrEpoZ6xb+YgeCTb+K3UNub7UzA=; b=AEr+tsv+qsalLvwtsmcXXQa6Iw9S5w56+10DYha//88t2AFKD8zDF7TfNqSXUBs4Rz vdQulmbnuGTVtbuF8ieItdkBus4SOPY/ZB4S13b8w7t4yA/+Ze8REyjQZvtULxDcwRsp agCGZRKByulzmUFouqGv5mbPsMT5bioelrn00d3VqEWXWa1qBwYu0MAS0KAHn+KCgmnS Nx0kyX5qhZ2WzA6HvCfT/oVP/33Vote4pQYpf8TkBmd2pch0vjK86kfXDofMdFY2dTp6 5CWtCqRIOP3E1CG7pLSNtP9AeOhrFMm3dB1kEVRhMqTAS7tvEOEYcmHmcLm0rulmNpIl sLrA== X-Gm-Message-State: AOJu0Ywqnx0caM1NDeT+ENY1PBGPIpoARK/eoLPbAudsj0Des/kbl9LQ 9DFlhH5Qmx7PIEunEDCD/JalO1SLglyTx4b1r+vpH9u5uBwKT4YobKaJAbme2/lSzlSLOg5ZQBx KlH3BhgymgwTfVF4RmeLpdrQ2s/c3+id9+g8d X-Gm-Gg: AZuq6aL85Q6UnRVeZPy4Z5ZrkqRKcOUn9WzNCZYOvXoPVXqwNJE03Uo8dtcpaYKk6Yz 1t0snb/67sn/s7/2FdugWaf1pQqWo708XWJUbJ2qgp5Btp33QLXXDKQmP+LkN6UiVOWGJzdRpMa MvgkJGdtousbza0cCSRVIiO/FyA+o/9Op6JLnM7pW77J3YwcOYBkZ5JM0hB40knAiF/9S+trkcL lb0X7xp0unx7Ci9IDdqPyUI3x9wPjK8tGsAtePWatro9S2PBOORK6fyn5zhUFnmdPy18IKtwSYP WL6BYMR04274VD6dvNb1FO8PhQ== X-Received: by 2002:a05:690e:4104:b0:63f:b8f9:8f6c with SMTP id 956f58d0204a3-649db357705mr4270372d50.35.1770251737151; Wed, 04 Feb 2026 16:35:37 -0800 (PST) MIME-Version: 1.0 References: <87o6m6jzdj.fsf@linaro.org> <87cy2ltaga.fsf@linaro.org> In-Reply-To: <87cy2ltaga.fsf@linaro.org> Date: Thu, 5 Feb 2026 13:35:25 +1300 X-Gm-Features: AZwV_QjeA0MpC4InR-UCUiHMOYiFQQesEnb7tpGgPcRmUVPhy3jN90isoiOrviw Message-ID: Subject: Re: GDB 17 build failure with musl To: Thiago Jung Bauermann Cc: gdb@sourceware.org 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: Chris Packham via Gdb Reply-To: Chris Packham Errors-To: gdb-bounces~public-inbox=simark.ca@sourceware.org Sender: "Gdb" On Wed, Feb 4, 2026 at 5:11=E2=80=AFPM Thiago Jung Bauermann wrote: > > 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 came to the same conclusion although I had a hard time getting the configure result into a place that could actually use it. If it helps here is the configure check I wrote # Check for `struct user_gcs` AC_CACHE_CHECK( [for struct user_gcs], [gdb_cv_struct_user_gcs], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [#include #include ], [struct user_gcs u;] )], [gdb_cv_struct_user_gcs=3Dyes], [gdb_cv_struct_user_gcs=3Dno] )] ) if test "$gdb_cv_struct_user_gcs" =3D yes; then AC_DEFINE(HAVE_STRUCT_USER_GCS, 1, [Define to 1 if your system has struct user_gcs.]) fi > > > 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. > > -- > Thiago