Hi,
I'm trying to build an application using snmalloc in with a statically linked musl libc instead of the gnu libc, during that we've been running in a few problems.
I am not sure 100% where the issue orriginates, from my research it seems to be related to the usage of C++ and global destructors.
The error boils down to:
/usr/local/bin/../lib/gcc/x86_64-linux-musl/9.2.0/../../../../x86_64-linux-musl/bin/ld: /target/x86_64-unknown-linux-musl/debug/deps/tremor-17be01d5a5f619ac: hidden symbol `__dso_handle' isn't defined
To make it easy I've created a minimal reproduction with nothing but snmalloc-rs and a mainline function:
https://github.com/Licenser/snmalloc-musl
The error can be triggered by simply running make, it will build a musl docker image and then try to compile the application in it.
Hi,
I'm trying to build an application using snmalloc in with a statically linked musl libc instead of the gnu libc, during that we've been running in a few problems.
I am not sure 100% where the issue orriginates, from my research it seems to be related to the usage of
C++and global destructors.The error boils down to:
To make it easy I've created a minimal reproduction with nothing but snmalloc-rs and a mainline function:
https://github.com/Licenser/snmalloc-musl
The error can be triggered by simply running
make, it will build a musl docker image and then try to compile the application in it.