Skip to content

eholum/kilted-libpython-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pixi Kilted Bug

On kilted:

# Statically linked...
$ pixi run -e kilted check

=== file ===
/home/parallels/ROS/robostack/kilted-libpython-bug/.pixi/envs/kilted/lib/libunique_identifier_msgs__rosidl_generator_py.so: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), static-pie linked, not stripped
=== NEEDED ===
(none)


# See the crash
$ pixi run -e kilted crash

dlopen failed: /home/parallels/ROS/robostack/kilted-libpython-bug/.pixi/envs/kilted/lib/libunique_identifier_msgs__rosidl_generator_py.so: undefined symbol: PyObject_GetAttrString

This can be fixed by forcing the linking to python for the binary at compile time with -Wl,--no-as-needed -lpython3.12:

$ pixi run -e kilted crash-fix

OK

On jazzy:

# Note the library is dynamically linked
$ pixi run -e jazzy check

=== file ===
/home/parallels/ROS/robostack/kilted-libpython-bug/.pixi/envs/jazzy/lib/libunique_identifier_msgs__rosidl_generator_py.so: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, not stripped
=== NEEDED ===
 0x0000000000000001 (NEEDED)             Shared library: [libpython3.12.so.1.0]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [ld-linux-aarch64.so.1]         Shared library: [ld-linux-aarch64.so.1]

# Works fine
$ pixi run -e jazzy crash

OK

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors