Skip to content

Instantly share code, notes, and snippets.

Created July 15, 2015 03:11
Show Gist options
  • Save anonymous/8033fea7f86bf2cdc1b3 to your computer and use it in GitHub Desktop.
Save anonymous/8033fea7f86bf2cdc1b3 to your computer and use it in GitHub Desktop.
Building native extensions. This could take a while...
ERROR: Error installing json:
ERROR: Failed to build gem native extension.
/usr/bin/ruby -r ./siteconf20150715-5754-1edqiwq.rb extconf.rb
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling generator.c
In file included from /usr/include/stdio.h:27:0,
from /usr/include/ruby-2.2.0/ruby/defines.h:26,
from /usr/include/ruby-2.2.0/ruby/ruby.h:29,
from /usr/include/ruby-2.2.0/ruby.h:33,
from ../fbuffer/fbuffer.h:5,
from generator.c:1:
/usr/include/features.h:328:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
In file included from generator.c:1:0:
../fbuffer/fbuffer.h: In function ‘fbuffer_to_s’:
../fbuffer/fbuffer.h:175:47: error: macro "rb_str_new" requires 2 arguments, but only 1 given
VALUE result = rb_str_new(FBUFFER_PAIR(fb));
^
../fbuffer/fbuffer.h:175:20: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
VALUE result = rb_str_new(FBUFFER_PAIR(fb));
^
Makefile:237: recipe for target 'generator.o' failed
make: *** [generator.o] Error 1
make failed, exit code 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment