Re: <inline asm>:1:275: error: invalid instruction mnemonic 'brk'
From: Nathan Chancellor
Date: Thu Oct 15 2026 - 17:26:35 EST
On Thu, Oct 08, 2026 at 06:20:17PM +0200, Nathan Chancellor wrote:
> Hi Rong,
>
> This is the build report I mentioned at LPC, please take a look. The
> original report is available at:
>
> https://lore.kernel.org/202609040258.xw9R4qaZ-lkp@xxxxxxxxx/
>
> but I have also included it below.
This should be fixed by commit 4bcfe2902199 ("iommupt/kunit: Use
if_changed_rule for the kunit") in Linus's tree (same root cause,
different error from what I can tell).
https://git.kernel.org/linus/4bcfe29021993cb167fd9bbdb849f7d7247a166f
> On Fri, Sep 04, 2026 at 02:32:03AM +0800, kernel test robot wrote:
> > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> > head: 940de590b839f71d6dc846160534bf202401b8b7
> > commit: 9f2aee8f7d1842be08da860e45265d30dba0d1f7 kbuild: distributed build support for Clang ThinLTO
> > date: 3 months ago
> > config: arm64-randconfig-003-20260830 (https://download.01.org/0day-ci/archive/20260904/202609040258.xw9R4qaZ-lkp@xxxxxxxxx/config)
> > compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
> > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260904/202609040258.xw9R4qaZ-lkp@xxxxxxxxx/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: 9f2aee8f7d18 ("kbuild: distributed build support for Clang ThinLTO")
> > | Reported-by: kernel test robot <lkp@xxxxxxxxx>
> > | Closes: https://lore.kernel.org/oe-kbuild-all/202609040258.xw9R4qaZ-lkp@xxxxxxxxx/
> >
> > All error/warnings (new ones prefixed by >>):
> >
> > warning: overriding the module target triple with x86_64-unknown-linux-gnu [-Woverride-module]
> > >> warning: linking module 'drivers/iommu/generic_pt/fmt/kunit_iommu_riscv64.o': Linking two modules of different target triples: 'arch/arm64/mm/init.o' is 'aarch64-unknown-linux-gnu' whereas 'drivers/iommu/generic_pt/fmt/kunit_iommu_riscv64.o' is 'x86_64-unknown-linux-gnu'
> > [-Wlinker-warnings]
> > >> warning: linking module 'drivers/iommu/generic_pt/fmt/kunit_iommu_riscv64.o': Linking two modules of different target triples: 'lib/kunit/test.o' is 'aarch64-unknown-linux-gnu' whereas 'drivers/iommu/generic_pt/fmt/kunit_iommu_riscv64.o' is 'x86_64-unknown-linux-gnu'
> > [-Wlinker-warnings]
> > >> warning: linking module 'drivers/iommu/generic_pt/fmt/kunit_iommu_riscv64.o': Linking two modules of different target triples: 'lib/kunit/try-catch.o' is 'aarch64-unknown-linux-gnu' whereas 'drivers/iommu/generic_pt/fmt/kunit_iommu_riscv64.o' is 'x86_64-unknown-linux-gnu'
> > [-Wlinker-warnings]
> > >> warning: linking module 'drivers/iommu/generic_pt/fmt/kunit_iommu_riscv64.o': Linking two modules of different target triples: 'lib/maple_tree.o' is 'aarch64-unknown-linux-gnu' whereas 'drivers/iommu/generic_pt/fmt/kunit_iommu_riscv64.o' is 'x86_64-unknown-linux-gnu'
> > [-Wlinker-warnings]
> > >> warning: linking module 'drivers/iommu/generic_pt/fmt/kunit_iommu_riscv64.o': Linking two modules of different target triples: 'mm/vmstat.o' is 'aarch64-unknown-linux-gnu' whereas 'drivers/iommu/generic_pt/fmt/kunit_iommu_riscv64.o' is 'x86_64-unknown-linux-gnu'
--
Cheers,
Nathan