{"id":2224808,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2224808/?format=json","web_url":"http://patchwork.ozlabs.org/project/buildroot/patch/20260418215536.55054-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":"<20260418215536.55054-1-bernd@kuhls.net>","date":"2026-04-18T21:55:34","name":"[1/3] package/jemalloc: fix build on m68k/uClibc","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"cc3d5af74e3df673af468f489cb11d5da63b2c8c","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/20260418215536.55054-1-bernd@kuhls.net/mbox/","series":[{"id":500469,"url":"http://patchwork.ozlabs.org/api/1.1/series/500469/?format=json","web_url":"http://patchwork.ozlabs.org/project/buildroot/list/?series=500469","date":"2026-04-18T21:55:34","name":"[1/3] package/jemalloc: fix build on m68k/uClibc","version":1,"mbox":"http://patchwork.ozlabs.org/series/500469/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2224808/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2224808/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=EN8pD7YC;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org\n (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org;\n envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org)"],"Received":["from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136])\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 4fyltV0yy0z1yGs\n\tfor <incoming-buildroot@patchwork.ozlabs.org>;\n Sun, 19 Apr 2026 07:55:45 +1000 (AEST)","from localhost (localhost [127.0.0.1])\n\tby smtp3.osuosl.org (Postfix) with ESMTP id E067660EA4;\n\tSat, 18 Apr 2026 21:55:43 +0000 (UTC)","from smtp3.osuosl.org ([127.0.0.1])\n by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id VhYkkazJ--ca; Sat, 18 Apr 2026 21:55:42 +0000 (UTC)","from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])\n\tby smtp3.osuosl.org (Postfix) with ESMTP id E2E4760E87;\n\tSat, 18 Apr 2026 21:55:41 +0000 (UTC)","from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n by lists1.osuosl.org (Postfix) with ESMTP id 94D0435B\n for <buildroot@buildroot.org>; Sat, 18 Apr 2026 21:55:40 +0000 (UTC)","from localhost (localhost [127.0.0.1])\n by smtp1.osuosl.org (Postfix) with ESMTP id 7A41D813AA\n for <buildroot@buildroot.org>; Sat, 18 Apr 2026 21:55:40 +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 aQS2fZ5b37Vx for <buildroot@buildroot.org>;\n Sat, 18 Apr 2026 21:55:39 +0000 (UTC)","from dd20012.kasserver.com (dd20012.kasserver.com [85.13.140.57])\n by smtp1.osuosl.org (Postfix) with ESMTPS id 7AC1A813A9\n for <buildroot@buildroot.org>; Sat, 18 Apr 2026 21:55:39 +0000 (UTC)","from fli4l.lan.fli4l (p4fd6cc94.dip0.t-ipconnect.de\n [79.214.204.148])\n by dd20012.kasserver.com (Postfix) with ESMTPSA id 455F1A4C303E;\n Sat, 18 Apr 2026 23:55:37 +0200 (CEST)","from bruckner.lan.fli4l ([192.168.1.1]:47536)\n by fli4l.lan.fli4l with esmtp (Exim 4.99.1)\n (envelope-from <bernd@kuhls.net>) id 1wEDdY-000000005tT-3uAG;\n Sat, 18 Apr 2026 21:55:36 +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 smtp3.osuosl.org E2E4760E87","OpenDKIM Filter v2.11.0 smtp1.osuosl.org 7AC1A813A9"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=buildroot.org;\n\ts=default; t=1776549342;\n\tbh=ZK0YWX7FcI0i/71CB3HOZrSGLjEwM3ZaA6oNNkmpPSc=;\n\th=From:To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive:\n\t List-Post:List-Help:List-Subscribe:From;\n\tb=EN8pD7YChQYge2QSBZ3Yj3fhfqKYhU0UwQXVUj8nzQQgQgVW4nexXaYe8pP60iu0L\n\t /ZGiDvQyC3Y8H2aEpHzpKSSHqcalsvEiudMKBpaCGwLZfWx3yvjEu14Zux6n+7bhcu\n\t iBiRn2DNGW1mtgPHomEO3rYEw4PqsBzKHo1V5VHt850iUl68o6H+d54UpY2j/jGRSn\n\t KSWFi/XOcOmSRkty51eb/y2p1YCgBdghQpeaat43UtZ5N1R1bC29oSdxJe5HpCYd0t\n\t HN/hsofx4THtymSdczRtwdkpjvUNzkJAy15VUMa77dDOhhKSujDQURLH+XiyUMcZZO\n\t sCneOqHqnm+YA==","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 smtp1.osuosl.org 7AC1A813A9","From":"Bernd Kuhls <bernd@kuhls.net>","To":"buildroot@buildroot.org","Cc":"Eric Le Bihan <eric.le.bihan.dev@free.fr>","Date":"Sat, 18 Apr 2026 23:55:34 +0200","Message-ID":"<20260418215536.55054-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=1776549337;\n bh=WFuX2ok+cL8bxn/zrG22YzNS9GObChbv+q28sh8B8+A=;\n h=From:To:Cc:Subject:Date:From;\n b=lv7oSis+WM1DJBzoqiJEIcd6vtgo0YOo7ijKnVUqrzbbYvgRj3ctW95nMr80wxXaH\n 21Ia65IZ1rnLx+V6H1EJB6oLfcdKuglwiWOddtwot3x8FD6qiXyVJdcJSvg40Tg9sp\n mUyuHenlzgktL/kj75+tr3xI9/HRKpvH2y2eRCmWTlLmcXUVozMEDdW0Z9RB98hqk6\n hF4bHgeJryTth5fTIOlCGJIH7Rk9dcuKUyfZ029TwnQEzbUHQJjQnBdt5S4HhN13Vf\n elEx9wygwJgLQOuzPodRj0u5IfIzvfdeg3kkhLJ4d99+Wd2ANprTeFN0yUQAVS1s1Y\n h504qTSrsSGGQ==","X-Mailman-Original-Authentication-Results":["smtp1.osuosl.org;\n dmarc=pass (p=none dis=none)\n header.from=kuhls.net","smtp1.osuosl.org;\n dkim=pass (2048-bit key,\n unprotected) header.d=kuhls.net header.i=@kuhls.net header.a=rsa-sha256\n header.s=kas202511301023 header.b=lv7oSis+"],"Subject":"[Buildroot] [PATCH 1/3] package/jemalloc: fix build on m68k/uClibc","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":"include/jemalloc/internal/jemalloc_internal_inlines_a.h:16:32: error:\n implicit declaration of function 'sched_getcpu'; did you mean\n 'SYS_getcpu'? [-Wimplicit-function-declaration]\n   16 |         return (malloc_cpuid_t)sched_getcpu();\n\nAdded -D_GNU_SOURCE to CFLAGS because\n\n  extern int sched_getcpu\n\nis wrapped with __USE_GNU:\nhttps://github.com/wbx-github/uclibc-ng/blob/v1.0.57/libc/sysdeps/linux/common/bits/sched.h#L80C1-L80C17\n\nFixes:\nhttps://autobuild.buildroot.net/results/57c/57c68aad9abcce7621fbff52081da041485e8830/\n\nSigned-off-by: Bernd Kuhls <bernd@kuhls.net>\n---\n package/jemalloc/jemalloc.mk | 6 +++++-\n 1 file changed, 5 insertions(+), 1 deletion(-)","diff":"diff --git a/package/jemalloc/jemalloc.mk b/package/jemalloc/jemalloc.mk\nindex bd8a2d7654..0c46f65029 100644\n--- a/package/jemalloc/jemalloc.mk\n+++ b/package/jemalloc/jemalloc.mk\n@@ -12,11 +12,15 @@ JEMALLOC_LICENSE_FILES = COPYING\n JEMALLOC_INSTALL_STAGING = YES\n JEMALLOC_CONFIG_SCRIPTS = jemalloc-config\n \n+JEMALLOC_CFLAGS = $(TARGET_CFLAGS) -D_GNU_SOURCE\n+\n # gcc bug internal compiler error: in merge_overlapping_regs, at\n # regrename.c:304. This bug is fixed since gcc 6.\n ifeq ($(BR2_or1k):$(BR2_TOOLCHAIN_GCC_AT_LEAST_6),y:)\n-JEMALLOC_CONF_ENV += CFLAGS=\"$(TARGET_CFLAGS) -O0\"\n+JEMALLOC_CFLAGS += -O0\n endif\n \n+JEMALLOC_CONF_ENV += CFLAGS=\"$(JEMALLOC_CFLAGS)\"\n+\n $(eval $(autotools-package))\n $(eval $(host-autotools-package))\n","prefixes":["1/3"]}