Skip to content

Conversation

@jieyouxu
Copy link
Member

@jieyouxu jieyouxu commented Nov 7, 2025

Debugging #148636 (comment).

r? ghost

try-job: aarch64-apple

jieyouxu and others added 5 commits November 7, 2025 19:50
The `python()` method was hardcoded to return `/usr/bin/python3` on
macOS, ignoring the `build.python` config option. This change respects
the config while maintaining the system Python as the default.
@rustbot rustbot added A-compiletest Area: The compiletest test runner A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Nov 7, 2025
@jieyouxu
Copy link
Member Author

jieyouxu commented Nov 7, 2025

@bors try

@rust-bors

This comment has been minimized.

rust-bors bot added a commit that referenced this pull request Nov 7, 2025
compiletest: don't pickup a Python from `PYTHONPATH` in debuginfo

try-job: aarch64-apple
@rust-bors
Copy link

rust-bors bot commented Nov 7, 2025

💔 Test for b314ca3 failed: CI. Failed jobs:

@rust-log-analyzer
Copy link
Collaborator

The job aarch64-apple failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
test [debuginfo-lldb] tests/debuginfo/zst-interferes-with-prologue.rs ... FAILED

failures:

---- [debuginfo-lldb] tests/debuginfo/associated-types.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1500
------python3.14 stdout------------------------------

------python3.14 stderr------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'

------------------------------------------

error: Error while running LLDB
status: exit status: 1
command: PYTHONUNBUFFERED="1" "/opt/homebrew/opt/python@3.14/bin/python3.14" "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/associated-types.lldb/a" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/associated-types.lldb/associated-types.debugger.script"
stdout: none
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/associated-types.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/basic-types-globals-metadata.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1500
------python3.14 stdout------------------------------

------python3.14 stderr------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'

------------------------------------------

error: Error while running LLDB
status: exit status: 1
command: PYTHONUNBUFFERED="1" "/opt/homebrew/opt/python@3.14/bin/python3.14" "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/basic-types-globals-metadata.lldb/a" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/basic-types-globals-metadata.lldb/basic-types-globals-metadata.debugger.script"
stdout: none
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/basic-types-globals-metadata.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/basic-types-globals.rs#no-lto stdout ----
NOTE: compiletest thinks it is using LLDB version 1500
------python3.14 stdout------------------------------

------python3.14 stderr------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'

------------------------------------------

error in revision `no-lto`: Error while running LLDB
status: exit status: 1
command: PYTHONUNBUFFERED="1" "/opt/homebrew/opt/python@3.14/bin/python3.14" "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/basic-types-globals.no-lto.lldb/a" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/basic-types-globals.no-lto.lldb/basic-types-globals.debugger.script"
stdout: none
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/basic-types-globals.rs#no-lto stdout end ----
---- [debuginfo-lldb] tests/debuginfo/basic-types-metadata.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1500
------python3.14 stdout------------------------------

------python3.14 stderr------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'

------------------------------------------

error: Error while running LLDB
status: exit status: 1
command: PYTHONUNBUFFERED="1" "/opt/homebrew/opt/python@3.14/bin/python3.14" "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/basic-types-metadata.lldb/a" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/basic-types-metadata.lldb/basic-types-metadata.debugger.script"
stdout: none
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/basic-types-metadata.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/basic-types-mut-globals.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1500
------python3.14 stdout------------------------------

------python3.14 stderr------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'

------------------------------------------

error: Error while running LLDB
status: exit status: 1
command: PYTHONUNBUFFERED="1" "/opt/homebrew/opt/python@3.14/bin/python3.14" "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/basic-types-mut-globals.lldb/a" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/basic-types-mut-globals.lldb/basic-types-mut-globals.debugger.script"
stdout: none
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/basic-types-mut-globals.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/basic-types.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1500
------python3.14 stdout------------------------------

------python3.14 stderr------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'

------------------------------------------

error: Error while running LLDB
status: exit status: 1
command: PYTHONUNBUFFERED="1" "/opt/homebrew/opt/python@3.14/bin/python3.14" "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/basic-types.lldb/a" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/basic-types.lldb/basic-types.debugger.script"
stdout: none
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/basic-types.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/borrowed-basic.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1500
------python3.14 stdout------------------------------

------python3.14 stderr------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'

------------------------------------------

error: Error while running LLDB
status: exit status: 1
command: PYTHONUNBUFFERED="1" "/opt/homebrew/opt/python@3.14/bin/python3.14" "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/borrowed-basic.lldb/a" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/borrowed-basic.lldb/borrowed-basic.debugger.script"
stdout: none
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/borrowed-basic.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/borrowed-c-style-enum.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1500
------python3.14 stdout------------------------------

------python3.14 stderr------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'

------------------------------------------

error: Error while running LLDB
status: exit status: 1
command: PYTHONUNBUFFERED="1" "/opt/homebrew/opt/python@3.14/bin/python3.14" "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/borrowed-c-style-enum.lldb/a" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/borrowed-c-style-enum.lldb/borrowed-c-style-enum.debugger.script"
stdout: none
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/borrowed-c-style-enum.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/borrowed-tuple.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1500
------python3.14 stdout------------------------------

------python3.14 stderr------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'

------------------------------------------

error: Error while running LLDB
status: exit status: 1
command: PYTHONUNBUFFERED="1" "/opt/homebrew/opt/python@3.14/bin/python3.14" "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/borrowed-tuple.lldb/a" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/borrowed-tuple.lldb/borrowed-tuple.debugger.script"
stdout: none
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/borrowed-tuple.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/borrowed-struct.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1500
------python3.14 stdout------------------------------

------python3.14 stderr------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'

------------------------------------------

error: Error while running LLDB
status: exit status: 1
command: PYTHONUNBUFFERED="1" "/opt/homebrew/opt/python@3.14/bin/python3.14" "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/borrowed-struct.lldb/a" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/borrowed-struct.lldb/borrowed-struct.debugger.script"
stdout: none
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/borrowed-struct.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/box.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1500
------python3.14 stdout------------------------------

------python3.14 stderr------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'

------------------------------------------

error: Error while running LLDB
status: exit status: 1
command: PYTHONUNBUFFERED="1" "/opt/homebrew/opt/python@3.14/bin/python3.14" "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/box.lldb/a" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/box.lldb/box.debugger.script"
stdout: none
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/box.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/borrowed-unique-basic.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1500
------python3.14 stdout------------------------------

------python3.14 stderr------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'

------------------------------------------

error: Error while running LLDB
status: exit status: 1
command: PYTHONUNBUFFERED="1" "/opt/homebrew/opt/python@3.14/bin/python3.14" "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/borrowed-unique-basic.lldb/a" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/borrowed-unique-basic.lldb/borrowed-unique-basic.debugger.script"
stdout: none
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/borrowed-unique-basic.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/boxed-struct.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1500
------python3.14 stdout------------------------------

------python3.14 stderr------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'

------------------------------------------

error: Error while running LLDB
status: exit status: 1
command: PYTHONUNBUFFERED="1" "/opt/homebrew/opt/python@3.14/bin/python3.14" "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/boxed-struct.lldb/a" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/boxed-struct.lldb/boxed-struct.debugger.script"
stdout: none
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/boxed-struct.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/by-value-self-argument-in-trait-impl.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1500
------python3.14 stdout------------------------------

------python3.14 stderr------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'

------------------------------------------

error: Error while running LLDB
status: exit status: 1
command: PYTHONUNBUFFERED="1" "/opt/homebrew/opt/python@3.14/bin/python3.14" "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/by-value-self-argument-in-trait-impl.lldb/a" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/by-value-self-argument-in-trait-impl.lldb/by-value-self-argument-in-trait-impl.debugger.script"
stdout: none
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/by-value-self-argument-in-trait-impl.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/captured-fields-1.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1500
------python3.14 stdout------------------------------

------python3.14 stderr------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'

------------------------------------------

error: Error while running LLDB
status: exit status: 1
command: PYTHONUNBUFFERED="1" "/opt/homebrew/opt/python@3.14/bin/python3.14" "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/captured-fields-1.lldb/a" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/captured-fields-1.lldb/captured-fields-1.debugger.script"
stdout: none
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/captured-fields-1.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/c-style-enum-in-composite.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1500
------python3.14 stdout------------------------------

------python3.14 stderr------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'

------------------------------------------

error: Error while running LLDB
status: exit status: 1
command: PYTHONUNBUFFERED="1" "/opt/homebrew/opt/python@3.14/bin/python3.14" "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/c-style-enum-in-composite.lldb/a" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/c-style-enum-in-composite.lldb/c-style-enum-in-composite.debugger.script"
stdout: none
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/c-style-enum-in-composite.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/closure-in-generic-function.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1500
------python3.14 stdout------------------------------

------python3.14 stderr------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'

------------------------------------------

error: Error while running LLDB
status: exit status: 1
command: PYTHONUNBUFFERED="1" "/opt/homebrew/opt/python@3.14/bin/python3.14" "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/closure-in-generic-function.lldb/a" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/closure-in-generic-function.lldb/closure-in-generic-function.debugger.script"
stdout: none
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/closure-in-generic-function.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/captured-fields-2.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1500
------python3.14 stdout------------------------------

------python3.14 stderr------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'

------------------------------------------

error: Error while running LLDB
status: exit status: 1
command: PYTHONUNBUFFERED="1" "/opt/homebrew/opt/python@3.14/bin/python3.14" "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/captured-fields-2.lldb/a" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/captured-fields-2.lldb/captured-fields-2.debugger.script"
stdout: none
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/captured-fields-2.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/constant-debug-locs.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1500
------python3.14 stdout------------------------------

------python3.14 stderr------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'

------------------------------------------

error: Error while running LLDB
status: exit status: 1
command: PYTHONUNBUFFERED="1" "/opt/homebrew/opt/python@3.14/bin/python3.14" "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/constant-debug-locs.lldb/a" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/constant-debug-locs.lldb/constant-debug-locs.debugger.script"
stdout: none
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/constant-debug-locs.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/constant-in-match-pattern.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1500
------python3.14 stdout------------------------------

------python3.14 stderr------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'

------------------------------------------

error: Error while running LLDB
status: exit status: 1
command: PYTHONUNBUFFERED="1" "/opt/homebrew/opt/python@3.14/bin/python3.14" "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/constant-in-match-pattern.lldb/a" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/constant-in-match-pattern.lldb/constant-in-match-pattern.debugger.script"
stdout: none
--- stderr -------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'
------------------------------------------

---- [debuginfo-lldb] tests/debuginfo/constant-in-match-pattern.rs stdout end ----
---- [debuginfo-lldb] tests/debuginfo/constant-ordering-prologue.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1500
------python3.14 stdout------------------------------

------python3.14 stderr------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py", line 17, in <module>
    import lldb
ModuleNotFoundError: No module named 'lldb'

------------------------------------------

error: Error while running LLDB
status: exit status: 1
command: PYTHONUNBUFFERED="1" "/opt/homebrew/opt/python@3.14/bin/python3.14" "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/constant-ordering-prologue.lldb/a" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/constant-ordering-prologue.lldb/constant-ordering-prologue.debugger.script"
stdout: none

@Zalathar
Copy link
Member

Zalathar commented Nov 8, 2025

Note that PYTHONPATH is what Python uses to locate imported libraries.

The current compiletest code sets PYTHONPATH so that Python will be able to successfully import lldb.

@jieyouxu jieyouxu closed this Nov 9, 2025
@rustbot rustbot removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Nov 9, 2025
@jieyouxu jieyouxu deleted the no-pythonpath branch November 9, 2025 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-compiletest Area: The compiletest test runner A-testsuite Area: The testsuite used to check the correctness of rustc T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants