Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1478736lqz; Mon, 1 Apr 2024 07:37:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUdG3vU4CH4Zz86SwJux8ZiZt/6YKObs4ZSBLxk7wqpG/0I/A8oydRYyyp4stP/Ir649EX9WzQsZWbac37kA3hnxU8ToM0IBFllfppaAg== X-Google-Smtp-Source: AGHT+IGctIs3X9TraABlqNPxGXFvwAKm2uO0x5IZ00hnH6DK6ZtBJtNPN6jyrkvEGh6hpy22N4eo X-Received: by 2002:a05:6a20:748e:b0:1a5:73fa:c76c with SMTP id p14-20020a056a20748e00b001a573fac76cmr8106694pzd.18.1711982244046; Mon, 01 Apr 2024 07:37:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711982244; cv=pass; d=google.com; s=arc-20160816; b=GQb/mKK+dppm+Q7+k/1OhI03RE4TaZrGQJ0fsGUB2vBs+ZTeKv2nU2n1U70hyXci0H eiQa0i6Hfz9JIe5Eu/WFKV1befHu8Dl1w34GHNw3kFbdZoO9++Sr/sLd5b6d7IlTRf3W Kxo2IyepvNfB6Jg9q/apvHiFzLQVpfF6Qo3r2vN/Jpwg6cMhb5W9NGQnS+H1oAQ+Gsab yhCR5EWsjQ4g9UuSMKQ44sSczCLumnm844nTYZY2qSqmlSpUw2ZvQw2T1xE4Y+J2rKhU nBUe3m/AlfLiZgA8p0RdzAutUGn+Ll07tWZcyWNmUQ0pvja0ajNckiv+KaApx+VKn4nm Bc6Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=pODHKe4h1pzV0fTG3f868sZOWbcBvAE1L0zwg0ZSk74=; fh=Jk5lhOcjEEgHxflG4binpuKP+gW07zvb1sL+k68zJVQ=; b=V3B34tJHnW3cz9Ns8Luy/GOFbklurdNOinYfA69k17eWR3ZWt4aB7CyAr6KFP12Fwz VXfgj6T86ryFiE1lZHkFsZkAkWc/vJ6ypv28LJ+89uSq3eiJ0HS9EM+vyNosSKbYZyf3 l/jehXL2OgcJaB1msgVbcdtNmA+TeV1bCm4uQaRAwqP3AS0t9oFcNMwyMnUHvnEKWhP5 cHCggzElr7KoQ8JRVKU+JJb3837RroJTsvS7gNxK69nmc5hxGkEZ2QDJ1f+q2Zl+Mggd giBJivEQnOAWFmyIryzbj2RC2y56NTRmspi5NT/9jGNkymEfT4TYdtKe9Pc0+0phpLDI d5/A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=O8EVMKlm; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-126749-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126749-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id l8-20020a17090b078800b002a0353e23bfsi11223860pjz.63.2024.04.01.07.37.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 07:37:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-126749-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=O8EVMKlm; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-126749-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126749-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 928D9B21D04 for ; Mon, 1 Apr 2024 14:36:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 18B1D43ACA; Mon, 1 Apr 2024 14:36:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="O8EVMKlm" Received: from mail-qt1-f173.google.com (mail-qt1-f173.google.com [209.85.160.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8A9AB1FB4 for ; Mon, 1 Apr 2024 14:36:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711982210; cv=none; b=LLkgbSHGYmFQaaB10A93G8/nGyPAYGJE7QLVyMwMt3VacebmKgqqEH1DHtxXBbywhU837FfDfLrwZdUL6y/bH7z8TTuJs9pTLR5NdLpLXiPp3mPM0n+8lewVa3+pYfOzC4/yyySXBrspX4AAKU+Z5zWUnHxaHz6l5QhC63QoMQ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711982210; c=relaxed/simple; bh=EEmuc+b2AkAn41DgNIfZqUpWsbsfsG2NOQu7/VnUndE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=eiu4B9pllaFVpMZy14JQBUYxNixTFaejYwWmabzHRMHtiC7lJh1k3+OkuktpbMe+vQfky8C3vCC/L0Pd80z4fe2BYN+7wNpzVsTV4CzL6TQ99zTee+G+50StGhTV5G9SSUzAQwaNQR94zys8SBdw1qmiON/DXm1Hhw5uMOssMzw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=O8EVMKlm; arc=none smtp.client-ip=209.85.160.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-qt1-f173.google.com with SMTP id d75a77b69052e-432d55b0fa9so435961cf.1 for ; Mon, 01 Apr 2024 07:36:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1711982207; x=1712587007; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=pODHKe4h1pzV0fTG3f868sZOWbcBvAE1L0zwg0ZSk74=; b=O8EVMKlmu614FUhYR10OOX7t+G2oYXnPrwTTFNmThiGv39zBQeXcIEfLpIufoNAyVf NpA7J/olKwsE8EJKEyGEStYrTYUivofm66SyPL+70aCFtBKinGXFuDbaYKl/thCJ3PDD +/4whubZiGxF49VzTr7tVWp+YEFSj5kJlMzWcK0E8SdW8rlwClrrmGAUpPMgmtrSmmkb ng+qQTWCHevNRIqlA7jxyqjHq7vE7D2cwbMY2fQzka2oVkApu3Lqsp8tXDtxMVzW8YfF wulQ5+jeDNr/2f9CgwD8dNTgTPZXBYKVvTcKaQMv/zTNW0Eh8MUP/4i6SpAIlFPX/cM4 l0dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711982207; x=1712587007; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pODHKe4h1pzV0fTG3f868sZOWbcBvAE1L0zwg0ZSk74=; b=VZdGSwZriQoNi2hnsbfheH3Wh/kpA/J1YJc1/1+X6AIAyXKRh08P14TP2Xq14VV9Rx D7MtefMs58DMx8TaTKJfEO0L/ZvOKyKOiaL/XqOiLw7bzXBrwuvaGsjPT5fpEy2Xp5rC 5agMBchFmoVwETaBQZ86Tdjts29hlVD1z5leerweEiZWENVV7mIgevg9r7+o+U7VIbiM eYVEdp4L+0YMlyrCXgrfmpfAOmiKWoVzhSlCdFki2p7I7FxgAswGsfDvZAX2C/2zo4LT Ak3cA3mRgg9XUwgNAABz5NG4j6Ls7eHhLNo1XRQDIbZYUred41LXnDwspHD3B4iUDUub 7BQg== X-Forwarded-Encrypted: i=1; AJvYcCUpsCc3tPwXSNa6JOx3ye5fhSyxL1Cfqq3zoQKkCt2UUq5SFf0RlAjuNGGOT3tDQiGNFGfud3jDQcRXfEoWrdBQgSVe+mYV6vmlmt5B X-Gm-Message-State: AOJu0YyT+FR5RWvyoalDoBz06lpRqW5tErU4LvSU/vKmdac+sp8TvABh HB0w0/H7q+Nnwk67DbiEABBtcMTYeIplhT/dgpBGkNtKjsz72GUKALa2UJ5abo79gO5rqoXLsMH p6k/NbjmErLz+y7VEMPmYhQBdGtlEjUQw+pqQ X-Received: by 2002:a05:622a:1e08:b0:432:b567:407d with SMTP id br8-20020a05622a1e0800b00432b567407dmr739326qtb.6.1711982207211; Mon, 01 Apr 2024 07:36:47 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <2024040143-shrimp-congress-8263@gregkh> In-Reply-To: From: Greg Thelen Date: Mon, 1 Apr 2024 07:36:08 -0700 Message-ID: Subject: Re: Fwd: stable kernels 6.6.23 and 6.1.83 fails to build: error: unknown type name 'u32' To: Bagas Sanjaya Cc: Greg KH , Viktor Malik , Andrii Nakryiko , Daniel Xu , Alexei Starovoitov , Nick Desaulniers , ncopa@alpinelinux.org, Linux Kernel Mailing List , Linux Regressions , Linux Stable Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Apr 1, 2024 at 7:26=E2=80=AFAM 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 regr= ession > > > on musl system [1]: > > > > > > > The latest releases fails to build with musl libc (Alpine Linux edg= e and v3.19): > > > > > > > > ``` > > > > rm -f -f /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/too= ls/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.x= 86_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/bu= ild-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/Makef= ile: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_btfid= s: > > > 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). > > > > > Digging through entries is not the easiest way to get things resolved..= . > > > > 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 Does https://lore.kernel.org/all/20240328110103.28734-1-ncopa@alpinelinux.o= rg/ resolve this? It's staged in the bpf tree. Though I'm not sure when it'll be merged upstream.