Questions tagged [musl]

A new standard library to power a new generation of Linux-based devices.

MUSL, a new standard library to power a new generation of Linux-based devices. MUSL is lightweight, fast, simple, free, and strives to be correct in the sense of standards-conformance and safety.
http://www.musl-libc.org/

149 questions
2
votes
0 answers

Static install gnupg2 (GPG) version 2.3.6 on amazon linux 2

Problem I am using Amazon Linux 2 EC2 instances. I needed to decrypt files that were encrypted using gpg 2.3, but amazon linux 2 only tracks repos up to 2.0.28 (including amazon linux extras). Decryption fails when using gpg 2.0.28 with this…
nate
  • 21
  • 2
2
votes
0 answers

musl-gcc go build return against hidden symbol `__TMC_END__' can not be used when making a PIE object collect2

I try to build project by using musl In Dockerfile i have FROM golang:1.17 ......Some instructions RUN : \ && wget -O /tmp/musl-1.1.19.tar.gz http://www.musl-libc.org/releases/musl-1.1.19.tar.gz \ && tar -xvf /tmp/musl-1.1.19.tar.gz -C…
DeYuro
  • 65
  • 5
2
votes
0 answers

how do I build a static shared library(self-sustain) using musl?

For some reasons, I want to build a static shared library: a self sustain library that without any external dependent library. My build environment is alpine linux. (I believe that gcc is /usr/bin/aarch64-alpine-linux-musl-gcc) I build my shared…
prgbenz
  • 1,129
  • 4
  • 13
  • 27
2
votes
1 answer

Qt +musl system exception

Hi I build library in c++ and program in c++ that open dll, and it works. Problem is that when I want to open my dll using qt it's open it load symbols but after that when I want to use it and call some function I've got system exception. I read…
Artmetic
  • 350
  • 2
  • 12
2
votes
1 answer

Failing to compile rust fasthash library using musl target x86_64-unknown-linux-musl in docker

Using Mimalloc and alpine build container Dockerfile: #docker build -t fast_min -f scratch/Dockerfile . FROM rust:1.54.0-alpine as builder # 1a: Prepare for static linking RUN apk add --update musl gcc g++ musl-dev build-base alpine-sdk…
JulianK
  • 21
  • 3
2
votes
0 answers

Why does cross-compiling Rust code for AWS Lambda with MUSL complain about "version `GLIBC_2.18' not found"?

I'm cross-compiling my Rust code for AWS Lambda using the muslrust Docker container because it is the most popular MUSL + Rust package I could find on Docker Hub. To compile, I do: alias rust-docker='docker run --workdir /home/src --rm -it --volume…
Chris
  • 39,719
  • 45
  • 189
  • 235
2
votes
0 answers

Is there any function in musl like "backtrace" in glibc

I'm trying to translate my code from centos to Alpine-docker , but Alpine really lack of some functions, like "backtrace" "pthread_rwlockattr_setkind_np" etc.. How could I use them in Alpine or are there any functions instead?
st_fj
  • 21
  • 1
2
votes
1 answer

How does musl's GCC wrapper differ from musl's cross-compiler?

I am trying to compile various programs such as MariaDB with a musl toolchain. That is, I don't want any dependencies on glibc or GNU's linker after compilation has finished. Thus far, I have been using musl's GCC wrapper, musl-gcc to compile…
peachykeen
  • 4,143
  • 4
  • 30
  • 49
2
votes
2 answers

.NET Core 3.1 MSBuild missing libc.musl-x86_64.so.1 on Ubuntu

Until yesterday everything worked as usual. This morning I tried to open a project and I was met with such error: /snap/dotnet-sdk/current/dotnet: error while loading shared libraries: libc.musl-x86_64.so.1: cannot open shared object file: No such…
pzaj
  • 1,062
  • 1
  • 17
  • 37
2
votes
1 answer

Why doesn't `ld -L -l...` match the behavior of `ld /path/to/library.so`?

I have two questions highlighted below. I'm using 64-bit Linux. I saw on another post that MUSL was mentioned as a libc implementation. I tried using this with the following Hello world assembly program that uses two libc functions, write and…
dannyadam
  • 3,950
  • 2
  • 22
  • 19
2
votes
0 answers

Valgrind on Alpine Linux

Trying to setup automatic memory leak tests on gitlab-ci I noticed that Valgrind have some problems with musl libc. .gitlab-ci.yml: .alpine_cmake: &alpine_cmake image: alpine before_script: - apk update - apk add build-base gcc abuild…
DPD-
  • 412
  • 1
  • 5
  • 15
2
votes
1 answer

Problems compiling fio against musl-gcc

I am trying to build FIO using musl-gcc (we need to use musl due to licensing issues with glibc). I am trying to use the header files provided by musl instead of glibc, but have so far been unsuccessful in compiling FIO. I first ran configure with…
Edaro
  • 43
  • 1
  • 6
2
votes
1 answer

Rust musl Docker image cannot find Cargo

I'm trying to get Rust running in Docker to use it for 32-bit musl builds. Ever since I updated it to use the new URL to pull rustup, I'm hitting this issue when running the container interactively using bash: root@2c3549fe3169:/sample# cargo error:…
opensourcegeek
  • 5,552
  • 7
  • 43
  • 64
2
votes
1 answer

Fixing dynamic linker errors when using libc with openssl

Here's a simple hello world sha1-hasher that's using the openssl library. #include #include #include int main() { system("printf '%s' 'hello world' | sha1sum"); unsigned char digest[SHA_DIGEST_LENGTH]; …
Petr Skocik
  • 58,047
  • 6
  • 95
  • 142
2
votes
1 answer

gdb debugging OpenJDK java on Alpine Linux fails with "Thread recieved signal ?, Unknown signal"

I'm having a hard time trying to debug OpenJDK java on Alpine Linux using gdb - was anyone successful in doing so? When trying to debug java in gdb, for example, gdb java and r -version, it instantly fails with: Thread 1 "java" recieved signal ?,…
valiano
  • 16,433
  • 7
  • 64
  • 79