From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id KUqaLURvgmn9gyYAWB0awg (envelope-from ) for ; Tue, 03 Feb 2026 16:57:24 -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=gjIgVkzD; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id A9B751E0BA; Tue, 03 Feb 2026 16:57:24 -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 9D50D1E08D for ; Tue, 03 Feb 2026 16:57:23 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 263B64BA2E13 for ; Tue, 3 Feb 2026 21:57:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 263B64BA2E13 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1770155843; bh=XAZXUyBW/WWik82nh7L5+a7OTc5YlFx6EdWDnuANeB4=; 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=gjIgVkzDSYCzsf4lGVMAyVKQHCv035b1meE1aREdfRqAKaq/cTFvOlAGF5JzWH+9/ ZOXGsgPMcJ7pcmpktQ7wE1DqWKx3NXhsdRynF3hUamj4Oo/vI9kmplXu00wN5Y0odv wIe66K591dGYgayBj4OEe17jHf1apwuE+Fe8woog= Received: from mail-yx1-xb134.google.com (mail-yx1-xb134.google.com [IPv6:2607:f8b0:4864:20::b134]) by sourceware.org (Postfix) with ESMTPS id 5419A4BA543C for ; Tue, 3 Feb 2026 21:56:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5419A4BA543C ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5419A4BA543C ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1770155807; cv=pass; b=IBg/F3kBNqhUQFeKdow+Gh4fGozeqAhG1s/pORSUcQtkC/KXkuCXO9JUwnf4S4L1SOEZNXeDTGePx5jCMPCQJ4AN1Bu+YBsTWdjYfROnqk4eiomzMS7Q6hdekkT/msOfuSVqrXBdgT/Ab2q1Ryy025RzTh97fh2oG6q3Vr6OlpY= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1770155807; c=relaxed/simple; bh=Jdtxx+1FdYWnRBVtx/Y5i9+v10H4e/kH785/qsD2ySk=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=r6NHGEfPnpmADZOPAyHRbcDmfvikwNtu3cWcP+AlgICsPX1Z9zYL2QPIONeFcKTQ6osYg5HBLH3QgqcGZc7ap/vyRWwk3fUfip9UxxPL6Ldm2FwLTN98RYNl3p4OvMBEN6yTjDttKgALXhSXpbIOwTseOvgPxzQDvXa8iQ6FMq8= ARC-Authentication-Results: i=2; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5419A4BA543C Received: by mail-yx1-xb134.google.com with SMTP id 956f58d0204a3-64931bbf70cso5480722d50.0 for ; Tue, 03 Feb 2026 13:56:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1770155807; cv=none; d=google.com; s=arc-20240605; b=A53hrdkB4bvEC5cFTMJYRMUlVERMKQUVdPLx/u8mvhCLn3l0RaSNdOCdn0zWkLLXqU KtKIqSvAObQUM/tiRSusQ4Fg6MG6OQDT6lo0xpbvlLItgNQ90d7dNmUpUMo0zL5q8Ui7 5Oi09k17Qz2C4ad250ZdXHU36/H6TB4oCmXWVWcY+KXdq897C7Lvm2jiy8SkmFAiBdTR Hb5eLclNzaQG/2pFF+FlFQgVFT8Auu7RT5nnzhG0xGDjeAkvyUkvwBTHhrodkmcYaAHi 8mITle5Jv2nSCMRy8XF7S0siYRlK57lCDOhomPioNSba1DFZJG0c4LPl9L7uczsMfCeL I2Kw== 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=XAZXUyBW/WWik82nh7L5+a7OTc5YlFx6EdWDnuANeB4=; fh=TnGyrw5p1daX933Vg3djojkS2BKHtoiPUuN5M/k0mys=; b=TFvp1TqGJVal86iTZT9chqobEH473NQMNq7lrziMIAMPUQSnLwcHcK10l+CHrtYdY5 m+13Jp59zsQDg4xK7KL9HN09BG+ttEHpahE2908M/DECWEUjsIX5POeLrcxnB94wnzFq FBwioWnofRXtvZ8PHiLcH7+rh4QTSJ5QgAoFfudVrAMb/omM3aizGPcx7lZnvYRBj/ru P4I5PCPuNWAOE1yfk2XvpvhSR+YqfEUp/wyXeFqMmOo6dKP/Z4TzHDaVFPvWiT4ABMt2 IriLlcewRUDCn3zdwV+6B0/zkV+3eFm6j89qLmR/eBHIQb00zze796NTF8IwAutCOWpw gOag==; 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=1770155806; x=1770760606; 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=XAZXUyBW/WWik82nh7L5+a7OTc5YlFx6EdWDnuANeB4=; b=ejn2XiciiNuHWV3MyrAi4TnxdegfytqjxWftqoku3Rxa65O/AZa8Lfy0F931gRcHMU CwfvKUqvdkhf8HkbqO2uWG///rlmGDE/QkYX+S+2mlTw1NcpH2Gm6T1WDhvWs61Rpquy njiEPEd/nhTMZjDaOZkqV8UDR+Vu/eNp3aF7Mzye8uyzAawMCmcwSEKPYjxp3qzazR2f TukLPNA9UU74jNw6SI6D1Py92a5r0bPG2gbnCMzUbeJ/YRN4732PNfh+H4wYXhq6x+55 nX+lMJQBJXQ1st3/pj/uKqY7wC6877O7a9KolOAt5yao8jGlw4bvIC5V7LZasU/5IgBx QEYQ== X-Gm-Message-State: AOJu0Yxdm+dujuuk8G6bWR9TQe8ZDy8pg+4Ah2+ouDZYJjYsWXszB22c zbDeJZsYqCcWRkJMV07khY8aMngko0nohMKkW9S6n8qzvE2Jd6qdmdK48jiFFBUVHI0scwJKrjJ QRY+jQzZgEKrUIXR7BFvNRHSE61pL6Yk= X-Gm-Gg: AZuq6aJZmawnFFeCWY9gsT7SWBZwhms9zstvpwRCduTqqLt4piPRl5Yyho40Yg3uTCx /gVXmWRsOJof5R0ZiztfpocZY3XHzF11AU/MI4MRfcYOboazYFxn0q8wYlTVoGt8vvdbiXciuzU yEcMqsd1D8YVXjcKy8a3ZsGGhuw3DplYO8PMJyeAiuzWS5LtWMUaeJ5wiVg5zCWnHLuKaBFaA9e xbdAgaS1R80KHWnetJWMvEK7+/SuEzfuMuqSiCD4igmh8+DVdLkcjFEMJGvpQ1WKbRB/CJLnL+y uppzjGb6/g7s9Fo3sHlg8KfGnA== X-Received: by 2002:a05:690c:c4c4:b0:794:baaa:ccb2 with SMTP id 00721157ae682-794fe6325e5mr19258087b3.6.1770155806516; Tue, 03 Feb 2026 13:56:46 -0800 (PST) MIME-Version: 1.0 References: <87o6m6jzdj.fsf@linaro.org> In-Reply-To: <87o6m6jzdj.fsf@linaro.org> Date: Wed, 4 Feb 2026 10:56:35 +1300 X-Gm-Features: AZwV_QgHYYufSCRhb4aSbt7MjlVOwBHEcnu9cwBPfP7et0B08nXjEyPrrz-e6Fw 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 Tue, Feb 3, 2026 at 4:10=E2=80=AFPM Thiago Jung Bauermann wrote: > > Hello Chris, > > Chris Packham via Gdb writes: > > > I've just updated crosstool-ng to include gdb 17.1 and the aarch64 > > musl toolchain fails with > > > > [ERROR] > > /home/runner/work/crosstool-ng/crosstool-ng/.build/aarch64-unknown-linu= x-musl/src/gdb/gdbserver/../gdb/arch/aarch64-gcs-linux.h:35:8: > > error: redefinition of 'struct user_gcs' > > [ALL ] 35 | struct user_gcs > > [ALL ] | ^~~~~~~~ > > [ALL ] In file included from > > /home/runner/work/crosstool-ng/crosstool-ng/.build/aarch64-unknown-linu= x-musl/src/gdb/gdbserver/linux-aarch64-low.cc:35: > > [ALL ] > > /home/runner/work/crosstool-ng/crosstool-ng/x-tools/aarch64-unknown-lin= ux-musl/aarch64-unknown-linux-musl/sysroot/usr/include/asm/ptrace.h:329:8: > > note: previous definition of 'struct user_gcs' > > [ALL ] 329 | struct user_gcs { > > [ALL ] | ^~~~~~~~ > > > > Does this ring any bells for anyone? Builds with gdb 16.3 are fine. > > Sorry for the delay in responding. No problem. > 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). 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. > > -- > Thiago