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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

OS X 10.11 Ruby / Rails users can install therubyracer again

1 点作者 jbaviat大约 9 年前

1 comment

jbaviat大约 9 年前
This new version fixes issues that many customers have had with rubies built with darwin15 (OSX 10.11).<p>For this version, no V8 pre-compiled binaries were available. So the install fallbacks on the source, and people with XCode 7.3 installed were unable to compile V8 as is - because Clang 7.3 now enables the -Wshift-negative-value warning - itself turned into error by a global -Werror defined in libv8.<p>This resolves many issues raised by therubyracer users:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;cowboyd&#x2F;libv8&#x2F;issues#205" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;cowboyd&#x2F;libv8&#x2F;issues#205</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;cowboyd&#x2F;therubyracer#405" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;cowboyd&#x2F;therubyracer#405</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;cowboyd&#x2F;therubyracer#403" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;cowboyd&#x2F;therubyracer#403</a><p>Despite what the changelog states, this is indeed released, thanks to @ignisf.<p>For the record, the error was looking like that:<p><pre><code> In file included from ..&#x2F;src&#x2F;elements.h:32: ..&#x2F;src&#x2F;objects.h:5252:44: error: shifting a negative signed value is undefined [-Werror,-Wshift-negative-value] static const int kElementsKindMask = (-1 &lt;&lt; kElementsKindShift) &amp; ~~ ^ ..&#x2F;src&#x2F;objects.h:7386:36: error: shifting a negative signed value is undefined [-Werror,-Wshift-negative-value] (~kMaxCachedArrayIndexLength &lt;&lt; kArrayIndexHashLengthShift) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ 2 errors generated.</code></pre>