# \#musl

**URL:** https://discuss.ocaml.org/tag/musl/183.md

[Latest](https://discuss.ocaml.org/latest.md) · [Categories](https://discuss.ocaml.org/categories.md) · [Tags](https://discuss.ocaml.org/tags.md)

---

## [Segfaults on static compilation with alpine 3.23 (Fix: -no-pie ?)](https://discuss.ocaml.org/t/segfaults-on-static-compilation-with-alpine-3-23-fix-no-pie/17800)

<div class="topic-metadata">

**Author:** [@bobot](https://discuss.ocaml.org/u/bobot)\
**Replies:** 4\
**Last updated:** [June 16, 2026, 9:27am UTC](https://discuss.ocaml.org/t/segfaults-on-static-compilation-with-alpine-3-23-fix-no-pie/17800 "2026-06-16T09:27:02Z")

</div>

While investigating a segfault with alpine-3.23 and ocaml 4.14 in static compilation, that could involve thread local storage, I stumbled across a segfault on empty ocaml program with ocaml 5.\* ## KO static empty progra…

---

## [OCaml with musl-gcc](https://discuss.ocaml.org/t/ocaml-with-musl-gcc/1557)

<div class="topic-metadata">

**Author:** [@remexre](https://discuss.ocaml.org/u/remexre)\
**Replies:** 1\
**Last updated:** [February 12, 2018, 1:52pm UTC](https://discuss.ocaml.org/t/ocaml-with-musl-gcc/1557 "2018-02-12T13:52:18Z")

</div>

I’m trying to build a musl-linked OCaml .o file on Ubuntu Trusty (specifically on Travis CI’s trusty container), but it looks like Trusty only provides musl-gcc, not musl-clang. The 4.06.0+musl+static+flambda switch requ…
