macos - musl libc 可以在 OS X 上构建吗?

标签 macos building musl

我正在尝试构建 musl-libc在运行 OS X 10.11.5 的计算机上。不幸的是,我在运行 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

我正在使用 Clang 7.3.0 (703-0-31),并且我正在使用从 git://git.musl-libc.org/musl 的 musl 存储库中提取的源代码.

最佳答案

这些是 OS X 汇编器错误,这意味着它与 GNU 不同,因为它理解目标文件中特殊的弱符号和隐藏符号定义的方式。

.weak指令是possibly supported by Apple as as .weak_definition , .hidden 是 ELF 特定的(OS X 使用 Mach-O 二进制文件格式)。

关于macos - musl libc 可以在 OS X 上构建吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40225542/

相关文章:

php - 使用 pecl 在 OS X El Capitan (v10.11.1) 上安装 Mongodb 驱动程序

macos - AppKit/Cocoa 模拟风格的自定义 NSControl

linux - 内核 panic -不同步:VFS:无法将root fs挂载到unknown-bloc(8,2)

ios - Cordova iOS : xcrun can't find "PackageApplication" after xcode update

openwrt - 如何从头开始获得更小的工具链?

c - "error: expected expression before struct"在宏参数到 `offsetof` 与 musl 的宏函数内

c++ - 针对 musl 编译 libstdc++

python - pyobjc-3.0.3 不会安装在 OS X 10.10 上

swift - 如何在 Swift 的 macOS 中禁用弹出按钮的 menuItem?

css - 覆盖默认应用程序图标(SVG 或 Fonticon?)