{"id":2232217,"url":"http://patchwork.ozlabs.org/api/patches/2232217/?format=json","web_url":"http://patchwork.ozlabs.org/project/buildroot/patch/20260503235637.637991-1-Software@DRHouck.me/","project":{"id":27,"url":"http://patchwork.ozlabs.org/api/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":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260503235637.637991-1-Software@DRHouck.me>","list_archive_url":null,"date":"2026-05-03T23:56:37","name":"[1/1] package/make: fix build with musl and gcc-15.x","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"583df36b978f55c8a1a6449b126072275dc12116","submitter":{"id":93317,"url":"http://patchwork.ozlabs.org/api/people/93317/?format=json","name":"Daniel Houck","email":"Software@DRHouck.me"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/buildroot/patch/20260503235637.637991-1-Software@DRHouck.me/mbox/","series":[{"id":502593,"url":"http://patchwork.ozlabs.org/api/series/502593/?format=json","web_url":"http://patchwork.ozlabs.org/project/buildroot/list/?series=502593","date":"2026-05-03T23:56:37","name":"[1/1] package/make: fix build with musl and gcc-15.x","version":1,"mbox":"http://patchwork.ozlabs.org/series/502593/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2232217/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2232217/checks/","tags":{},"related":[],"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=R3C1V1ce;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org\n (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org;\n envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org)"],"Received":["from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137])\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 4g81sG6n9Wz1yJV\n\tfor <incoming-buildroot@patchwork.ozlabs.org>;\n Mon, 04 May 2026 09:56:50 +1000 (AEST)","from localhost (localhost [127.0.0.1])\n\tby smtp4.osuosl.org (Postfix) with ESMTP id E6276410C4;\n\tSun,  3 May 2026 23:56:48 +0000 (UTC)","from smtp4.osuosl.org ([127.0.0.1])\n by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id 0mQuZ5QNNyUD; Sun,  3 May 2026 23:56:48 +0000 (UTC)","from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])\n\tby smtp4.osuosl.org (Postfix) with ESMTP id 20849410C5;\n\tSun,  3 May 2026 23:56:48 +0000 (UTC)","from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138])\n by lists1.osuosl.org (Postfix) with UTF8SMTP id D11A225D\n for <buildroot@buildroot.org>; Sun,  3 May 2026 23:56:46 +0000 (UTC)","from localhost (localhost [127.0.0.1])\n by smtp1.osuosl.org (Postfix) with UTF8SMTP id C229384311\n for <buildroot@buildroot.org>; Sun,  3 May 2026 23:56:46 +0000 (UTC)","from smtp1.osuosl.org ([127.0.0.1])\n by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024)\n with UTF8SMTP id 9eMQuAXbkNQC for <buildroot@buildroot.org>;\n Sun,  3 May 2026 23:56:46 +0000 (UTC)","from v547.v5f06b487.use4.send.mailgun.net\n (v547.v5f06b487.use4.send.mailgun.net [143.55.232.47])\n by smtp1.osuosl.org (Postfix) with UTF8SMTPS id 947C88430B\n for <buildroot@buildroot.org>; Sun,  3 May 2026 23:56:44 +0000 (UTC)","from dhouck-linux (unknown [73.82.189.57]) by\n fa2e5fd908529bee335d09c6daffa1fa7da7448d87d2767b8f80588d27478f7a with SMTP id\n 69f7e0bb3cad8a93d6a247e8; Sun, 03 May 2026 23:56:43 GMT"],"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 smtp4.osuosl.org 20849410C5","OpenDKIM Filter v2.11.0 smtp1.osuosl.org 947C88430B"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=buildroot.org;\n\ts=default; t=1777852608;\n\tbh=fwjBIZ/XkJKfrQNJY9zEd/0QEi31RiplM4JPxwMuEGc=;\n\th=From:To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive:\n\t List-Post:List-Help:List-Subscribe:From;\n\tb=R3C1V1cezBspiEumvmaCcgseA4hQ4UAbV9PvqVNDJLB0ru2fszR9dLb332Ou6ElNT\n\t f6FXjxNPclLGe5AaPrSz+nVyZuFbDwFWgF7KLcIeC9adMQZdvvNeCzap/N4bRzsZht\n\t JOhYR0GbrHNKvc/QXtxztfcXlezW+K84m6LDJSZdDXs8jSVq9ZMy/SessA8VeBTJwu\n\t 0UTMvgYRVLWOsfs0pYPAtfLM12GBOWXDMp5p0S/ME11W0/r+5R9vFhcpsTf3IMOj1T\n\t w1yYErW6o8AiY9HYf4nneK1ie70+yIa6ClOzae7Fl//zyVZk7Oc/JDsnedR+UXXQzm\n\t FjgmAHZleeCEw==","Received-SPF":"Pass (mailfrom) identity=mailfrom; client-ip=143.55.232.47;\n helo=v547.v5f06b487.use4.send.mailgun.net;\n envelope-from=bounce+4afdde.7f991a-buildroot=buildroot.org@drhouck.me;\n receiver=<UNKNOWN>","DMARC-Filter":"OpenDMARC Filter v1.4.2 smtp1.osuosl.org 947C88430B","X-Mailgun-Sid":"WyI3M2VlNiIsImJ1aWxkcm9vdEBidWlsZHJvb3Qub3JnIiwiN2Y5OTFhIl0=","X-Mailgun-Sending-Ip":"143.55.232.47","From":"Daniel Houck <Software@DRHouck.me>","To":"buildroot@buildroot.org","Cc":"Daniel Houck <Software@DRHouck.me>","Date":"Sun,  3 May 2026 19:56:37 -0400","Message-ID":"<20260503235637.637991-1-Software@DRHouck.me>","X-Mailer":"git-send-email 2.54.0","MIME-Version":"1.0","X-Mailman-Original-DKIM-Signature":"a=rsa-sha256; v=1; c=relaxed/relaxed;\n d=drhouck.me; q=dns/txt; s=krs; t=1777852603; x=1777859803;\n h=Content-Transfer-Encoding: MIME-Version: Message-ID: Date: Subject:\n Subject:\n Cc: To: To: From: From: Sender: Sender;\n bh=UOKuHbqgOjxp1/Ltirt4lkd8RBa7cWgbWWC57TuzxNA=;\n b=gVV5MxFXV2DkwI/+PaqOVWam4skp578Jp43TBcL7ViQ6HHpxj2oEkXlOHtDnvdBRYM7lIUnGfdejDiqf1oIe0F6//gV0VwB8HesD/vQbdkwExJ++yDHhk/wdnCbXHODiORr4h6FgdMEDX3eHPD4VIntptvsxhrie3xfSJ7sU7Ew=","X-Mailman-Original-Authentication-Results":["smtp1.osuosl.org;\n dmarc=none (p=none dis=none)\n header.from=DRHouck.me","smtp1.osuosl.org;\n dkim=pass (1024-bit key,\n unprotected) header.d=drhouck.me header.i=@drhouck.me header.a=rsa-sha256\n header.s=krs header.b=gVV5MxFX"],"Subject":"[Buildroot] [PATCH 1/1] package/make: fix build with musl and\n gcc-15.x","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":"It builds fine with glibc and gcc-15.x but conditionally includes code\nwith musl that fails.  See eg. commit 999fb19d4b.\n\nFixes #176.  See also https://savannah.gnu.org/bugs/index.php?68302\n\nSigned-off-by: Daniel Houck <Software@DRHouck.me>\n---\n package/make/make.mk | 8 ++++++++\n 1 file changed, 8 insertions(+)","diff":"diff --git a/package/make/make.mk b/package/make/make.mk\nindex 1d1a976eb4..7120548bcc 100644\n--- a/package/make/make.mk\n+++ b/package/make/make.mk\n@@ -14,6 +14,14 @@ MAKE_CPE_ID_VENDOR = gnu\n \n MAKE_CONF_OPTS = --without-guile\n \n+# Make doesn't build with C23 in some configurations; see upstream #68302\n+# gcc-15 defaults to -std=gnu23, so we force \"-std=gnu17\" for gcc version\n+# supporting it. Earlier gcc versions will work, since they are using the\n+# older standard.\n+ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_8),y)\n+MAKE_CONF_ENV = CFLAGS=\"$(TARGET_CFLAGS) -std=gnu17\"\n+endif\n+\n # Disable the 'load' operation for static builds since it needs dlopen\n ifeq ($(BR2_STATIC_LIBS),y)\n MAKE_CONF_OPTS += --disable-load\n","prefixes":["1/1"]}