Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update libv8 to fix error on bundle install on OS X Yosemite #570

Merged
merged 1 commit into from
Apr 20, 2015

Conversation

floehopper
Copy link
Contributor

I was seeing the following error when running bundle install:

Unable to find a compiler officially supported by v8.
It is recommended to use GCC v4.4 or higher
Using compiler: g++

This then seems to have resulted in the following compilation error:

../src/cached-powers.cc:136:18: error: unused variable 'kCachedPowersLength' [-Werror,-Wunused-const-variable]
static const int kCachedPowersLength = ARRAY_SIZE(kCachedPowers);
                 ^

I believe the problem was fixed between version 3.16.14.3 and version
3.16.14.7 of libv8 and a simple bundle update libv8 seems to have done the
trick.

I was seeing the following error when running `bundle install`:

    Unable to find a compiler officially supported by v8.
    It is recommended to use GCC v4.4 or higher
    Using compiler: g++

This then seems to have resulted in the following compilation error:

    ../src/cached-powers.cc:136:18: error: unused variable 'kCachedPowersLength' [-Werror,-Wunused-const-variable]
    static const int kCachedPowersLength = ARRAY_SIZE(kCachedPowers);
                     ^
I believe the problem was fixed [1] between version 3.16.14.3 and version
3.16.14.7 of libv8 and a simple `bundle update libv8` seems to have done the
trick.

[1]: rubyjs/libv8#124
floehopper added a commit to freerange/imminence that referenced this pull request Apr 13, 2015
I was seeing the following error when running `bundle install`:

    Unable to find a compiler officially supported by v8.
    It is recommended to use GCC v4.4 or higher
    Using compiler: g++

This then seems to have resulted in the following compilation error:

    ../src/cached-powers.cc:136:18: error: unused variable 'kCachedPowersLength' [-Werror,-Wunused-const-variable]
    static const int kCachedPowersLength = ARRAY_SIZE(kCachedPowers);
                     ^
I believe the problem was fixed [1] between version 3.16.14.3 and version
3.16.14.7 of `libv8`. Relaxing the Gemfile constraint on `therubyracer` and
bundle updating `therubyracer` & `libv8` seems to have done the trick.

See also a similar fix for the `static` app [2].

[1]: rubyjs/libv8#124
[2]: alphagov/static#570
benilovj added a commit that referenced this pull request Apr 20, 2015
Update libv8 to fix error on bundle install on OS X Yosemite
@benilovj benilovj merged commit 397225b into alphagov:master Apr 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants