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

Gem::Ext::BuildError: ERROR: Failed to build gem native extension. #234

Closed
MartinDelille opened this issue Sep 27, 2018 · 2 comments
Closed

Comments

@MartinDelille
Copy link
Contributor

When I follow the instruction to build the site locally, I have an error:

$ bundle install                        ✔  7812  14:40:37
Fetching gem metadata from https://rubygems.org/............
Fetching i18n 0.7.0
Installing i18n 0.7.0
Fetching json 1.8.1
Installing json 1.8.1 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /usr/local/lib/ruby/gems/2.5.0/gems/json-1.8.1/ext/json/ext/generator
/usr/local/opt/ruby/bin/ruby -r ./siteconf20180927-61203-1phyq4b.rb extconf.rb
creating Makefile

current directory: /usr/local/lib/ruby/gems/2.5.0/gems/json-1.8.1/ext/json/ext/generator
make "DESTDIR=" clean

current directory: /usr/local/lib/ruby/gems/2.5.0/gems/json-1.8.1/ext/json/ext/generator
make "DESTDIR="
compiling generator.c
In file included from generator.c:1:
./../fbuffer/fbuffer.h:175:47: error: too few arguments provided to function-like macro invocation
    VALUE result = rb_str_new(FBUFFER_PAIR(fb));
                                              ^
/usr/local/Cellar/ruby/2.5.1/include/ruby-2.5.0/ruby/intern.h:773:9: note: macro 'rb_str_new' defined
here
#define rb_str_new(str, len) RB_GNUC_EXTENSION_BLOCK(   \
        ^
In file included from generator.c:1:
./../fbuffer/fbuffer.h:175:11: warning: incompatible pointer to integer conversion initializing 'VALUE'
(aka 'unsigned long') with an expression of type 'VALUE (const char *, long)' (aka 'unsigned long
(const char *, long)') [-Wint-conversion]
    VALUE result = rb_str_new(FBUFFER_PAIR(fb));
          ^        ~~~~~~~~~~
...

I didn't sent the whole log but I could put it on https://pastebin.com if needed.

Here is my configuration:

  • OS: macOS
  • ruby version (from https://brew.sh): ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin17]
@etanot
Copy link

etanot commented Oct 8, 2018

This issue seems to similar to this one
solution : this one work fo me
bundle update json && bundle install

@MartinDelille
Copy link
Contributor Author

Nice! I proposed a README fix here: #237

@rtorr rtorr closed this as completed in b568f9e Oct 11, 2018
rtorr added a commit that referenced this issue Oct 11, 2018
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

No branches or pull requests

2 participants