Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1518853lqz; Mon, 1 Apr 2024 08:37:23 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX1OTHqhyF5AlWddWODLBg4KPBXmGy0VaKqCtxTGFDv4uaADbW5S2lEx95N3GhCIRgfvkvK0G3AHC0akJcY09et5B/9chTVHepz9peRPw== X-Google-Smtp-Source: AGHT+IHIq8oO3KLVMJesIgqo9DRx2O3pYAIA75mm2hdootcxUuquxZQ6e/rtHYzDW1oP0Y9+vU8y X-Received: by 2002:a17:906:39c6:b0:a4e:26a4:bc36 with SMTP id i6-20020a17090639c600b00a4e26a4bc36mr5613978eje.7.1711985843286; Mon, 01 Apr 2024 08:37:23 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id cw10-20020a170906c78a00b00a461e236482si4539260ejb.631.2024.04.01.08.37.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 08:37:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-126801-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@alpinelinux.org header.s=smtp header.b=sPJRUoCt; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-126801-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126801-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 20AE11F23AB1 for ; Mon, 1 Apr 2024 15:27:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4F13246558; Mon, 1 Apr 2024 15:27:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=alpinelinux.org header.i=@alpinelinux.org header.b="sPJRUoCt" Received: from gbr-app-1.alpinelinux.org (gbr-app-1.alpinelinux.org [213.219.36.190]) (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 734104596E; Mon, 1 Apr 2024 15:27:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.219.36.190 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711985260; cv=none; b=TEvnIDiqPCo900HS2wgTMmPfyRorLVIOxdG7xoCiEVuD7XTluQIRutddKzcgTkJlmfHSpN2gr5s6YG/B4yrxBpLDBTZhXRhImfM+5PMblBUYoEhsTWqk39P80nVpyDudALylqwxno5Gb0WdKxTJNo7oFEoepaok6V27a65Ef/Jk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711985260; c=relaxed/simple; bh=IXumSUCWEcxOebRu6c1bG6LiQip87HwwnASHg6ZJEjs=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=rr16GrepieDZWKFbqK8bRlizvw05W3icoTXOp10RXJpNgre0Z1f6bovmhzp/pqj/eZpJJWFE69MWW71gixlSqh3ehYlLhcKMbYTP88xNDhbeBrfXEqKt8eHgqBcw7xaEo9qCv0lkEAypmxF/pi3Ykrb88gwrkQ5MAV3+u0AciY4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alpinelinux.org; spf=pass smtp.mailfrom=alpinelinux.org; dkim=pass (1024-bit key) header.d=alpinelinux.org header.i=@alpinelinux.org header.b=sPJRUoCt; arc=none smtp.client-ip=213.219.36.190 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alpinelinux.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alpinelinux.org Received: from ncopa-desktop.lan (ti0056a400-4037.bb.online.no [85.167.238.210]) (Authenticated sender: ncopa@alpinelinux.org) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPSA id 9A4EA2258D6; Mon, 1 Apr 2024 15:27:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alpinelinux.org; s=smtp; t=1711985251; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EbZD58z1sAwDWkRRamsCF5H1xsswpcXAj/U5NCBJMJk=; b=sPJRUoCtJxBkzo1TMAIXuyD7WhrFnxik4mBvsq7xHxnEIiHz81kZ2yh3t/HyQh8SQXeBMg 3zOZY8RIaaye90ogxhfcvrwUDMrZABv2/v9fTzSly/NC2/8yLSMqaHJwWns3/Rb27Ms7IO rEoiYark49mI6qtPcbqilt1VFKXYQD0= Date: Mon, 1 Apr 2024 17:27:27 +0200 From: Natanael Copa To: Greg Thelen Cc: Bagas Sanjaya , Greg KH , Viktor Malik , Andrii Nakryiko , Daniel Xu , Alexei Starovoitov , Nick Desaulniers , Linux Kernel Mailing List , Linux Regressions , Linux Stable Subject: Re: stable kernels 6.6.23 and 6.1.83 fails to build: error: unknown type name 'u32' Message-ID: <20240401172727.08b65053@ncopa-desktop.lan> In-Reply-To: References: <2024040143-shrimp-congress-8263@gregkh> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-alpine-linux-musl) 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=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Mon, 1 Apr 2024 07:36:08 -0700 Greg Thelen 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: =20 > > > On Mon, Apr 01, 2024 at 09:09:55PM +0700, Bagas Sanjaya wrote: =20 > > > > Hi, > > > > > > > > On Bugzilla, ncopa@alpinelinux.org reported resolve_btfids FTBFS re= gression > > > > on musl system [1]: > > > > =20 > > > > > The latest releases fails to build with musl libc (Alpine Linux e= dge and v3.19): > > > > > > > > > > ``` > > > > > rm -f -f /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/t= ools/bpf/resolve_btfids/libbpf/libbpf.a; ar rcs /home/ncopa/aports/main/lin= ux-lts/src/build-lts.x86_64/tool > > > > > s/bpf/resolve_btfids/libbpf/libbpf.a /home/ncopa/aports/main/linu= x-lts/src/build-lts.x86_64/tools/bpf/resolve_btfids/libbpf/staticobjs/libbp= f-in.o > > > > > In file included from main.c:73: > > > > > /home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/lin= ux/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/lin= ux/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/lin= ux/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/lin= ux/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/lin= ux/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/lin= ux/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/lin= ux/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/too= ls/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/Mak= efile:1354: tools/bpf/resolve_btfids] Error 2 > > > > > make: *** [/home/ncopa/aports/main/linux-lts/src/linux-6.6/Makefi= le:234: __sub-make] Error 2 > > > > > ``` =20 > > > > > > > > Bisection led to upstream commit 9707ac4fe2f5ba ("tools/resolve_btf= ids: > > > > Refactor set sorting with types from btf_ids.h") as the culprit. > > > > > > > > See the report on Bugzilla for the full thread and proposed fix. =20 > > > > > > Is the proposed fix a commit to backport? =20 > > > > Nope (see below). > > =20 > > > > > > Digging through entries is not the easiest way to get things resolved= .. > > > =20 > > > > The reporter posted the fix as bug comment [1] instead (hint: include > > linux/types.h) but not submitted it to mailing lists first. > > > > Thanks. > > > > [1]: https://bugzilla.kernel.org/show_bug.cgi?id=3D218647#c2 > > > > -- > > An old man doll... just what I always wanted! - Clara =20 >=20 > Does https://lore.kernel.org/all/20240328110103.28734-1-ncopa@alpinelinux= org/ > resolve this? It's staged in the bpf tree. Though I'm not sure when > it'll be merged upstream. Yes. this is the fix -nc