-
Notifications
You must be signed in to change notification settings - Fork 102
Open
Description
full build log: https://gist.githubusercontent.com/lucascolley/6b97ffa8f942011f6f47eafeecb7fb60/raw/d52aa086bced6f0dfbda61b4b4862ac45994c4c7/log.txt
package definition: https://github.com/lucascolley/asan-stack/tree/main/cpython
error when trying to use the built Python:
│ │ error: Failed to inspect Python interpreter from provided path at `$PREFIX/bin/python`
│ │ Caused by: Querying Python at `$PREFIX/bin/python` failed with exit status signal: 6 (SIGABRT)
│ │ [stderr]
│ │ dyld[69580]: Library not loaded: @rpath/libclang_rt.asan_osx_dynamic.dylib
│ │ Referenced from: <758C8CE0-72F0-36D8-9ADD-4948C93834BF> $PREFIX/bin/python3.14
│ │ Reason: tried: '$PREFIX/bin/../lib/libclang_rt.asan_osx_dynamic.dylib' (no such file), '$PREFIX/bin/../lib/libclang_rt.asan_osx_dynamic.dylib' (no such f
│ │ ile)
suspicious section of log example:
│ │ Rpath not in prefix or allow-listed: @executable_path - removing it
│ │ Rpath not in prefix or allow-listed: /Users/lucascolley/ghq/github.com/lucascolley/asan-stack/cpython/.pixi/build/work/python-007Gmp9gnHQ/bld/lib/clang/21/
│ │ lib/darwin - removing it
│ │ install_name_tool for "/var/folders/_j/kscn3hgd6x995v65h1b3gnrm0000gn/T/pythonv6fep3/lib/python3.14/lib-dynload/_tkinter.cpython-314-darwin.so":
│ │ - changing absolute rpath from "/Users/lucascolley/ghq/github.com/lucascolley/asan-stack/cpython/.pixi/build/work/python-007Gmp9gnHQ/host_placehold_placeh
│ │ old_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib" to "@loader_path
│ │ /../.."
│ │ - delete rpath "@executable_path"
│ │ - delete rpath "/Users/lucascolley/ghq/github.com/lucascolley/asan-stack/cpython/.pixi/build/work/python-007Gmp9gnHQ/bld/lib/clang/21/lib/darwin"
actual location of the dylib:
❯ ls -a **/* | where name =~ "asan_osx_dynamic" | select name
╭───┬──────────────────────────────────────────────────────────────────────────────────────────────────╮
│ # │ name │
├───┼──────────────────────────────────────────────────────────────────────────────────────────────────┤
│ 0 │ .pixi/build/work/numpy-K8YFxN4GfUg-wpTTOAWABi0/bld/lib/clang/21/lib/darwin/libclang_rt.asan_osx_ │
│ │ dynamic.dylib │
│ 1 │ .pixi/build/work/python-7mcdhoySzcw-VBmluO3aaIM/bld/lib/clang/21/lib/darwin/libclang_rt.asan_osx │
│ │ _dynamic.dylib │
╰───┴──────────────────────────────────────────────────────────────────────────────────────────────────╯rpath debugging:
❯ otool -L .pixi/build/work/numpy-K8YFxN4GfUg-wpTTOAWABi0/host_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/bin/python3.14
.pixi/build/work/numpy-K8YFxN4GfUg-wpTTOAWABi0/host_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/bin/python3.14:
@rpath/libpython3.14.dylib (compatibility version 3.14.0, current version 3.14.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1356.0.0)
@rpath/libclang_rt.asan_osx_dynamic.dylib (compatibility version 0.0.0, current version 0.0.0)
❯ otool -l .pixi/build/work/numpy-K8YFxN4GfUg-wpTTOAWABi0/host_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/bin/python3.14 | rg -A2 LC_RPATH
cmd LC_RPATH
cmdsize 32
path @loader_path/../lib (offset 12)Metadata
Metadata
Assignees
Labels
No labels