Reputation: 14520
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
.
Upvotes: 10
Views: 3853
Reputation:
These are OS X assembler errors and this means that it is different from a GNU as in the way it understands special weak and hidden symbol definitions in object files.
While .weak
directive is possibly supported by Apple as as .weak_definition
, .hidden
is an ELF specific (OS X uses Mach-O binary file format).
Upvotes: 5