Skip to content
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

[SR-6535] In-tree LLDB tests are failing as a dependency is missing #4382

Open
dcci mannequin opened this issue Dec 5, 2017 · 3 comments
Open

[SR-6535] In-tree LLDB tests are failing as a dependency is missing #4382

dcci mannequin opened this issue Dec 5, 2017 · 3 comments
Labels
bug Something isn't working LLDB for Swift

Comments

@dcci
Copy link
Mannequin

dcci mannequin commented Dec 5, 2017

Previous ID SR-6535
Radar None
Original Reporter @dcci
Type Bug
Additional Detail from JIRA
Votes 0
Component/s LLDB for Swift
Labels Bug
Assignee None
Priority Medium

md5: 2f2154a7be8a54dc7d6334c09a8a202b

Issue Description:

Arguably this is failing because the python includes are not installed/misconfigured, but maybe cmake/build-script can error if this dependency is missing?

Command invoked: /usr/bin/python /Users/dcci/work/swift/lldb/test/dotest.py --executable /Users/dcci/work/swift/build/Ninja-RelWithDebInfoAssert/lldb-macosx-x86_64/CustomSwift-Release/lldb --rerun-all-issues -C /Users/dcci/work/swift/build/Ninja-RelWithDebInfoAssert/llvm-macosx-x86_64/bin/clang -s 2017-12-05-08_52_16 --results-port 50117 -S fnmac --inferior -p TestSourceManager.py /Users/dcci/work/swift/lldb/packages/Python/lldbsuite/test --event-add-entries worker_index=7:int
768 out of 770 test suites processed - TestSourceManager.py
/Users/dcci/work/swift/lldb/packages/Python/lldbsuite/test/crashinfo.c:15:10: fatal error: 'Python/Python.h' file not found
#include <Python/Python.h>
         ^~~~~~~~~~~~~~~~~
1 error generated.
Traceback (most recent call last):
  File "/Users/dcci/work/swift/lldb/test/dotest.py", line 7, in <module>
    lldbsuite.test.run_suite()
  File "/Users/dcci/work/swift/lldb/packages/Python/lldbsuite/test/dotest.py", line 1194, in run_suite
    configuration.setupCrashInfoHook()
  File "/Users/dcci/work/swift/lldb/packages/Python/lldbsuite/test/configuration.py", line 51, in setupCrashInfoHook
    raise Exception('command failed: "{}"'.format(cmd))
Exception: command failed: "SDKROOT= xcrun clang /Users/dcci/work/swift/lldb/packages/Python/lldbsuite/test/crashinfo.c -o /Users/dcci/work/swift/lldb/packages/Python/lldbsuite/test/crashinfo.so -framework Python -Xlinker -dylib"
@dcci
Copy link
Mannequin Author

dcci mannequin commented Dec 5, 2017

cc: @jasonmolenda/jingham@apple.com (JIRA User)

@belkadan
Copy link

belkadan commented Dec 5, 2017

This seems like it isn't specific to Swift, except for build-script trying to detect the scenario.

@swift-ci
Copy link

swift-ci commented Dec 5, 2017

Comment by Jim Ingham (JIRA)

This was discussed in the thread:

http://lists.llvm.org/pipermail/lldb-dev/2017-November/012945.html

on the lldb-dev mailing list. IIUC the problem comes about if you installed the Xcode CommandLine Tools at some point on your machine.

Pavel said he got it working by explicitly specifying the SDKRoot to macosx.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working LLDB for Swift
Projects
None yet
Development

No branches or pull requests

2 participants