From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (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 E2CDA21E097 for ; Fri, 29 May 2026 06:07:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780034875; cv=none; b=OqbIPKV9kexngp2sf4IEHTsM0iyyisy93uBpxbqo+vGMU1yupfGbl4wYedwE6gsVprrqa1tQdHnJaEjF295JQS2EOsTnhVteztb1odH17XgKyl1s0HKB9UJgGt4iYrD+XUHv7jTXPeDeTRb2XzygUMCfVMdeg3mC0G0K2gtetIE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780034875; c=relaxed/simple; bh=tCY7u9sGwGDsxEP12gFA3d/nr6xylCVmDrw2eeoMPO8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fw/45ykLb5Yx95reVKUzzx0AYjVXJRla3kNxlDYK3r4SGZUaoMM1diTB7FgCfuXOXBBxB/FB0ExH2BlGBuWtEdMvOYJsxYA7Tam+TbGkMDu8/sX+AkKN0zm6LnJhgs3BpxHMXHStI+bJH9juslOIx94AULafeAo9o1rqO8PuK7w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=TSNLKDSp; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="TSNLKDSp" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1780034872; bh=tCY7u9sGwGDsxEP12gFA3d/nr6xylCVmDrw2eeoMPO8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TSNLKDSphYOKYYNdPpo2cKV3+mSk4nOoO3/DBaalRb3p0IIv9RY3FDr6qT4BZR77k MaOEz3xtHxSXT+LEAsBNHr4vJWmgXkvO6hIz7m3jv6rA/ix+vji/MusZOc9lw9v9Dp 2sHH9++bE5StSTjN4DBdRkn4DMRF4jpI26JZbDs0= Date: Fri, 29 May 2026 08:07:51 +0200 From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Theron York Cc: linux-kernel@vger.kernel.org Subject: Re: LLVM 21 compatibility issue with swab.h Message-ID: References: <399bf58e-1c91-4c3c-a3df-dae08a891b55@cloudnuke.org> 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: <399bf58e-1c91-4c3c-a3df-dae08a891b55@cloudnuke.org> Hi Theron, On 2026-05-29 00:23:09-0500, Theron York wrote: > Building Linux kernel 7.0.6 on Gentoo with LLVM  fails: >   error: unknown type name '__attribute_const__' > > Setup: > - Gentoo Linux > - LLVM 21 (clang) > - musl libc > - x86_64 > > Workaround: >   sed -i 's/__attribute_const__/__attribute__((const))/g' > ./include/uapi/linux/swab.h can you post all the commands you are executing from a clean source checkout *and* the full error message? That will make it much easier to help you. Thomas