{"id":2231961,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2231961/?format=json","web_url":"http://patchwork.ozlabs.org/project/buildroot/patch/20260501171432.1701736-1-bernd@kuhls.net/","project":{"id":27,"url":"http://patchwork.ozlabs.org/api/1.1/projects/27/?format=json","name":"Buildroot development","link_name":"buildroot","list_id":"buildroot.buildroot.org","list_email":"buildroot@buildroot.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20260501171432.1701736-1-bernd@kuhls.net>","date":"2026-05-01T17:14:32","name":"[1/1] package/glibc: add upstream patch to fix build error with glibc 2.43","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"f067bfe9dd744b1aadb9599ae337176d23021df3","submitter":{"id":86624,"url":"http://patchwork.ozlabs.org/api/1.1/people/86624/?format=json","name":"Bernd Kuhls","email":"bernd@kuhls.net"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/buildroot/patch/20260501171432.1701736-1-bernd@kuhls.net/mbox/","series":[{"id":502487,"url":"http://patchwork.ozlabs.org/api/1.1/series/502487/?format=json","web_url":"http://patchwork.ozlabs.org/project/buildroot/list/?series=502487","date":"2026-05-01T17:14:32","name":"[1/1] package/glibc: add upstream patch to fix build error with glibc 2.43","version":1,"mbox":"http://patchwork.ozlabs.org/series/502487/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2231961/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2231961/checks/","tags":{},"headers":{"Return-Path":"<buildroot-bounces@buildroot.org>","X-Original-To":["incoming-buildroot@patchwork.ozlabs.org","buildroot@buildroot.org"],"Delivered-To":["patchwork-incoming-buildroot@legolas.ozlabs.org","buildroot@buildroot.org"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=buildroot.org header.i=@buildroot.org\n header.a=rsa-sha256 header.s=default header.b=nVMcc18U;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org\n (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org;\n envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org)"],"Received":["from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g6d2G3Ndfz1xqf\n\tfor <incoming-buildroot@patchwork.ozlabs.org>;\n Sat, 02 May 2026 03:14:44 +1000 (AEST)","from localhost (localhost [127.0.0.1])\n\tby smtp1.osuosl.org (Postfix) with ESMTP id 413148576F;\n\tFri,  1 May 2026 17:14:41 +0000 (UTC)","from smtp1.osuosl.org ([127.0.0.1])\n by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id 7UP-y1ZG4oOd; Fri,  1 May 2026 17:14:38 +0000 (UTC)","from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])\n\tby smtp1.osuosl.org (Postfix) with ESMTP id 69D378576B;\n\tFri,  1 May 2026 17:14:38 +0000 (UTC)","from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133])\n by lists1.osuosl.org (Postfix) with ESMTP id 7A718293\n for <buildroot@buildroot.org>; Fri,  1 May 2026 17:14:36 +0000 (UTC)","from localhost (localhost [127.0.0.1])\n by smtp2.osuosl.org (Postfix) with ESMTP id 6435A41103\n for <buildroot@buildroot.org>; Fri,  1 May 2026 17:14:36 +0000 (UTC)","from smtp2.osuosl.org ([127.0.0.1])\n by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id UkhHiGq2B5Vo for <buildroot@buildroot.org>;\n Fri,  1 May 2026 17:14:35 +0000 (UTC)","from dd20012.kasserver.com (dd20012.kasserver.com [85.13.140.57])\n by smtp2.osuosl.org (Postfix) with ESMTPS id 64DE4405EE\n for <buildroot@buildroot.org>; Fri,  1 May 2026 17:14:35 +0000 (UTC)","from fli4l.lan.fli4l (p4fd6c2eb.dip0.t-ipconnect.de\n [79.214.194.235])\n by dd20012.kasserver.com (Postfix) with ESMTPSA id A55CCA4C0247;\n Fri,  1 May 2026 19:14:32 +0200 (CEST)","from bruckner.lan.fli4l ([192.168.1.1]:42852)\n by fli4l.lan.fli4l with esmtp (Exim 4.99.2)\n (envelope-from <bernd@kuhls.net>) id 1wIrRg-0000000035j-31jH;\n Fri, 01 May 2026 17:14:32 +0000"],"X-Virus-Scanned":["amavis at osuosl.org","amavis at osuosl.org"],"X-Comment":"SPF check N/A for local connections - client-ip=140.211.166.142;\n helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org;\n receiver=<UNKNOWN> ","DKIM-Filter":["OpenDKIM Filter v2.11.0 smtp1.osuosl.org 69D378576B","OpenDKIM Filter v2.11.0 smtp2.osuosl.org 64DE4405EE"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=buildroot.org;\n\ts=default; t=1777655678;\n\tbh=hLG5H8Jn9DYoO9zYidAdT2yM+dlUgZiBi+gJ33h5BlQ=;\n\th=From:To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive:\n\t List-Post:List-Help:List-Subscribe:From;\n\tb=nVMcc18USglc3jTvRdFed2DLmVHV2qmlRXe/bKQ4bVgjY5zTGMRKvzHA6aCr8Tlsq\n\t uQxOnaeMXRYMOEKKvpHsgEwnQVPz3LoistGvzUacpYljF09rnqX9UPuuqfUaI2yPyl\n\t q2YHqiQkcDvgYZAo3Ya1jpv8tN2QiMK44+vSxNxSw4uJpbVkMt7DT9eLvhuBsWa/gE\n\t eQPqMBVU1dgI/h0nmC+ad0FhiYADg4cPh9km8yY1Am/teJDSeHyS4/8bTrb3lvjO2x\n\t R3KtCOgBNlbgmF2XPa23ceWBpxR7DujrsfNcpEFNSH6HW0QuGJmQS7l8PCWIeTIlH/\n\t i7HJdu0O2xDWA==","Received-SPF":"Pass (mailfrom) identity=mailfrom; client-ip=85.13.140.57;\n helo=dd20012.kasserver.com; envelope-from=bernd@kuhls.net;\n receiver=<UNKNOWN>","DMARC-Filter":"OpenDMARC Filter v1.4.2 smtp2.osuosl.org 64DE4405EE","From":"Bernd Kuhls <bernd@kuhls.net>","To":"buildroot@buildroot.org","Cc":"Romain Naour <romain.naour@gmail.com>","Date":"Fri,  1 May 2026 19:14:32 +0200","Message-ID":"<20260501171432.1701736-1-bernd@kuhls.net>","X-Mailer":"git-send-email 2.47.3","MIME-Version":"1.0","X-Spamd-Bar":"--","X-Mailman-Original-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=kuhls.net;\n s=kas202511301023; t=1777655672;\n bh=Xqdu+DPGn2BQKTGQM527nGUzp7fZdzBku76/BjZBn/c=;\n h=From:To:Cc:Subject:Date:From;\n b=oOmibN1LF+xijUVFaI5h2YVAGiFJzs5UYhd6nOpm6pGfq6mX17LQiOXw28BzIUTGJ\n Tae2mxTJ1LxvHOXpH0zt/uwLLyRurWvP5J+fZNEkRVUyMj3g6OPT45smlcenlhOz+S\n w/kJN33ndN2vi2A+//9JYW5US9hfXkrA4Amn1S388oBac7kaKUd5LoiOLEz2kTt3e6\n 9wRd1/g8XO+sLlc1D7N3k6PaVhITGeqhMIod+fuOdTDF8sj+oTx1fKi4k2SSYdiTKj\n GRZtv/yVcA6mu1h2dPQ27/ULia16OGTzpWjM7P99LDHUn9gc0cLRE2wPsUkco+bCSD\n Td2QMqVCdd3Eg==","X-Mailman-Original-Authentication-Results":["smtp2.osuosl.org;\n dmarc=pass (p=none dis=none)\n header.from=kuhls.net","smtp2.osuosl.org;\n dkim=pass (2048-bit key) header.d=kuhls.net header.i=@kuhls.net\n header.a=rsa-sha256 header.s=kas202511301023 header.b=oOmibN1L"],"Subject":"[Buildroot] [PATCH 1/1] package/glibc: add upstream patch to fix\n build error with glibc 2.43","X-BeenThere":"buildroot@buildroot.org","X-Mailman-Version":"2.1.30","Precedence":"list","List-Id":"Discussion and development of buildroot <buildroot.buildroot.org>","List-Unsubscribe":"<https://lists.buildroot.org/mailman/options/buildroot>,\n <mailto:buildroot-request@buildroot.org?subject=unsubscribe>","List-Archive":"<http://lists.buildroot.org/pipermail/buildroot/>","List-Post":"<mailto:buildroot@buildroot.org>","List-Help":"<mailto:buildroot-request@buildroot.org?subject=help>","List-Subscribe":"<https://lists.buildroot.org/mailman/listinfo/buildroot>,\n <mailto:buildroot-request@buildroot.org?subject=subscribe>","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Errors-To":"buildroot-bounces@buildroot.org","Sender":"\"buildroot\" <buildroot-bounces@buildroot.org>"},"content":"Seen with this defconfig\n\nBR2_x86_64=y\nBR2_GCC_VERSION_15_X=y\nBR2_TOOLCHAIN_BUILDROOT_CXX=y\nBR2_PACKAGE_PICOTOOL=y\n\noutput/host/x86_64-buildroot-linux-gnu/sysroot/usr/include/bits/struct_mutex.h:35:9:\n error: declaration does not declare anything [-fpermissive]\n   35 |   short __unused;\n\nNo related autobuilder error was recorded.\nThe build error does not occur with glibc-2.42 on the 2026.02.x branch.\n\nThe build error was reported to picotool upstream:\nhttps://github.com/raspberrypi/picotool/issues/300\n\nSigned-off-by: Bernd Kuhls <bernd@kuhls.net>\n---\n ...-__unused-fields-to-__glibc_reserved.patch | 85 +++++++++++++++++++\n 1 file changed, 85 insertions(+)\n create mode 100644 package/glibc/0001-Rename-__unused-fields-to-__glibc_reserved.patch","diff":"diff --git a/package/glibc/0001-Rename-__unused-fields-to-__glibc_reserved.patch b/package/glibc/0001-Rename-__unused-fields-to-__glibc_reserved.patch\nnew file mode 100644\nindex 0000000000..5b7172df44\n--- /dev/null\n+++ b/package/glibc/0001-Rename-__unused-fields-to-__glibc_reserved.patch\n@@ -0,0 +1,85 @@\n+From 243bdfec8f7cd4a85a8ce6e4e9a5a5accd3ce1aa Mon Sep 17 00:00:00 2001\n+From: Jakub Jelinek <jakub@redhat.com>\n+Date: Tue, 17 Feb 2026 17:06:48 +0100\n+Subject: [PATCH] Rename __unused fields to __glibc_reserved.\n+\n+__unused is often defined to __attribute__((unused)) in BSD\n+sources and furthermore libstdc++ testsuite uses it as a macro\n+to verify libstdc++ headers don't use __unused identifiers.\n+In ~2012 glibc headers have been cleaned up, but some new\n+uses of __unused have reappeared (s390 fenv.h already many\n+years ago, the rest last November).\n+\n+Reviewed-by: Florian Weimer <fweimer@redhat.com>\n+\n+Upstream: https://sourceware.org/git/?p=glibc.git;a=commit;h=243bdfec8f7cd4a85a8ce6e4e9a5a5accd3ce1aa\n+\n+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>\n+---\n+ sysdeps/powerpc/nptl/bits/struct_mutex.h | 2 +-\n+ sysdeps/s390/fpu/bits/fenv.h             | 8 ++++----\n+ sysdeps/s390/nptl/bits/struct_mutex.h    | 2 +-\n+ sysdeps/x86/nptl/bits/struct_mutex.h     | 2 +-\n+ 4 files changed, 7 insertions(+), 7 deletions(-)\n+\n+diff --git a/sysdeps/powerpc/nptl/bits/struct_mutex.h b/sysdeps/powerpc/nptl/bits/struct_mutex.h\n+index 1472af21f7..ebf2d50922 100644\n+--- a/sysdeps/powerpc/nptl/bits/struct_mutex.h\n++++ b/sysdeps/powerpc/nptl/bits/struct_mutex.h\n+@@ -32,7 +32,7 @@ struct __pthread_mutex_s\n+   int __kind;\n+ #if __WORDSIZE == 64\n+   short __spins;\n+-  short __unused;\n++  short __glibc_reserved;\n+   __pthread_list_t __list;\n+ # define __PTHREAD_MUTEX_HAVE_PREV      1\n+ #else\n+diff --git a/sysdeps/s390/fpu/bits/fenv.h b/sysdeps/s390/fpu/bits/fenv.h\n+index b9e844e393..33e88fbe9d 100644\n+--- a/sysdeps/s390/fpu/bits/fenv.h\n++++ b/sysdeps/s390/fpu/bits/fenv.h\n+@@ -76,10 +76,10 @@ typedef unsigned int fexcept_t; /* size of fpc */\n+ typedef struct\n+ {\n+   fexcept_t __fpc;\n+-  void *__unused;\n+-  /* The field __unused (formerly __ieee_instruction_pointer) is a relict from\n+-     commit \"Remove PTRACE_PEEKUSER\" (87b9b50f0d4b92248905e95a06a13c513dc45e59)\n+-     and isn't used anymore.  */\n++  void *__glibc_reserved;\n++  /* The field __glibc_reserved (formerly __ieee_instruction_pointer) is a\n++     relict from commit \"Remove PTRACE_PEEKUSER\"\n++     (87b9b50f0d4b92248905e95a06a13c513dc45e59) and isn't used anymore.  */\n+ } fenv_t;\n+ \n+ /* If the default argument is used we use this value.  */\n+diff --git a/sysdeps/s390/nptl/bits/struct_mutex.h b/sysdeps/s390/nptl/bits/struct_mutex.h\n+index d069b485d1..571265267c 100644\n+--- a/sysdeps/s390/nptl/bits/struct_mutex.h\n++++ b/sysdeps/s390/nptl/bits/struct_mutex.h\n+@@ -32,7 +32,7 @@ struct __pthread_mutex_s\n+   int __kind;\n+ #if __WORDSIZE == 64\n+   short __spins;\n+-  short __unused;\n++  short __glibc_reserved;\n+   __pthread_list_t __list;\n+ # define __PTHREAD_MUTEX_HAVE_PREV      1\n+ #else\n+diff --git a/sysdeps/x86/nptl/bits/struct_mutex.h b/sysdeps/x86/nptl/bits/struct_mutex.h\n+index 9c19dff660..13c9894ad4 100644\n+--- a/sysdeps/x86/nptl/bits/struct_mutex.h\n++++ b/sysdeps/x86/nptl/bits/struct_mutex.h\n+@@ -32,7 +32,7 @@ struct __pthread_mutex_s\n+   int __kind;\n+ #ifdef __x86_64__\n+   short __spins;\n+-  short __unused;\n++  short __glibc_reserved;\n+   __pthread_list_t __list;\n+ # define __PTHREAD_MUTEX_HAVE_PREV      1\n+ #else\n+-- \n+2.47.3\n+\n","prefixes":["1/1"]}