-
Notifications
You must be signed in to change notification settings - Fork 15.4k
[LLDB] Update Shell lit config to handle c8031c3dd743 #170225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@llvm/pr-subscribers-lldb Author: Alex Langford (bulbazord) ChangesFull diff: https://github.com/llvm/llvm-project/pull/170225.diff 1 Files Affected:
diff --git a/lldb/test/Shell/helper/toolchain.py b/lldb/test/Shell/helper/toolchain.py
index b9e7dd7c196ab..b0d4e272d5646 100644
--- a/lldb/test/Shell/helper/toolchain.py
+++ b/lldb/test/Shell/helper/toolchain.py
@@ -226,7 +226,7 @@ def use_support_substitutions(config):
except OSError:
res = -1
if res == 0 and out:
- sdk_path = lit.util.to_string(out)
+ sdk_path = str(out)
llvm_config.lit_config.note("using SDKROOT: %r" % sdk_path)
host_flags += ["-isysroot", sdk_path]
elif sys.platform != "win32":
|
medismailben
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
|
This is breaking all the shell tests in CI, so I'm going to revert it for now. |
Reverts #170225 See failures in https://ci.swift.org/view/all/job/llvm.org/job/as-lldb-cmake/36912/ ``` [2025-12-02T01:20:37.083Z] # .---command stderr------------ [2025-12-02T01:20:37.083Z] # | clang: warning: no such sysroot directory: 'b/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk' [-Wmissing-sysroot] [2025-12-02T01:20:37.083Z] # | clang: warning: argument unused during compilation: '-fmodules-cache-path=/Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake/lldb-build/lldb-test-build.noindex/module-cache-clang/lldb-shell' [-Wunused-command-line-argument] [2025-12-02T01:20:37.083Z] # | /Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake/lldb-build/tools/lldb/test/Shell/Settings/Output/TestFrameFormatFunctionPrefix.test.tmp/main.m:2:13: warning: non-void function does not return a value [-Wreturn-type] [2025-12-02T01:20:37.083Z] # | 2 | int func() {} [2025-12-02T01:20:37.083Z] # | | ^ [2025-12-02T01:20:37.083Z] # | /Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake/lldb-build/tools/lldb/test/Shell/Settings/Output/TestFrameFormatFunctionPrefix.test.tmp/main.m:3:21: warning: non-void function does not return a value [-Wreturn-type] [2025-12-02T01:20:37.083Z] # | 3 | int bar() { func(); } [2025-12-02T01:20:37.083Z] # | | ^ [2025-12-02T01:20:37.083Z] # | 2 warnings generated. [2025-12-02T01:20:37.083Z] # | ld: library 'System' not found [2025-12-02T01:20:37.083Z] # | clang: error: linker command failed with exit code 1 (use -v to see invocation) [2025-12-02T01:20:37.083Z] # `----------------------------- [2025-12-02T01:20:37.083Z] # error: command failed with exit status: 1 ```
…(#170288) Reverts llvm/llvm-project#170225 See failures in https://ci.swift.org/view/all/job/llvm.org/job/as-lldb-cmake/36912/ ``` [2025-12-02T01:20:37.083Z] # .---command stderr------------ [2025-12-02T01:20:37.083Z] # | clang: warning: no such sysroot directory: 'b/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk' [-Wmissing-sysroot] [2025-12-02T01:20:37.083Z] # | clang: warning: argument unused during compilation: '-fmodules-cache-path=/Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake/lldb-build/lldb-test-build.noindex/module-cache-clang/lldb-shell' [-Wunused-command-line-argument] [2025-12-02T01:20:37.083Z] # | /Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake/lldb-build/tools/lldb/test/Shell/Settings/Output/TestFrameFormatFunctionPrefix.test.tmp/main.m:2:13: warning: non-void function does not return a value [-Wreturn-type] [2025-12-02T01:20:37.083Z] # | 2 | int func() {} [2025-12-02T01:20:37.083Z] # | | ^ [2025-12-02T01:20:37.083Z] # | /Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake/lldb-build/tools/lldb/test/Shell/Settings/Output/TestFrameFormatFunctionPrefix.test.tmp/main.m:3:21: warning: non-void function does not return a value [-Wreturn-type] [2025-12-02T01:20:37.083Z] # | 3 | int bar() { func(); } [2025-12-02T01:20:37.083Z] # | | ^ [2025-12-02T01:20:37.083Z] # | 2 warnings generated. [2025-12-02T01:20:37.083Z] # | ld: library 'System' not found [2025-12-02T01:20:37.083Z] # | clang: error: linker command failed with exit code 1 (use -v to see invocation) [2025-12-02T01:20:37.083Z] # `----------------------------- [2025-12-02T01:20:37.083Z] # error: command failed with exit status: 1 ```
|
@bulbazord / @medismailben This fix wasn't quite right. Here's an example showing why: If you do |
Good catch, @felipepiovezan already reverted this and landed a proper fix 😅 |
Reverts llvm#170225 See failures in https://ci.swift.org/view/all/job/llvm.org/job/as-lldb-cmake/36912/ ``` [2025-12-02T01:20:37.083Z] # .---command stderr------------ [2025-12-02T01:20:37.083Z] # | clang: warning: no such sysroot directory: 'b/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk' [-Wmissing-sysroot] [2025-12-02T01:20:37.083Z] # | clang: warning: argument unused during compilation: '-fmodules-cache-path=/Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake/lldb-build/lldb-test-build.noindex/module-cache-clang/lldb-shell' [-Wunused-command-line-argument] [2025-12-02T01:20:37.083Z] # | /Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake/lldb-build/tools/lldb/test/Shell/Settings/Output/TestFrameFormatFunctionPrefix.test.tmp/main.m:2:13: warning: non-void function does not return a value [-Wreturn-type] [2025-12-02T01:20:37.083Z] # | 2 | int func() {} [2025-12-02T01:20:37.083Z] # | | ^ [2025-12-02T01:20:37.083Z] # | /Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake/lldb-build/tools/lldb/test/Shell/Settings/Output/TestFrameFormatFunctionPrefix.test.tmp/main.m:3:21: warning: non-void function does not return a value [-Wreturn-type] [2025-12-02T01:20:37.083Z] # | 3 | int bar() { func(); } [2025-12-02T01:20:37.083Z] # | | ^ [2025-12-02T01:20:37.083Z] # | 2 warnings generated. [2025-12-02T01:20:37.083Z] # | ld: library 'System' not found [2025-12-02T01:20:37.083Z] # | clang: error: linker command failed with exit code 1 (use -v to see invocation) [2025-12-02T01:20:37.083Z] # `----------------------------- [2025-12-02T01:20:37.083Z] # error: command failed with exit status: 1 ```
No description provided.