Skip to content

Instantly share code, notes, and snippets.

Created December 25, 2017 15:51
Show Gist options
  • Save anonymous/5783cf03ea0f19e69c2fc30d1230f42a to your computer and use it in GitHub Desktop.
Save anonymous/5783cf03ea0f19e69c2fc30d1230f42a to your computer and use it in GitHub Desktop.
# cat /usr/local/bundle/extensions/x86_64-linux/2.5.0/ffi-1.9.18/mkmf.log
"pkg-config --exists libffi"
| pkg-config --libs libffi
=> "-lffi\n"
"gcc -o conftest -I/usr/local/include/ruby-2.5.0/x86_64-linux -I/usr/local/include/ruby-2.5.0/ruby/backward -I/usr/local/include/ruby-2.5.0 -I. -O3 -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wmisleading-indentation -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wduplicated-cond -Wno-maybe-uninitialized -fPIC conftest.c -L. -L/usr/local/lib -Wl,-rpath,/usr/local/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lruby -lpthread -ldl -lcrypt -lm -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return 0;
6: }
/* end */
"gcc -o conftest -I/usr/local/include/ruby-2.5.0/x86_64-linux -I/usr/local/include/ruby-2.5.0/ruby/backward -I/usr/local/include/ruby-2.5.0 -I. -O3 -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wmisleading-indentation -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wduplicated-cond -Wno-maybe-uninitialized -fPIC conftest.c -L. -L/usr/local/lib -Wl,-rpath,/usr/local/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lruby -lffi -lpthread -ldl -lcrypt -lm -lc"
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/bin/$(RUBY_BASE_NAME)
--with-ffi_c-dir
--without-ffi_c-dir
--with-ffi_c-include
--without-ffi_c-include=${ffi_c-dir}/include
--with-ffi_c-lib
--without-ffi_c-lib=${ffi_c-dir}/lib
--with-libffi-config
--without-libffi-config
--with-pkg-config
--without-pkg-config
/usr/local/lib/ruby/2.5.0/mkmf.rb:309:in `sync=': closed stream (IOError)
from /usr/local/lib/ruby/2.5.0/mkmf.rb:309:in `log_open'
from /usr/local/lib/ruby/2.5.0/mkmf.rb:327:in `message'
from /usr/local/lib/ruby/2.5.0/mkmf.rb:415:in `log_src'
from /usr/local/lib/ruby/2.5.0/mkmf.rb:465:in `ensure in try_do'
from /usr/local/lib/ruby/2.5.0/mkmf.rb:465:in `try_do'
from /usr/local/lib/ruby/2.5.0/mkmf.rb:541:in `try_link0'
from /usr/local/lib/ruby/2.5.0/mkmf.rb:559:in `try_link'
from /usr/local/lib/ruby/2.5.0/mkmf.rb:660:in `try_ldflags'
from /usr/local/lib/ruby/2.5.0/mkmf.rb:1820:in `pkg_config'
from extconf.rb:15:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment