Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can musl libc be built on OS X?

Tags:

I'm trying to build musl-libc on a machine running OS X 10.11.5. Unfortunately, I get the following error while running make:

clang: warning: optimization flag '-fexcess-precision=standard' is not supported
clang: warning: optimization flag '-frounding-math' is not supported
<inline asm>:6:1: error: unknown directive
.weak _DYNAMIC 
^
<inline asm>:7:1: error: unknown directive
.hidden _DYNAMIC 
^
2 errors generated.
make: *** [obj/crt/Scrt1.o] Error 1

I'm using Clang 7.3.0 (703-0-31) and I'm using the source pulled from the musl repo at git://git.musl-libc.org/musl.