From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fout-a6-smtp.messagingengine.com (fout-a6-smtp.messagingengine.com [103.168.172.149]) (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 A3907435526 for ; Mon, 10 Aug 2026 20:01:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.149 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786392103; cv=none; b=VXfwPKtq7qhbdlkTNeZwPmpA90eUoZF4ipYaRug7paa9CaQcbE1fLlTN84tah2VpLXKLC7a4zzqnGRcCqAe+q3PDxcPkpaVmFFxNbGiEntmgmZCMbjjSvzzC//jeu1O6TdycPLf5OKtsn62roadDS0Y+TWvXwUh8kF2Eur8S15A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786392103; c=relaxed/simple; bh=QqjSkyuRby6IP3MRFI82NFcztPzGF7GKK5Pi7JyEaPk=; h=MIME-Version:Date:From:To:Cc:Message-Id:In-Reply-To:References: Subject:Content-Type; b=l0PzwBnhsoaZx25TeGVIMdhlJVGfuYbkM1uzp21eB+n88X9PQ3vr58VLwdXzNBpL4xnMLor3zQLOnTxLhz3Er69U/mTU7QaPwwolW67oVgH1EWYW3BqDMYCafwk4BR8PB3c1EJGzbGPa4q7jYaZ/MwPAB01/n2mW2rbVvECi21A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=OO3jziih; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=VTZYizkr; arc=none smtp.client-ip=103.168.172.149 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="OO3jziih"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="VTZYizkr" Received: from ams-compute-02.internal (ams-compute-02.internal [10.64.2.62]) by mailfout.phl.internal (Postfix) with ESMTP id 4E5F2EC01EB; Mon, 10 Aug 2026 16:01:40 -0400 (EDT) Received: from ams-imap-03 ([10.64.2.23]) by ams-compute-02.internal (MEProxy); Mon, 10 Aug 2026 16:01:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; 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=1786392099; x=1786478499; bh=5NZqLxRdwIk3mQ+SUN44zCI2FQ+UgmPlrVn8El+5pX4=; b= OO3jziihSn4PR4SE+sIIQ2NCTFZj41sRrt0Ixxj2woTUM1uqQSnHkWKW2+Gt+Woc PxlPJUydKyzuWcmSTBcNkmUzHS8HQIY2m5gR2N3uxVSIarTmWRZi+IJq6LMsHCKV FZZ93eEWoavRbisRJolW77bOwIiTqd2AXi4iFxm1mZn4wlORnLJAuvR1iFm7nbJR 1x7g8Ht0PCkMwCwX/VWxEy3STTxacPpukTCNgz0KPrKWcYb2qMHtCIl3Pb6UQi8l 0xm9idx603+O2cQQd3EfI9lI0GEKhfW4h/c4VX+hSpscTGs5EBQ/VF04yEsFtCjO tZHHOaQnSifRm0gfsZMuRQ== 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-sender:x-me-sender:x-sasl-enc; s=fm3; t=1786392099; x= 1786478499; bh=5NZqLx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6uIMoZtiTgCA X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.ams.internal (Postfix, from userid 501) id DBD9132A0066; Mon, 10 Aug 2026 16:01:34 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ThreadId: AyJzrsxxrgkN Date: Mon, 10 Aug 2026 22:01:14 +0200 From: "Arnd Bergmann" To: "kernel test robot" , "Huacai Chen" Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, "Jiaxun Yang" Message-Id: <25b2a242-9a28-42fe-a361-477f4298617f@app.fastmail.com> In-Reply-To: <202608110230.c32X9KXj-lkp@intel.com> References: <202608110230.c32X9KXj-lkp@intel.com> Subject: Re: loongarch64-linux-gcc: error: unrecognized argument in option '-march=la32v1.0' Content-Type: text/plain Content-Transfer-Encoding: 7bit On Mon, Aug 10, 2026, at 21:47, kernel test robot wrote: > > tree: > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master > head: 06cf61899d6498b33e4b7c87d99d5bd471ccc375 > commit: 3d9aba6618d115750729bba2d1f8af180bd7d3bd LoongArch: Adjust > build infrastructure for 32BIT/64BIT > date: 4 months ago > config: loongarch-randconfig-001-20260811 > (https://download.01.org/0day-ci/archive/20260811/202608110230.c32X9KXj-lkp@intel.com/config) > compiler: loongarch64-linux-gcc (GCC) 15.2.0 > reproduce (this is a W=1 build): > (https://download.01.org/0day-ci/archive/20260811/202608110230.c32X9KXj-lkp@intel.com/reproduce) > > If you fix the issue in a separate patch/commit (i.e. not just a new > version of > the same patch/commit), kindly add following tags > | Fixes: 3d9aba6618d1 ("LoongArch: Adjust build infrastructure for > 32BIT/64BIT") > | Reported-by: kernel test robot > | Closes: > https://lore.kernel.org/oe-kbuild-all/202608110230.c32X9KXj-lkp@intel.com/ > > All errors (new ones prefixed by >>): > >>> loongarch64-linux-gcc: error: unrecognized argument in option '-march=la32v1.0' I see that this option is supported by gcc-16 but not gcc-15. Clang-22 also doesn't have it, not sure about clang-23 or higher. How about this change? --- a/arch/loongarch/Kconfig +++ b/arch/loongarch/Kconfig @@ -224,6 +224,7 @@ choice config 32BIT bool "32-bit kernel" + depends on GCC_VERSION >= 160000 || CLANG_VERSION >= 230000 help Select this option if you want to build a 32-bit kernel.