Skip to content

Target assert fails downstream for tests with device target -triple x86_64-pc-windows-msvc #146566

Open
@schittir

Description

@schittir

https://github.com/llvm/llvm-project/pull/140282/files#diff-56f9373c26f0ad1f09dd4c561b7fe44dc9cfd6d363c54be44816fbc2a9f8a43e

This test has been failing this assert added by #137882

FAIL: Clang :: CodeGenSYCL/unique_stable_name_windows_diff.cpp (11004 of 21742)
******************** TEST 'Clang :: CodeGenSYCL/unique_stable_name_windows_diff.cpp' FAILED ********************
Exit Code: 2

Command Output (stderr):

/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/21/include -nostdsysteminc -triple spir64-unknown-unknown -aux-triple x86_64-pc-windows-msvc -fsycl-is-device -disable-llvm-passes -fsycl-is-device -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenSYCL/unique_stable_name_windows_diff.cpp -o - | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenSYCL/unique_stable_name_windows_diff.cpp '-D$ADDRSPACE=addrspace(1) ' # RUN: at line 1

  • /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/21/include -nostdsysteminc -triple spir64-unknown-unknown -aux-triple x86_64-pc-windows-msvc -fsycl-is-device -disable-llvm-passes -fsycl-is-device -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenSYCL/unique_stable_name_windows_diff.cpp -o -
  • /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenSYCL/unique_stable_name_windows_diff.cpp '-D$ADDRSPACE=addrspace(1) '
    /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/21/include -nostdsysteminc -triple x86_64-pc-windows-msvc -fsycl-is-device -disable-llvm-passes -fsycl-is-device -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenSYCL/unique_stable_name_windows_diff.cpp -o - | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenSYCL/unique_stable_name_windows_diff.cpp '-D$ADDRSPACE=' # RUN: at line 2
  • /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/21/include -nostdsysteminc -triple x86_64-pc-windows-msvc -fsycl-is-device -disable-llvm-passes -fsycl-is-device -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenSYCL/unique_stable_name_windows_diff.cpp -o -
  • /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenSYCL/unique_stable_name_windows_diff.cpp '-D$ADDRSPACE='
    Unknown kernel calling convention
    UNREACHABLE executed at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/TargetInfo.cpp:120!
    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:
  1. Program arguments: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/21/include -nostdsysteminc -triple x86_64-pc-windows-msvc -fsycl-is-device -disable-llvm-passes -fsycl-is-device -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenSYCL/unique_stable_name_windows_diff.cpp -o -
  2. parser at end of file
  3. Per-file LLVM IR generation
    #0 0x000057d360a2cb08 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:804:13
    Fixing Rust build #1 0x000057d360a2a5f5 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:106:18
    Fix a typo #2 0x000057d360a2d1e1 SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:0:3
    Fix a compilation error on gcc8 #3 0x00007a0ec4f18330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
    Fix a compilation error on gcc8 #4 0x00007a0ec4f71b2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
    Seedarg/member/wip #5 0x00007a0ec4f1827e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
    Add check for matching HeaderFilter before emitting Diagnostic #6 0x00007a0ec4efb8ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
    Random engine swap #7 0x000057d360999cdf (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang+0x86c5cdf)
    Update rwlock init #8 0x000057d36149297a (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang+0x91be97a)
    Next80 merge test #9 0x000057d360cd7903 ClangCallConvToLLVMCallConv /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGCall.cpp:0:39
    Fix typo: 'soruce' -> 'source' #10 0x000057d360cd7903 clang::CodeGen::CodeGenTypes::arrangeLLVMFunctionInfo(clang::CanQualclang::Type, clang::CodeGen::FnInfoOpts, llvm::ArrayRef<clang::CanQualclang::Type>, clang::FunctionType::ExtInfo, llvm::ArrayRefclang::FunctionType::ExtParameterInfo, clang::CodeGen::RequiredArgs) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGCall.cpp:855:17
    fix for gcc 8 #11 0x000057d360cdbb28 begin /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallVector.h:268:45
    Fix "Allman" style example #12 0x000057d360cdbb28 end /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallVector.h:270:27
    Defer diag #13 0x000057d360cdbb28 ~SmallVector /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallVector.h:1203:46
    WIP lifetime categories #14 0x000057d360cdbb28 clang::CodeGen::CodeGenTypes::arrangeSYCLKernelCallerDeclaration(clang::QualType, clang::CodeGen::FunctionArgList const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGCall.cpp:764:1
    Fix ClangOpenCLBuiltinsImpl target not found #15 0x000057d36135b7ef _M_ptr /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h:199:51
    __unique_stable_name implementation. #16 0x000057d36135b7ef get /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h:470:21
    Lockdown test #17 0x000057d36135b7ef operator* /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h:453:2
    Lockdown test #18 0x000057d36135b7ef getTypes /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenModule.h:848:37
    Test commit to check lockdown app #19 0x000057d36135b7ef clang::CodeGen::CodeGenModule::EmitSYCLKernelCaller(clang::FunctionDecl const*, clang::ASTContext&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenSYCL.cpp:53:30
    Construct path using a locale #20 0x000057d360c61baf clang::CodeGen::CodeGenModule::EmitDeferred() /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenModule.cpp:3382:11
    moved upfront the skip branch insertion code for correctness. #21 0x000057d360c5e43a clang::CodeGen::CodeGenModule::Release() /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenModule.cpp:891:3
    Update Applyreplacements.h #22 0x000057d3611a9dab (anonymous namespace)::CodeGeneratorImpl::HandleTranslationUnit(clang::ASTContext&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/ModuleBuilder.cpp:291:11
    Fix issue with empty LIB_NAMES #23 0x000057d3611a1b0e clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:243:24
    Vardhan/issue 123 #24 0x000057d362bcf2a9 __normal_iterator /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator.h:1077:20
    Add bugprone-argument-comment option: IgnoreSingleArgument. #25 0x000057d362bcf2a9 begin /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_vector.h:874:16
    Cherry-picked from commit 628e418df1a009e0d073545cbef3604350e7b808 #26 0x000057d362bcf2a9 finalize<std::vector<std::unique_ptr<clang::TemplateInstantiationCallback, std::default_deleteclang::TemplateInstantiationCallback >, std::allocator<std::unique_ptr<clang::TemplateInstantiationCallback, std::default_deleteclang::TemplateInstantiationCallback > > > > /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/Sema/TemplateInstCallback.h:54:16
    Templateissue #27 0x000057d362bcf2a9 clang::ParseAST(clang::Sema&, bool, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseAST.cpp:190:3
    Dfa #28 0x000057d361733d76 clang::FrontendAction::Execute() /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1225:10
    LLVM_COMPLETE_INSTALLATION #29 0x000057d3616a240d getPtr /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:278:42
    Vis debug #30 0x000057d3616a240d operator bool /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:241:16
    [analyzer][NFC][docs] Add CodeChecker to the command line tools #31 0x000057d3616a240d clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1055:23
    Update README.md #32 0x000057d36181b0b2 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:300:25
    Change the tblgen install template to allow mlir-tblgen to install. #33 0x000057d35df13edd cc1_main(llvm::ArrayRef<char const*>, char const*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/tools/driver/cc1_main.cpp:297:15
    Test issue #34 0x000057d35df0feff ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/tools/driver/driver.cpp:223:12
    Test issue #2 #35 0x000057d35df0ef9a clang_main(int, char**, llvm::ToolContext const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/tools/driver/driver.cpp:264:12
    Feature/compiler extension #36 0x000057d35df1fbc7 main /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/driver/clang-driver.cpp:17:10
    Broken links in Kaleidoscope tutorial #37 0x00007a0ec4efd1ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
    llvm 9.0.0 - release pages on github? #38 0x00007a0ec4efd28b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
    building debian packages from source fails on master #39 0x000057d35df0d965 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang+0x5c39965)
    FileCheck error: '' is empty.
    FileCheck command line: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenSYCL/unique_stable_name_windows_diff.cpp -D$ADDRSPACE=

Metadata

Metadata

Labels

clang:codegenIR generation bugs: mangling, exceptions, etc.crashPrefer [crash-on-valid] or [crash-on-invalid]

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions