swiftlang / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. This fork is used to manage Swift’s stable releases of Clang as well as support the Swift project.
https://llvm.org
Other
1.12k stars 332 forks source link

LLDB test Swift/expression-diagnostics fails on Windows #9620

Open weliveindetail opened 1 week ago

weliveindetail commented 1 week ago

This test was added with https://github.com/swiftlang/llvm-project/commit/8fed7dc6aa10 and we see failures since the rebranch (switching to swiftlang:stable/20240723).

SwiftCI error message:

# RUN: at line 3
T:/5/bin/swiftc -module-cache-path T:/5/.\lldb-test-build.noindex\module-cache-clang -g C:\Users\swift-ci\jenkins\workspace\swift-PR-windows\llvm-project\lldb\test\Shell\Swift/Inputs/Global.swift
# executed command: T:/5/bin/swiftc -module-cache-path 'T:/5/.\lldb-test-build.noindex\module-cache-clang' -g 'C:\Users\swift-ci\jenkins\workspace\swift-PR-windows\llvm-project\lldb\test\Shell\Swift/Inputs/Global.swift'
# .---command stderr------------
# | <unknown>:0: warning: using (deprecated) legacy driver, Swift installation does not contain swift-driver at: 'C:\Users\swift-ci\jenkins\workspace\swift-PR-windows\build\5\bin\swift-driver-new.exe'
# | <unknown>:0: error: unable to load standard library for target 'x86_64-unknown-windows-msvc'
# `-----------------------------
# error: command failed with exit status: 1

Error message on my local machine:

S:/b/5/bin/swiftc -module-cache-path S:/b/5/.\lldb-test-build.noindex\module-cache-clang -g S:\SourceCache\llvm-project\lldb\test\Shell\Swift/Inputs/Global.swift
# executed command: S:/b/5/bin/swiftc -module-cache-path 'S:/b/5/.\lldb-test-build.noindex\module-cache-clang' -g 'S:\SourceCache\llvm-project\lldb\test\Shell\Swift/Inputs/Global.swift'
# .---command stderr------------
# | <unknown>:0: warning: using (deprecated) legacy driver, Swift installation does not contain swift-driver at: 'S:\b\5\bin\swift-driver-new.exe'
# | clang: error: no such file or directory: 'S:\b\5\lib\swift\windows\x86_64\swiftrt.obj'
# | <unknown>:0: error: link command failed with exit code 1 (use -v to see invocation)
# `-----------------------------
# error: command failed with exit status: 1