Elfutils在Mac上构建错误:配置:错误:__ thread支持需要
repro的说明:
$ git clone --depth=1 git://sourceware.org/git/elfutils.git
$ cd elfutils
$ autoreconf -i -f
$ ./configure
错误日志:
...
checking whether the compiler generates build-ids... ./configure: line 6951: -n: command not found
no
configure: WARNING: compiler doesn't generate build-id by default
checking whether gcc supports -Wl,-z,relro... no
checking for __thread support... no
configure: error: __thread support required
这里缺少什么?
机器详细信息: MacOS 12.3.1
Instructions to repro:
$ git clone --depth=1 git://sourceware.org/git/elfutils.git
$ cd elfutils
$ autoreconf -i -f
$ ./configure
Error log:
...
checking whether the compiler generates build-ids... ./configure: line 6951: -n: command not found
no
configure: WARNING: compiler doesn't generate build-id by default
checking whether gcc supports -Wl,-z,relro... no
checking for __thread support... no
configure: error: __thread support required
What is missing here?
Machine details:
MacOS 12.3.1
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我评论说,
然后重新生成配置
,最后解决这个问题
I commented out
Then re-generate the configure with
Finally, workaround this problem