Closed issue by kqo on void-packages repository https://github.com/void-linux/void-packages/issues/22616 Description: ### System * xuname: * Void 5.6.2 x86_64-musl GenuineIntel uptodate rrFFFF * package: * arduino-cli * gcompat * musl-obstack ### Expected behavior Binaries pulled in by `arduino-cli` which are linked against `glibc` should hopefully work on musl after #22237 (which fixed other missing symbols, thank you for that!). ### Actual behavior The `arm-none-eabi-g++` binary pulled in by the `arduino:sam` core is still missing symbols from obstack, namely: ``` Error relocating [...]/arduino/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++: _obstack_newchunk: symbol not found Error relocating [...]/arduino/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++: obstack_free: symbol not found Error relocating [...]/arduino/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++: _obstack_begin: symbol not found Error relocating [...]/arduino/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++: _obstack_memory_used: symbol not found ``` `gcompat` seems to support building with `musl-obstack`, so I [tried enabling support](https://github.com/void-linux/void-packages/compare/master...kqo:gcompat-arduino) in the template. I can see that `musl-obstack` gets linked in with `-lobstack`, but the binary still can't find the symbols, nor can I with `nm`. I'm really out of my depth with this, so I'm not sure if this is a `gcompat` problem, something I'm doing wrong with `xbps`, or if I'm just misunderstanding how things are supposed to work. ### Steps to reproduce the behavior This will bump into the binary needing obstack symbols: ``` $ arduino-cli core update-index $ arduino-cli core install arduino:sam $ arduino-cli sketch new test_sketch $ arduino-cli compile test_sketch --fqbn arduino:sam:arduino_due_x_dbg ``` It's probably quicker to run: ``` $ LD_PRELOAD=/usr/lib/libgcompat.so.0 ldd ~/.local/share/arduino/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++ ```