* [linux-next:master 9641/10053] clang-15: error: clang frontend command failed with exit code 70 (use -v to see invocation)
@ 2022-03-02 17:24 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-03-02 17:24 UTC (permalink / raw)
Cc: kbuild-all, llvm
BCC: lkp@intel.com
CC: Linux Memory Management List <linux-mm@kvack.org>
TO: Kees Cook <keescook@chromium.org>
CC: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: adaedcf826dccf01b69d9a1f1997c9446c6b2c54
commit: 200ed341b8646ea893d5466974d6e107c46237ba [9641/10053] mips: Implement "current_stack_pointer"
config: mips-randconfig-c004-20220302 (https://download.01.org/0day-ci/archive/20220303/202203030117.MEHb12Te-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=200ed341b8646ea893d5466974d6e107c46237ba
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 200ed341b8646ea893d5466974d6e107c46237ba
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash arch/mips/lib/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
fatal error: error in backend: Invalid register name global variable
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: clang -Wp,-MMD,arch/mips/lib/.uncached.o.d -nostdinc -Iarch/mips/include -I./arch/mips/include/generated -Iinclude -I./include -Iarch/mips/include/uapi -I./arch/mips/include/generated/uapi -Iinclude/uapi -I./include/generated/uapi -include include/linux/compiler-version.h -include include/linux/kconfig.h -include include/linux/compiler_types.h -D__KERNEL__ -DVMLINUX_LOAD_ADDRESS=0xffffffff84000000 -DLINKER_LOAD_ADDRESS=0x84000000 -DDATAOFFSET=0 -Qunused-arguments -fmacro-prefix-map== -DKBUILD_EXTRA_WARN1 -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 --target=mips-linux -fintegrated-as -Werror=unknown-warning-option -Werror=ignored-optimization-argument -mno-check-zero-division -mabi=32 -G 0 -mno-abicalls -fno-pic -pipe -msoft-float -DGAS_HAS_SET_HARDFLOAT -Wa,-msoft-float -ffreestanding -EB -fno-stack-check -march=mips32r2 -Wa,--trap -DTOOLCHAIN_SUPPORTS_VIRT -Iarch/mips/include/asm/mach-ath79 -Iarch/mips/include/asm/mach-generic -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-address-of-packed-member -Os -Wframe-larger-than=1024 -fno-stack-protector -Wimplicit-fallthrough -Wno-gnu -mno-global-merge -Wno-unused-but-set-variable -Wno-unused-const-variable -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -fno-stack-clash-protection -pg -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-array-bounds -fno-strict-overflow -fno-stack-check -Werror=date-time -Werror=incompatible-pointer-types -Wextra -Wunused -Wno-unused-parameter -Wmissing-declarations -Wmissing-format-attribute -Wmissing-prototypes -Wold-style-definition -Wmissing-include-dirs -Wunused-but-set-variable -Wunused-const-variable -Wno-missing-field-initializers -Wno-sign-compare -Wno-type-limits -fsanitize=array-bounds -fsanitize=shift -fsanitize=bool -fsanitize=enum -I arch/mips/lib -I ./arch/mips/lib -ffunction-sections -fdata-sections -DKBUILD_MODFILE="arch/mips/lib/uncached" -DKBUILD_BASENAME="uncached" -DKBUILD_MODNAME="uncached" -D__KBUILD_MODNAME=kmod_uncached -c -o arch/mips/lib/uncached.o arch/mips/lib/uncached.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'arch/mips/lib/uncached.c'.
4. Running pass 'MIPS DAG->DAG Pattern Instruction Selection' on function '@run_uncached'
#0 0x000056377073ad7f Signals.cpp:0:0
#1 0x0000563770738c5c llvm::sys::CleanupOnSignal(unsigned long) (/opt/cross/clang-d271fc04d5/bin/clang-15+0x348ec5c)
#2 0x0000563770678fd7 llvm::CrashRecoveryContext::HandleExit(int) (/opt/cross/clang-d271fc04d5/bin/clang-15+0x33cefd7)
#3 0x000056377073130e llvm::sys::Process::Exit(int, bool) (/opt/cross/clang-d271fc04d5/bin/clang-15+0x348730e)
#4 0x000056376e35cccb (/opt/cross/clang-d271fc04d5/bin/clang-15+0x10b2ccb)
#5 0x000056377067fa8c llvm::report_fatal_error(llvm::Twine const&, bool) (/opt/cross/clang-d271fc04d5/bin/clang-15+0x33d5a8c)
#6 0x000056377067fbe8 (/opt/cross/clang-d271fc04d5/bin/clang-15+0x33d5be8)
#7 0x000056376ee0dfb8 llvm::MipsTargetLowering::getRegisterByName(char llvm::LLT, llvm::MachineFunction const&) const (/opt/cross/clang-d271fc04d5/bin/clang-15+0x1b63fb8)
#8 0x000056377158661a (/opt/cross/clang-d271fc04d5/bin/clang-15+0x42dc61a)
#9 0x0000563771587edb unsigned char unsigned int) (/opt/cross/clang-d271fc04d5/bin/clang-15+0x42ddedb)
#10 0x0000563771585d7c llvm::SelectionDAGISel::DoInstructionSelection() (/opt/cross/clang-d271fc04d5/bin/clang-15+0x42dbd7c)
#11 0x000056377158dd76 llvm::SelectionDAGISel::CodeGenAndEmitDAG() (/opt/cross/clang-d271fc04d5/bin/clang-15+0x42e3d76)
#12 0x00005637715910e6 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/opt/cross/clang-d271fc04d5/bin/clang-15+0x42e70e6)
#13 0x00005637715933b7 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (.part.985) SelectionDAGISel.cpp:0:0
#14 0x000056376ee0c80a llvm::MipsDAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&) (/opt/cross/clang-d271fc04d5/bin/clang-15+0x1b6280a)
#15 0x000056376fa8354d llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.53) MachineFunctionPass.cpp:0:0
#16 0x000056376feca807 llvm::FPPassManager::runOnFunction(llvm::Function&) (/opt/cross/clang-d271fc04d5/bin/clang-15+0x2c20807)
#17 0x000056376feca981 llvm::FPPassManager::runOnModule(llvm::Module&) (/opt/cross/clang-d271fc04d5/bin/clang-15+0x2c20981)
#18 0x000056376fecb4ff llvm::legacy::PassManagerImpl::run(llvm::Module&) (/opt/cross/clang-d271fc04d5/bin/clang-15+0x2c214ff)
#19 0x0000563770a55147 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream> >) (/opt/cross/clang-d271fc04d5/bin/clang-15+0x37ab147)
#20 0x00005637716a3693 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/opt/cross/clang-d271fc04d5/bin/clang-15+0x43f9693)
#21 0x000056377217e6e9 clang::ParseAST(clang::Sema&, bool, bool) (/opt/cross/clang-d271fc04d5/bin/clang-15+0x4ed46e9)
#22 0x00005637716a24cf clang::CodeGenAction::ExecuteAction() (/opt/cross/clang-d271fc04d5/bin/clang-15+0x43f84cf)
#23 0x00005637710a5561 clang::FrontendAction::Execute() (/opt/cross/clang-d271fc04d5/bin/clang-15+0x3dfb561)
#24 0x000056377103bfaa clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/cross/clang-d271fc04d5/bin/clang-15+0x3d91faa)
#25 0x0000563771169cbb (/opt/cross/clang-d271fc04d5/bin/clang-15+0x3ebfcbb)
#26 0x000056376e35e27c cc1_main(llvm::ArrayRef<char char (/opt/cross/clang-d271fc04d5/bin/clang-15+0x10b427c)
#27 0x000056376e35af4b ExecuteCC1Tool(llvm::SmallVectorImpl<char driver.cpp:0:0
#28 0x0000563770ed4d95 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> const::'lambda'()>(long) Job.cpp:0:0
#29 0x0000563770678e93 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/opt/cross/clang-d271fc04d5/bin/clang-15+0x33cee93)
#30 0x0000563770ed568e clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> const (.part.216) Job.cpp:0:0
#31 0x0000563770eaa267 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const (/opt/cross/clang-d271fc04d5/bin/clang-15+0x3c00267)
#32 0x0000563770eaac47 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command >&) const (/opt/cross/clang-d271fc04d5/bin/clang-15+0x3c00c47)
#33 0x0000563770eb42f9 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command >&) (/opt/cross/clang-d271fc04d5/bin/clang-15+0x3c0a2f9)
#34 0x000056376e28363f main (/opt/cross/clang-d271fc04d5/bin/clang-15+0xfd963f)
#35 0x00007f164095bd0a __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x26d0a)
#36 0x000056376e35aa6a _start (/opt/cross/clang-d271fc04d5/bin/clang-15+0x10b0a6a)
>> clang-15: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 15.0.0 (git://gitmirror/llvm_project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
Target: mips-unknown-linux
Thread model: posix
InstalledDir: /opt/cross/clang-d271fc04d5/bin
clang-15: note: diagnostic msg:
Makefile arch include kernel nr_bisected scripts source usr
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-02 17:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-02 17:24 [linux-next:master 9641/10053] clang-15: error: clang frontend command failed with exit code 70 (use -v to see invocation) kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).