All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nathan Chancellor <nathan@kernel.org>
To: "Maciej W. Rozycki" <macro@orcam.me.uk>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>,
	kernel test robot <lkp@intel.com>,
	Marco Crivellari <marco.crivellari@suse.com>,
	llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [linux-next:master 5904/8679] <instantiation>:7:11: error: expected an immediate
Date: Wed, 21 May 2025 15:44:50 -0700	[thread overview]
Message-ID: <20250521224450.GA2412476@ax162> (raw)
In-Reply-To: <alpine.DEB.2.21.2505121141400.46553@angie.orcam.me.uk>

On Mon, May 12, 2025 at 11:47:45AM +0100, Maciej W. Rozycki wrote:
> On Thu, 8 May 2025, Thomas Bogendoerfer wrote:
> 
> > > If it is not easy to work around, we can probably just leave it broken
> > > and tell anybody who notices to upgrade their compiler.
> > 
> > I wrapped my head around it today, but no idea how to solve it...
> 
> #if defined(CONFIG_CC_IS_CLANG) && CONFIG_CLANG_VERSION < vvv
> #error Please upgrade to version vvv to build this source
> #endif
> 
> -- or suchlike, I suppose.  Someone just needs to fill `vvv' in.

Given this file is unconditionally compiled, we would be better served
just adjusting min-tool-version.sh to show an error during configuration
time. Technically, this is only needed with LLVM_IAS=1 but that is the
default and adjusting as-version.sh to check the version would be a
little difficult but I will try to think about it more in the next few
days.

Cheers,
Nathan

diff --git a/scripts/min-tool-version.sh b/scripts/min-tool-version.sh
index 787868183b84..5f5176505665 100755
--- a/scripts/min-tool-version.sh
+++ b/scripts/min-tool-version.sh
@@ -30,6 +30,8 @@ llvm)
 		echo 15.0.0
 	elif [ "$SRCARCH" = loongarch ]; then
 		echo 18.0.0
+	elif [ "$SRCARCH" = mips ]; then
+		echo 21.0.0
 	else
 		echo 13.0.1
 	fi

      reply	other threads:[~2025-05-21 22:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-07  5:49 [linux-next:master 5904/8679] <instantiation>:7:11: error: expected an immediate kernel test robot
2025-05-08 16:43 ` Nathan Chancellor
2025-05-08 19:53   ` Thomas Bogendoerfer
2025-05-12 10:47     ` Maciej W. Rozycki
2025-05-21 22:44       ` Nathan Chancellor [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250521224450.GA2412476@ax162 \
    --to=nathan@kernel.org \
    --cc=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=macro@orcam.me.uk \
    --cc=marco.crivellari@suse.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=tsbogend@alpha.franken.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.