Skip to content

Instantly share code, notes, and snippets.

/gem_make.out Secret

Created February 7, 2018 22:47
Show Gist options
  • Save anonymous/58ccf152621b6a092162b7c14e315794 to your computer and use it in GitHub Desktop.
Save anonymous/58ccf152621b6a092162b7c14e315794 to your computer and use it in GitHub Desktop.
current directory: /opt/graalvm-0.31/jre/languages/ruby/lib/ruby/gems/2.3.0/bundler/gems/ruby-opencv-af14c1dd9414/ext/opencv
/opt/graalvm-0.31/jre/languages/ruby/bin/truffleruby -r ./siteconf20180207-14067-bpvk4i.rb extconf.rb
>> Check the required libraries...
checking for main() in -lstdc++... /opt/graalvm-0.31/jre/languages/ruby/lib/mri/mkmf.rb:467:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /opt/graalvm-0.31/jre/languages/ruby/lib/mri/mkmf.rb:553:in `try_link0'
from /opt/graalvm-0.31/jre/languages/ruby/lib/mri/mkmf.rb:568:in `try_link'
from /opt/graalvm-0.31/jre/languages/ruby/lib/mri/mkmf.rb:777:in `try_func'
from /opt/graalvm-0.31/jre/languages/ruby/lib/mri/mkmf.rb:1009:in `block in have_library'
from /opt/graalvm-0.31/jre/languages/ruby/lib/mri/mkmf.rb:954:in `block in checking_for'
from /opt/graalvm-0.31/jre/languages/ruby/lib/mri/mkmf.rb:361:in `block (2 levels) in postpone'
from /opt/graalvm-0.31/jre/languages/ruby/lib/mri/mkmf.rb:331:in `open'
from /opt/graalvm-0.31/jre/languages/ruby/lib/mri/mkmf.rb:361:in `block in postpone'
from /opt/graalvm-0.31/jre/languages/ruby/lib/mri/mkmf.rb:331:in `open'
from /opt/graalvm-0.31/jre/languages/ruby/lib/mri/mkmf.rb:357:in `postpone'
from /opt/graalvm-0.31/jre/languages/ruby/lib/mri/mkmf.rb:953:in `checking_for'
from /opt/graalvm-0.31/jre/languages/ruby/lib/mri/mkmf.rb:1004:in `have_library'
from extconf.rb:55:in `<main>'
*** 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=/opt/graalvm-0.31/jre/bin/ruby
--with-opencv-dir
--without-opencv-dir
--with-opencv-include
--without-opencv-include=${opencv-dir}/include
--with-opencv-lib
--without-opencv-lib=${opencv-dir}/lib
--with-libxml2-dir
--without-libxml2-dir
--with-libxml2-include
--without-libxml2-include=${libxml2-dir}/include
--with-libxml2-lib
--without-libxml2-lib=${libxml2-dir}/lib
--with-stdc++lib
--without-stdc++lib
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/opt/graalvm-0.31/jre/languages/ruby/lib/ruby/gems/2.3.0/bundler/gems/extensions/x86_64-linux/2.3.0/ruby-opencv-af14c1dd9414/mkmf.log
extconf failed, exit code 1
error: Unknown attribute kind (52) (Producer: 'LLVM4.0.1' Reader: 'LLVM 3.8.1')
error: Invalid record (Producer: 'LLVM4.0.1' Reader: 'LLVM 3.8.1')
"clang -o conftest -I/usr/include -I/usr/local/include /opt/graalvm-0.31/jre/languages/ruby/lib/cext/ruby.bc /opt/graalvm-0.31/jre/languages/ruby/lib/cext/trufflemock.bc conftest.c -I/opt/graalvm-0.31/jre/languages/ruby/lib/cext -I/opt/graalvm-0.31/jre/languages/ruby/lib/cext/ruby/backward -I/opt/graalvm-0.31/jre/languages/ruby/lib/cext -I. -g -Wimplicit-function-declaration -Wno-unknown-warning-option -Wno-int-conversion -Wno-int-to-pointer-cast -Wno-unused-value -Wno-incompatible-pointer-types -ferror-limit=500 "
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return 0;
6: }
/* end */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment