TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Building Elixir from source segfaults on macOS on Apple Silicon while compiling

113 点作者 shadykiller将近 5 年前

11 条评论

oefrha将近 5 年前
Related: ongoing compatibility table compiled by the Homebrew team: <a href="https:&#x2F;&#x2F;github.com&#x2F;Homebrew&#x2F;brew&#x2F;issues&#x2F;7857" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Homebrew&#x2F;brew&#x2F;issues&#x2F;7857</a>. (Please respect the team and refrain from polluting the thread. If in doubt check the comments marked off topic.)
评论 #23823700 未加载
评论 #23828447 未加载
评论 #23824240 未加载
blairanderson将近 5 年前
The first comment on that thread is from the creator of Elixir:<p>&gt; Elixir doesn’t compile any native code. Therefore these errors mean that you were able to compile the Erlang VM but either the code or the compiler has bugs and the VM is seg faulting.
评论 #23824223 未加载
st3fan将近 5 年前
Why is this news? Thousands of projects are in this position where they are porting to a new platform. This is normal.
评论 #23828622 未加载
评论 #23828332 未加载
评论 #23825209 未加载
评论 #23834629 未加载
js2将近 5 年前
I tried to use clang to compile some NDK code on Android and the resulting binary segfaulted. I tracked it down to what appeared to be a bug with register spilling. The fix was to use gcc and hope the clang bug was eventually fixed.<p>These things happen.<p><a href="https:&#x2F;&#x2F;groups.google.com&#x2F;forum&#x2F;m&#x2F;#!topic&#x2F;google-breakpad-discuss&#x2F;uNjAGPCX1Fo" rel="nofollow">https:&#x2F;&#x2F;groups.google.com&#x2F;forum&#x2F;m&#x2F;#!topic&#x2F;google-breakpad-di...</a>
评论 #23828455 未加载
benmmurphy将近 5 年前
The elixir compiler runs jobs in parallel so it could be triggering a concurrency issue due to differences in the memory model between x86 and ARM. I’ve peered at the Erlang VM code and it looks like they are using primitives that are aware of the differences but they might not have covered everything.<p>Until recently there was a concurrency bug in the VM that would trigger on elixir compiles that would cause compilation to hang on both x86 and ARM.
nazgulsenpai将近 5 年前
Honest question, why go through this transition with macOS as a developer instead of Linux or Windows? Is there something that macOS provides developers that other operating systems don&#x27;t?
评论 #23824516 未加载
评论 #23824750 未加载
评论 #23824378 未加载
评论 #23824489 未加载
评论 #23824388 未加载
评论 #23824590 未加载
评论 #23828330 未加载
评论 #23824854 未加载
评论 #23825880 未加载
评论 #23824348 未加载
Nursie将近 5 年前
Stupid question time -<p>Where are these folks getting Apple silicon? Is there a dev MacOS distribution for iPad? Or is it likely they have preview hardware?
评论 #23824749 未加载
评论 #23824766 未加载
评论 #23827276 未加载
评论 #23825343 未加载
评论 #23824745 未加载
olliej将近 5 年前
Are there any 4k page size expectations built into the VM? From wwdc the DTKs have 16k pages?
vmchale将近 5 年前
I expect that we&#x27;ll see a lot of this. At least it&#x27;s getting caught before it gets to consumers? But not entirely impressed with the work Apple is making developers shoulder.
评论 #23823866 未加载
Ijumfs将近 5 年前
&gt;a new architecture has some bugs OR &gt;turns out the person compiled the thing with BSD make instead of gmake
Vosporos将近 5 年前
Always use gmake.