我试图在运行OSX10.11.5的机器上构建musl-libc。不幸的是,在运行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我使用的是Clang7.3.0 (703-0-31),我使用的是从git://git.musl-libc.org/musl的musl中提取的源代码。
发布于 2016-10-25 02:58:32
这些是OS汇编程序错误,这意味着它不同于GNU,因为它理解对象文件中特殊的、弱的和隐藏的符号定义。
.weak指令是.weak_definition,而.hidden是ELF特定的(OS使用Mach-O二进制文件格式)。
https://stackoverflow.com/questions/40225542
复制相似问题