Skip to contentSkip to conversation

<instantiation>:7:11: error: expected an immediate

PATCH kernel test robot 4 participants 5 messages May 7, 2025 – May 21, 2025

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   0a00723f4c2d0b273edd0737f236f103164a08eb
commit: 56651128e2fbad80f632f388d6bf1f39c928267a [5904/8679] MIPS: Fix idle VS timer enqueue
config: mips-gpr_defconfig (https://download.01.org/0day-ci/archive/20250507/[email protected]/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250507/[email protected]/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
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

>> <instantiation>:7:11: error: expected an immediate
    ori $26, r4k_wait_idle_size - 2
             ^
   <instantiation>:10:13: error: expected an immediate
    addiu $26, r4k_wait_exit - r4k_wait_insn + 2
               ^
   <instantiation>:10:29: error: expected an immediate
    addiu $26, r4k_wait_exit - r4k_wait_insn + 2
                               ^
>> <instantiation>:7:11: error: expected an immediate
    ori $26, r4k_wait_idle_size - 2
             ^
   <instantiation>:10:13: error: expected an immediate
    addiu $26, r4k_wait_exit - r4k_wait_insn + 2
               ^
   <instantiation>:10:29: error: expected an immediate
    addiu $26, r4k_wait_exit - r4k_wait_insn + 2
                               ^
Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
#1 lore raw
Quoted 24 lines · kernel test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   0a00723f4c2d0b273edd0737f236f103164a08eb
commit: 56651128e2fbad80f632f388d6bf1f39c928267a [5904/8679] MIPS: Fix idle VS timer enqueue
config: mips-gpr_defconfig (https://download.01.org/0day-ci/archive/20250507/[email protected]/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250507/[email protected]/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
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

Quoted 1 line
Quoted 1 line

<instantiation>:7:11: error: expected an immediate

    ori $26, r4k_wait_idle_size - 2
             ^
   <instantiation>:10:13: error: expected an immediate
    addiu $26, r4k_wait_exit - r4k_wait_insn + 2
               ^
   <instantiation>:10:29: error: expected an immediate
    addiu $26, r4k_wait_exit - r4k_wait_insn + 2
                               ^
Quoted 1 line
Quoted 1 line

<instantiation>:7:11: error: expected an immediate

Quoted 8 lines
    ori $26, r4k_wait_idle_size - 2
             ^
   <instantiation>:10:13: error: expected an immediate
    addiu $26, r4k_wait_exit - r4k_wait_insn + 2
               ^
   <instantiation>:10:29: error: expected an immediate
    addiu $26, r4k_wait_exit - r4k_wait_insn + 2
                               ^

I do not see this with tip of tree LLVM. It seems this was only recently supported in the integrated assembler:

https://github.com/llvm/llvm-project/commit/b65e0947cade9bd39036a7700b54c1df4ec00756

If it is not easy to work around, we can probably just leave it broken and tell anybody who notices to upgrade their compiler.

Cheers,
Nathan

#2 lore raw
Quoted 34 lines · Nathan Chancellor
Quoted 24 lines · kernel test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   0a00723f4c2d0b273edd0737f236f103164a08eb
commit: 56651128e2fbad80f632f388d6bf1f39c928267a [5904/8679] MIPS: Fix idle VS timer enqueue
config: mips-gpr_defconfig (https://download.01.org/0day-ci/archive/20250507/[email protected]/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250507/[email protected]/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
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

Quoted 1 line
Quoted 1 line

<instantiation>:7:11: error: expected an immediate

    ori $26, r4k_wait_idle_size - 2
             ^
   <instantiation>:10:13: error: expected an immediate
    addiu $26, r4k_wait_exit - r4k_wait_insn + 2
               ^
   <instantiation>:10:29: error: expected an immediate
    addiu $26, r4k_wait_exit - r4k_wait_insn + 2
                               ^
Quoted 1 line
Quoted 1 line

<instantiation>:7:11: error: expected an immediate

Quoted 8 lines
    ori $26, r4k_wait_idle_size - 2
             ^
   <instantiation>:10:13: error: expected an immediate
    addiu $26, r4k_wait_exit - r4k_wait_insn + 2
               ^
   <instantiation>:10:29: error: expected an immediate
    addiu $26, r4k_wait_exit - r4k_wait_insn + 2
                               ^
Quoted 4 lines

I do not see this with tip of tree LLVM. It seems this was only recently supported in the integrated assembler:

https://github.com/llvm/llvm-project/commit/b65e0947cade9bd39036a7700b54c1df4ec00756

cool

Quoted 2 lines

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...

Thomas.

Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]
#3 lore raw
Quoted 4 lines · Thomas Bogendoerfer
Quoted 2 lines

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.

Maciej

#4 lore raw
Quoted 5 lines · Maciej W. Rozycki
Quoted 3 lines · Thomas Bogendoerfer
Quoted 2 lines

If it is not easy to work around, we can probably just leave it broken and tell anybody who notices to upgrade their compiler.

Quoted 7 lines
Quoted 1 line

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

scripts/min-tool-version.sh +2 -0
index 787868183b84..5f5176505665 100755
@@ -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