Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1510609lqz; Mon, 1 Apr 2024 08:24:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUH+j0+LIwCCV3IFtLWcprHu3OpcoeipbyIPzVnKnffQTsYXtXNCjTQwD0NDuTvkCGco++4m/oGO/0qCfIsMfpRH9wrWxgmLrH72hqE1Q== X-Google-Smtp-Source: AGHT+IFOBpxFKYjg7ZqiuCJ4UJu1W54Yocss5ZrjxoY1hGFeqQTt/sziVCD0PuvrfeFFm5XgoyCK X-Received: by 2002:a17:90b:1215:b0:2a2:ba9:ba61 with SMTP id gl21-20020a17090b121500b002a20ba9ba61mr9854445pjb.34.1711985065164; Mon, 01 Apr 2024 08:24:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711985065; cv=pass; d=google.com; s=arc-20160816; b=HGoGHW4iKC0+pj5w2gNgVWC+WgYSFcBWiX57hlNHC/r1EjciarP7qK8EME/fCHvb6J Kt/UgAm+35olEUdInc68yKMTT0PtNuT/WKzPNqp7wOauuOxnnWUCn5+neRuRX769KoKG MrDV9AnMK5CbIb/wL2CVl3iQPN2HBXN/zjFRnsu4vvwj1nq/fnI4QRM84/7XX3Eau/6M yYF1+XNxvp5rDsw8k6N0jGTjpcUvQnjuK0r8h5OF5AQos76i1ddcbaZrGvm1wGdb7dxm SOzidMZPLFANn6q6Ru0JfCaGzEJWJwZ/9xIbe3eS/GA7/Ozn7TTqZU/Z+4Nv0Rkv7q6f STmQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature:dkim-signature; bh=RrcJpR6o9gazuIRw+eN1bhtXNZiNsVKHCtdZLgD7j4Q=; fh=xt3AHB9D2qTZPR58VR+RiEz+2P9LGqTX0sJbw7sVKEA=; b=o7Ps7AsGL8R1QaLLAPvgXj5lETm4aJSSmIfxJ0SgQuTWh8wiTeCOS8/YDJi3GdnKSy WEtRtpcTSxax0YNJRGUgWlBU1koTwDvDGuJtnPkbYjDJsctLy1LTaZXAPuDQLmn72kVQ +B67Kj8NWKRbyrrAsG25UjcNHR5eFz7xRMeL5402RxEzzyUj/5+GHuiZkb6WTin9Gd08 wQTHA+RotsPEhaxDiwbPW8BW19fxK178F/qnQ28Vj1rzN5JRlXP1CbOMZwHVtKLha2PJ NCSZrpLeCda6CwYX1ZULjnRZb93yBPVUq9Vrp6YaCdOo1Q1tzvceE9v72KOxHhAYmKl5 4KVA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kroah.com header.s=fm2 header.b=jnHP2wjm; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=H8ViwOeG; arc=pass (i=1 spf=pass spfdomain=kroah.com dkim=pass dkdomain=kroah.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=kroah.com); spf=pass (google.com: domain of linux-kernel+bounces-126797-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126797-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kroah.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 9-20020a630209000000b005d8b8f81dd2si9300075pgc.700.2024.04.01.08.24.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 08:24:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-126797-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kroah.com header.s=fm2 header.b=jnHP2wjm; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=H8ViwOeG; arc=pass (i=1 spf=pass spfdomain=kroah.com dkim=pass dkdomain=kroah.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=kroah.com); spf=pass (google.com: domain of linux-kernel+bounces-126797-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126797-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kroah.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id CEB5B282FA3 for ; Mon, 1 Apr 2024 15:24:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AAFD146441; Mon, 1 Apr 2024 15:24:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b="jnHP2wjm"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="H8ViwOeG" Received: from flow6-smtp.messagingengine.com (flow6-smtp.messagingengine.com [103.168.172.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 90F233FBBD; Mon, 1 Apr 2024 15:24:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711985057; cv=none; b=BIDk/e1hkGKjkapr9qBccv6lL6Kcr4ub3chqnwi9xq6g7WCJJ4h1JSkL2nIM8GOCEAMIMNIClc4DdxMnTXJOAWHKs7H5f9ONiuAmoFDE4NLbwrrOTtVAO5yH/H2skMHPZ5xRKn+kRHeOvJLZQix0uNX37/ry7vbz5M6N0G4Gqm0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711985057; c=relaxed/simple; bh=Vu9NJbqYq8DKSNj9RbFUIEuMF9BDspzO48JX9Fl5sic=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CnPkn9fQ0JxA4ZY99G+sVWZpKO7vEgYtA5jUf8PI+u1TrlwL9c0iIDSaCaZsuyycKbAc+rAqBUoz5SpnNRQ7SiwH0B7H/S3LteN+oAm6ia6DPfsnI1d6ZuMsSmn/eIVGoVSVYsVx2gONjvOZ5jzeOVVHqCPk+1MNI3te4RiXwjg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kroah.com; spf=pass smtp.mailfrom=kroah.com; dkim=pass (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b=jnHP2wjm; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=H8ViwOeG; arc=none smtp.client-ip=103.168.172.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kroah.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kroah.com Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailflow.nyi.internal (Postfix) with ESMTP id 9DD8D2003F2; Mon, 1 Apr 2024 11:24:14 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 01 Apr 2024 11:24:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1711985054; x=1711992254; bh=RrcJpR6o9gazuIRw+eN1bhtXNZiNsVKHCtdZLgD7j4Q=; b= jnHP2wjmGtEGrFtLrX0/ULGt9yGo4k11CaiBLNQqQ5nV7yu3MV0sYpwvlLp2qv67 weGXSGWx2iArteij+jagEnnly7VEZGJVLrriVR99KN55+fwNa1KpaNvxkJth7CSB 90uRFsncryY990CQ/2AX/tg8BDJeMgDC8MyailmsZfj1FWbbmT40ve/6KFYnCVKZ vkKhmYQFk4zjnEsMVAJJLB/8bK9ne4dh7bgxDynrdeqqiiObunh61/PoURupWQA6 GvB5Uj/PJX8Oo1yFBwCwQxKp0EwTYsncWSX9q87v6bYxotYlo0pGZqkFDfRkZEEp Lf54LU2aEhfJWmalHjGIWQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1711985054; x= 1711992254; bh=RrcJpR6o9gazuIRw+eN1bhtXNZiNsVKHCtdZLgD7j4Q=; b=H 8ViwOeGbbq+0ftgw9lG/q6Sdjq4sstv3j2cC3fs7fOHnewCJDDiRp8KHeb4eqEe4 6J68gmHTANZIX3mQlpy26hioYdl1oZGz31HdQKvoQgCzXyNX3WOpzO9hMt4Hn0i+ DTzd6mYgBPTskSGZfzB53y5O4UclDSY0vjv7aKyokvuN/Z/xNL985lSoFNRyuY2W +7i4BzVYZGGdC7nRi1IPzUoSvMpt9FDLVWvIJ4LyiwuOI4yrmFpHODtv03T3x0KC tlRobgtTo1YtI92uULA3LQFXWZfvY2/98nLk2B3BAkzOFfTelaStGUmzaoovksqz q4byBey1VgsA43juLcSTw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudeftddgkeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggugfgjsehtkeertddttdejnecuhfhrohhmpefirhgv ghcumffjuceoghhrvghgsehkrhhorghhrdgtohhmqeenucggtffrrghtthgvrhhnpefgke ffieefieevkeelteejvdetvddtledugfdvhfetjeejieduledtfefffedvieenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvgheskhhroh grhhdrtghomh X-ME-Proxy: Feedback-ID: i787e41f1:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 1 Apr 2024 11:24:13 -0400 (EDT) Date: Mon, 1 Apr 2024 17:24:10 +0200 From: Greg KH To: Alexei Starovoitov Cc: Bagas Sanjaya , Viktor Malik , Andrii Nakryiko , Daniel Xu , Alexei Starovoitov , Nick Desaulniers , Natanael Copa , Linux Kernel Mailing List , Linux Regressions , Linux Stable Subject: Re: Fwd: stable kernels 6.6.23 and 6.1.83 fails to build: error: unknown type name 'u32' Message-ID: <2024040100-skies-outplayed-c162@gregkh> References: <2024040143-shrimp-congress-8263@gregkh> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Mon, Apr 01, 2024 at 08:09:40AM -0700, Alexei Starovoitov wrote: > On Mon, Apr 1, 2024 at 7:26 AM Bagas Sanjaya wrote: > > > > On Mon, Apr 01, 2024 at 04:15:25PM +0200, Greg KH wrote: > > > On Mon, Apr 01, 2024 at 09:09:55PM +0700, Bagas Sanjaya wrote: > > > > Hi, > > > > > > > > On Bugzilla, ncopa@alpinelinux.org reported resolve_btfids FTBFS regression > > > > on musl system [1]: > > > > > > > > > The latest releases fails to build with musl libc (Alpine Linux edge and v3.19): > > > > > > > > > > ``` > > > > > rm -f -f /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tools/bpf/resolve_btfids/libbpf/libbpf.a; ar rcs /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tool > > > > > s/bpf/resolve_btfids/libbpf/libbpf.a /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf-in.o > > > > > In file included from main.c:73: > > > > > /home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:7:9: error: unknown type name 'u32' > > > > > 7 | u32 cnt; > > > > > | ^~~ > > > > > /home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:8:9: error: unknown type name 'u32' > > > > > 8 | u32 ids[]; > > > > > | ^~~ > > > > > /home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:12:9: error: unknown type name 'u32' > > > > > 12 | u32 cnt; > > > > > | ^~~ > > > > > /home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:13:9: error: unknown type name 'u32' > > > > > 13 | u32 flags; > > > > > | ^~~ > > > > > /home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:15:17: error: unknown type name 'u32' > > > > > 15 | u32 id; > > > > > | ^~~ > > > > > /home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:16:17: error: unknown type name 'u32' > > > > > 16 | u32 flags; > > > > > | ^~~ > > > > > /home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:215:8: error: unknown type name 'u32' > > > > > 215 | extern u32 btf_tracing_ids[]; > > > > > | ^~~ > > > > > make[4]: *** [/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/build/Makefile.build:98: /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tools/bpf/resolve_btfids > > > > > /main.o] Error 1 > > > > > make[4]: *** Waiting for unfinished jobs.... > > > > > > make[3]: *** [Makefile:83: /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tools/bpf/resolve_btfids//resolve_btfids-in.o] Error 2 > > > > > make[2]: *** [Makefile:76: bpf/resolve_btfids] Error 2 > > > > > make[1]: *** [/home/ncopa/aports/main/linux-lts/src/linux-6.6/Makefile:1354: tools/bpf/resolve_btfids] Error 2 > > > > > make: *** [/home/ncopa/aports/main/linux-lts/src/linux-6.6/Makefile:234: __sub-make] Error 2 > > > > > ``` > > > > > > > > Bisection led to upstream commit 9707ac4fe2f5ba ("tools/resolve_btfids: > > > > Refactor set sorting with types from btf_ids.h") as the culprit. > > > > > > > > See the report on Bugzilla for the full thread and proposed fix. > > > > > > Is the proposed fix a commit to backport? > > > > Nope (see below). > > The fix is in bpf tree. > commit 62248b22d01e ("tools/resolve_btfids: fix build with musl libc") Thanks, I'll go queue that up now to make people's lives easier. greg k-h