So I tried upgrading Discourse today and it failed due to mini_racer. I’m hosting this on Bitnami, which I know you don’t support, but this doesn’t seem to be a Bitnami thing as it crashes even when I just install it on it’s own with:
gem install mini_racer -v '0.2.4' --source 'https://rubygems.org/'
However, I noticed that mini_racer is at 0.2.5 as of 21 hours ago…but all of the latest releases are over 2 days ago. If I edit the gemfile.lock to force 0.2.5 with:
mini_racer (~> 0.2.5)
Discourse will complain that it can’t build because the file has been edited:
You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated Gemfile.lock to version control.
The dependencies in your gemfile changed
You have added to the Gemfile:
* mini_racer
You have deleted from the Gemfile:
* mini_racer (~> 0.2.5)
I think if I can fix this error then the problem will go away, but I don’t understand what it means to bundle install
elsewhere?
And here’s the full error log when I run:
gem install mini_racer -v '0.2.4' --source 'https://rubygems.org/'
ERROR LOG
Fetching: libv8-7.3.492.27.1-x86_64-linux.gem (100%)
Successfully installed libv8-7.3.492.27.1-x86_64-linux
Fetching: mini_racer-0.2.4.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing mini_racer:
ERROR: Failed to build gem native extension.
current directory: /opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/mini_racer-0.2.4/ext/mini_racer_extension
/opt/bitnami/ruby/bin/ruby -r ./siteconf20190426-939-18bpxj.rb extconf.rb
checking for -lpthread... yes
creating Makefile
current directory: /opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/mini_racer-0.2.4/ext/mini_racer_extension
make "DESTDIR=" clean
current directory: /opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/mini_racer-0.2.4/ext/mini_racer_extension
make "DESTDIR="
compiling mini_racer_extension.cc
cc1plus: warning: command line option ‘-Wimplicit-int’ is valid for C/ObjC but not for C++
mini_racer_extension.cc: In function ‘void prepare_result(v8::MaybeLocal<v8::Value>, v8::TryCatch&, v8::Isolate*, v8::Local<v8::Context>, EvalResult&)’:
mini_racer_extension.cc:234:73: error: no matching function for call to ‘v8::Value::ToObject()’
String::NewFromUtf8(isolate, "JSON"))->ToObject();
^
In file included from mini_racer_extension.cc:4:0:
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2390:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const
V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
^~~~~~~~
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2390:44: note: candidate expects 1 argument, 0 provided
In file included from /opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8-internal.h:13:0,
from /opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:25,
from mini_racer_extension.cc:4:
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2404:35: note: candidate: v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const
Local<Object> ToObject(Isolate* isolate) const);
^
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8config.h:329:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2404:35: note: candidate expects 1 argument, 0 provided
Local<Object> ToObject(Isolate* isolate) const);
^
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8config.h:329:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
mini_racer_extension.cc:239:58: error: no matching function for call to ‘v8::Value::ToObject()’
Local<Object> object = local_value->ToObject();
^
In file included from mini_racer_extension.cc:4:0:
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2390:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const
V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
^~~~~~~~
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2390:44: note: candidate expects 1 argument, 0 provided
In file included from /opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8-internal.h:13:0,
from /opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:25,
from mini_racer_extension.cc:4:
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2404:35: note: candidate: v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const
Local<Object> ToObject(Isolate* isolate) const);
^
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8config.h:329:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2404:35: note: candidate expects 1 argument, 0 provided
Local<Object> ToObject(Isolate* isolate) const);
^
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8config.h:329:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
mini_racer_extension.cc:267:101: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::String>)’
len = snprintf(buf, sizeof(buf), "%s at %s:%i:%i", *String::Utf8Value(message->Get()),
^
In file included from mini_racer_extension.cc:4:0:
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2857:5: note: candidate: v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)
Utf8Value(Isolate* isolate, Local<v8::Value> obj);
^~~~~~~~~
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2857:5: note: candidate expects 2 arguments, 1 provided
mini_racer_extension.cc:268:94: error: no matching function for call to ‘v8::Value::ToString()’
*String::Utf8Value(message->GetScriptResourceName()->ToString()),
^
In file included from mini_racer_extension.cc:4:0:
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2386:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
^~~~~~~~
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2386:44: note: candidate expects 1 argument, 0 provided
In file included from /opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8-internal.h:13:0,
from /opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:25,
from mini_racer_extension.cc:4:
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2402:35: note: candidate: v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const
Local<String> ToString(Isolate* isolate) const);
^
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8config.h:329:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2402:35: note: candidate expects 1 argument, 0 provided
Local<String> ToString(Isolate* isolate) const);
^
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8config.h:329:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
mini_racer_extension.cc:269:55: error: no matching function for call to ‘v8::Message::GetLineNumber()’
message->GetLineNumber(),
^
In file included from mini_racer_extension.cc:4:0:
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:1623:36: note: candidate: v8::Maybe<int> v8::Message::GetLineNumber(v8::Local<v8::Context>) const
V8_WARN_UNUSED_RESULT Maybe<int> GetLineNumber(Local<Context> context) const;
^~~~~~~~~~~~~
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:1623:36: note: candidate expects 1 argument, 0 provided
mini_racer_extension.cc:284:38: error: no matching function for call to ‘v8::TryCatch::StackTrace()’
if (!trycatch.StackTrace().IsEmpty()) {
^
In file included from mini_racer_extension.cc:4:0:
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:8890:43: note: candidate: v8::MaybeLocal<v8::Value> v8::TryCatch::StackTrace(v8::Local<v8::Context>) const
V8_WARN_UNUSED_RESULT MaybeLocal<Value> StackTrace(
^~~~~~~~~~
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:8890:43: note: candidate expects 1 argument, 0 provided
mini_racer_extension.cc:286:71: error: no matching function for call to ‘v8::TryCatch::StackTrace()’
evalRes.backtrace->Reset(isolate, trycatch.StackTrace()->ToString());
^
In file included from mini_racer_extension.cc:4:0:
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:8890:43: note: candidate: v8::MaybeLocal<v8::Value> v8::TryCatch::StackTrace(v8::Local<v8::Context>) const
V8_WARN_UNUSED_RESULT MaybeLocal<Value> StackTrace(
^~~~~~~~~~
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:8890:43: note: candidate expects 1 argument, 0 provided
In file included from /opt/bitnami/ruby/include/ruby-2.5.0/ruby.h:33:0,
from mini_racer_extension.cc:2:
mini_racer_extension.cc: In function ‘VALUE convert_v8_to_ruby(v8::Isolate*, v8::Local<v8::Context>, v8::Local<v8::Value>)’:
mini_racer_extension.cc:366:39: error: no matching function for call to ‘v8::Value::Int32Value()’
return INT2FIX(value->Int32Value());
^
/opt/bitnami/ruby/include/ruby-2.5.0/ruby/ruby.h:233:33: note: in definition of macro ‘RB_INT2FIX’
#define RB_INT2FIX(i) (((VALUE)(i))<<1 | RUBY_FIXNUM_FLAG)
^
mini_racer_extension.cc:366:13: note: in expansion of macro ‘INT2FIX’
return INT2FIX(value->Int32Value());
^~~~~~~
In file included from mini_racer_extension.cc:4:0:
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2427:40: note: candidate: v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^~~~~~~~~~
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2427:40: note: candidate expects 1 argument, 0 provided
mini_racer_extension.cc:370:46: error: no matching function for call to ‘v8::Value::NumberValue()’
return rb_float_new(value->NumberValue());
^
In file included from mini_racer_extension.cc:4:0:
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2422:39: note: candidate: v8::Maybe<double> v8::Value::NumberValue(v8::Local<v8::Context>) const
V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
^~~~~~~~~~~
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2422:39: note: candidate expects 1 argument, 0 provided
mini_racer_extension.cc:411:41: error: no matching function for call to ‘v8::Value::ToObject()’
Local<Object> object = value->ToObject();
^
In file included from mini_racer_extension.cc:4:0:
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2390:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const
V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
^~~~~~~~
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2390:44: note: candidate expects 1 argument, 0 provided
In file included from /opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8-internal.h:13:0,
from /opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:25,
from mini_racer_extension.cc:4:
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2404:35: note: candidate: v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const
Local<Object> ToObject(Isolate* isolate) const);
^
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8config.h:329:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2404:35: note: candidate expects 1 argument, 0 provided
Local<Object> ToObject(Isolate* isolate) const);
^
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8config.h:329:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
mini_racer_extension.cc:434:42: error: no matching function for call to ‘v8::Value::ToString()’
Local<String> rstr = value->ToString();
^
In file included from mini_racer_extension.cc:4:0:
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2386:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
^~~~~~~~
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2386:44: note: candidate expects 1 argument, 0 provided
In file included from /opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8-internal.h:13:0,
from /opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:25,
from mini_racer_extension.cc:4:
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2402:35: note: candidate: v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const
Local<String> ToString(Isolate* isolate) const);
^
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8config.h:329:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2402:35: note: candidate expects 1 argument, 0 provided
Local<String> ToString(Isolate* isolate) const);
^
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8config.h:329:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
In file included from /opt/bitnami/ruby/include/ruby-2.5.0/ruby/ruby.h:29:0,
from /opt/bitnami/ruby/include/ruby-2.5.0/ruby.h:33,
from mini_racer_extension.cc:2:
mini_racer_extension.cc:435:50: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::String>&)’
return rb_enc_str_new(*String::Utf8Value(rstr), rstr->Utf8Length(), rb_enc_find("utf-8"));
^
/opt/bitnami/ruby/include/ruby-2.5.0/ruby/defines.h:105:53: note: in definition of macro ‘RB_GNUC_EXTENSION_BLOCK’
#define RB_GNUC_EXTENSION_BLOCK(x) __extension__ ({ x; })
^
mini_racer_extension.cc:435:12: note: in expansion of macro ‘rb_enc_str_new’
return rb_enc_str_new(*String::Utf8Value(rstr), rstr->Utf8Length(), rb_enc_find("utf-8"));
^~~~~~~~~~~~~~
In file included from mini_racer_extension.cc:4:0:
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2857:5: note: candidate: v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)
Utf8Value(Isolate* isolate, Local<v8::Value> obj);
^~~~~~~~~
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2857:5: note: candidate expects 2 arguments, 1 provided
In file included from /opt/bitnami/ruby/include/ruby-2.5.0/ruby/ruby.h:29:0,
from /opt/bitnami/ruby/include/ruby-2.5.0/ruby.h:33,
from mini_racer_extension.cc:2:
mini_racer_extension.cc:435:70: error: no matching function for call to ‘v8::String::Utf8Length()’
return rb_enc_str_new(*String::Utf8Value(rstr), rstr->Utf8Length(), rb_enc_find("utf-8"));
^
/opt/bitnami/ruby/include/ruby-2.5.0/ruby/defines.h:105:53: note: in definition of macro ‘RB_GNUC_EXTENSION_BLOCK’
#define RB_GNUC_EXTENSION_BLOCK(x) __extension__ ({ x; })
^
mini_racer_extension.cc:435:12: note: in expansion of macro ‘rb_enc_str_new’
return rb_enc_str_new(*String::Utf8Value(rstr), rstr->Utf8Length(), rb_enc_find("utf-8"));
^~~~~~~~~~~~~~
In file included from mini_racer_extension.cc:4:0:
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2536:7: note: candidate: int v8::String::Utf8Length(v8::Isolate*) const
int Utf8Length(Isolate* isolate) const;
^~~~~~~~~~
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2536:7: note: candidate expects 1 argument, 0 provided
In file included from /opt/bitnami/ruby/include/ruby-2.5.0/ruby/ruby.h:29:0,
from /opt/bitnami/ruby/include/ruby-2.5.0/ruby.h:33,
from mini_racer_extension.cc:2:
mini_racer_extension.cc:435:50: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::String>&)’
return rb_enc_str_new(*String::Utf8Value(rstr), rstr->Utf8Length(), rb_enc_find("utf-8"));
^
/opt/bitnami/ruby/include/ruby-2.5.0/ruby/defines.h:105:53: note: in definition of macro ‘RB_GNUC_EXTENSION_BLOCK’
#define RB_GNUC_EXTENSION_BLOCK(x) __extension__ ({ x; })
^
mini_racer_extension.cc:435:12: note: in expansion of macro ‘rb_enc_str_new’
return rb_enc_str_new(*String::Utf8Value(rstr), rstr->Utf8Length(), rb_enc_find("utf-8"));
^~~~~~~~~~~~~~
In file included from mini_racer_extension.cc:4:0:
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2857:5: note: candidate: v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)
Utf8Value(Isolate* isolate, Local<v8::Value> obj);
^~~~~~~~~
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2857:5: note: candidate expects 2 arguments, 1 provided
In file included from /opt/bitnami/ruby/include/ruby-2.5.0/ruby/ruby.h:29:0,
from /opt/bitnami/ruby/include/ruby-2.5.0/ruby.h:33,
from mini_racer_extension.cc:2:
mini_racer_extension.cc:435:70: error: no matching function for call to ‘v8::String::Utf8Length()’
return rb_enc_str_new(*String::Utf8Value(rstr), rstr->Utf8Length(), rb_enc_find("utf-8"));
^
/opt/bitnami/ruby/include/ruby-2.5.0/ruby/defines.h:105:53: note: in definition of macro ‘RB_GNUC_EXTENSION_BLOCK’
#define RB_GNUC_EXTENSION_BLOCK(x) __extension__ ({ x; })
^
mini_racer_extension.cc:435:12: note: in expansion of macro ‘rb_enc_str_new’
return rb_enc_str_new(*String::Utf8Value(rstr), rstr->Utf8Length(), rb_enc_find("utf-8"));
^~~~~~~~~~~~~~
In file included from mini_racer_extension.cc:4:0:
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2536:7: note: candidate: int v8::String::Utf8Length(v8::Isolate*) const
int Utf8Length(Isolate* isolate) const;
^~~~~~~~~~
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2536:7: note: candidate expects 1 argument, 0 provided
In file included from /opt/bitnami/ruby/include/ruby-2.5.0/ruby/ruby.h:29:0,
from /opt/bitnami/ruby/include/ruby-2.5.0/ruby.h:33,
from mini_racer_extension.cc:2:
mini_racer_extension.cc:435:50: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::String>&)’
return rb_enc_str_new(*String::Utf8Value(rstr), rstr->Utf8Length(), rb_enc_find("utf-8"));
^
/opt/bitnami/ruby/include/ruby-2.5.0/ruby/defines.h:105:53: note: in definition of macro ‘RB_GNUC_EXTENSION_BLOCK’
#define RB_GNUC_EXTENSION_BLOCK(x) __extension__ ({ x; })
^
mini_racer_extension.cc:435:12: note: in expansion of macro ‘rb_enc_str_new’
return rb_enc_str_new(*String::Utf8Value(rstr), rstr->Utf8Length(), rb_enc_find("utf-8"));
^~~~~~~~~~~~~~
In file included from mini_racer_extension.cc:4:0:
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2857:5: note: candidate: v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)
Utf8Value(Isolate* isolate, Local<v8::Value> obj);
^~~~~~~~~
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2857:5: note: candidate expects 2 arguments, 1 provided
In file included from /opt/bitnami/ruby/include/ruby-2.5.0/ruby/ruby.h:29:0,
from /opt/bitnami/ruby/include/ruby-2.5.0/ruby.h:33,
from mini_racer_extension.cc:2:
mini_racer_extension.cc:435:70: error: no matching function for call to ‘v8::String::Utf8Length()’
return rb_enc_str_new(*String::Utf8Value(rstr), rstr->Utf8Length(), rb_enc_find("utf-8"));
^
/opt/bitnami/ruby/include/ruby-2.5.0/ruby/defines.h:105:53: note: in definition of macro ‘RB_GNUC_EXTENSION_BLOCK’
#define RB_GNUC_EXTENSION_BLOCK(x) __extension__ ({ x; })
^
mini_racer_extension.cc:435:12: note: in expansion of macro ‘rb_enc_str_new’
return rb_enc_str_new(*String::Utf8Value(rstr), rstr->Utf8Length(), rb_enc_find("utf-8"));
^~~~~~~~~~~~~~
In file included from mini_racer_extension.cc:4:0:
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2536:7: note: candidate: int v8::String::Utf8Length(v8::Isolate*) const
int Utf8Length(Isolate* isolate) const;
^~~~~~~~~~
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2536:7: note: candidate expects 1 argument, 0 provided
In file included from /opt/bitnami/ruby/include/ruby-2.5.0/ruby/ruby.h:29:0,
from /opt/bitnami/ruby/include/ruby-2.5.0/ruby.h:33,
from mini_racer_extension.cc:2:
/opt/bitnami/ruby/include/ruby-2.5.0/ruby/defines.h:105:57: error: void value not ignored as it ought to be
#define RB_GNUC_EXTENSION_BLOCK(x) __extension__ ({ x; })
^
/opt/bitnami/ruby/include/ruby-2.5.0/ruby/encoding.h:150:39: note: in expansion of macro ‘RB_GNUC_EXTENSION_BLOCK’
#define rb_enc_str_new(str, len, enc) RB_GNUC_EXTENSION_BLOCK( \
^~~~~~~~~~~~~~~~~~~~~~~
mini_racer_extension.cc:435:12: note: in expansion of macro ‘rb_enc_str_new’
return rb_enc_str_new(*String::Utf8Value(rstr), rstr->Utf8Length(), rb_enc_find("utf-8"));
^~~~~~~~~~~~~~
mini_racer_extension.cc: In function ‘v8::Local<v8::Value> convert_ruby_to_v8(v8::Isolate*, VALUE)’:
mini_racer_extension.cc:515:73: error: no matching function for call to ‘v8::Date::New(v8::Isolate*&, double)’
return scope.Escape(Date::New(isolate, NUM2DBL(value) * 1000));
^
In file included from mini_racer_extension.cc:4:0:
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:5185:50: note: candidate: static v8::MaybeLocal<v8::Value> v8::Date::New(v8::Local<v8::Context>, double)
static V8_WARN_UNUSED_RESULT MaybeLocal<Value> New(Local<Context> context,
^~~
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:5185:50: note: no known conversion for argument 1 from ‘v8::Isolate*’ to ‘v8::Local<v8::Context>’
mini_racer_extension.cc: In function ‘VALUE rb_snapshot_load(VALUE, VALUE)’:
mini_racer_extension.cc:557:32: error: ‘CreateSnapshotDataBlob’ is not a member of ‘v8::V8’
StartupData startup_data = V8::CreateSnapshotDataBlob(RSTRING_PTR(str));
^~
mini_racer_extension.cc: In function ‘VALUE rb_snapshot_warmup_unsafe(VALUE, VALUE)’:
mini_racer_extension.cc:588:37: error: ‘WarmUpSnapshotDataBlob’ is not a member of ‘v8::V8’
StartupData warm_startup_data = V8::WarmUpSnapshotDataBlob(cold_startup_data, RSTRING_PTR(str));
^~
mini_racer_extension.cc: In function ‘VALUE convert_result_to_ruby(VALUE, EvalResult&)’:
mini_racer_extension.cc:767:48: error: no matching function for call to ‘v8::Value::ToString()’
Local<String> rstr = tmp->ToString();
^
In file included from mini_racer_extension.cc:4:0:
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2386:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
^~~~~~~~
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2386:44: note: candidate expects 1 argument, 0 provided
In file included from /opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8-internal.h:13:0,
from /opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:25,
from mini_racer_extension.cc:4:
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2402:35: note: candidate: v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const
Local<String> ToString(Isolate* isolate) const);
^
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8config.h:329:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2402:35: note: candidate expects 1 argument, 0 provided
Local<String> ToString(Isolate* isolate) const);
^
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8config.h:329:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
#define V8_DEPRECATE_SOON(message, declarator) declarator
^~~~~~~~~~
In file included from /opt/bitnami/ruby/include/ruby-2.5.0/ruby/ruby.h:29:0,
from /opt/bitnami/ruby/include/ruby-2.5.0/ruby.h:33,
from mini_racer_extension.cc:2:
mini_racer_extension.cc:768:71: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::String>&)’
VALUE json_string = rb_enc_str_new(*String::Utf8Value(rstr), rstr->Utf8Length(), rb_enc_find("utf-8"));
^
/opt/bitnami/ruby/include/ruby-2.5.0/ruby/defines.h:105:53: note: in definition of macro ‘RB_GNUC_EXTENSION_BLOCK’
#define RB_GNUC_EXTENSION_BLOCK(x) __extension__ ({ x; })
^
mini_racer_extension.cc:768:33: note: in expansion of macro ‘rb_enc_str_new’
VALUE json_string = rb_enc_str_new(*String::Utf8Value(rstr), rstr->Utf8Length(), rb_enc_find("utf-8"));
^~~~~~~~~~~~~~
In file included from mini_racer_extension.cc:4:0:
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2857:5: note: candidate: v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)
Utf8Value(Isolate* isolate, Local<v8::Value> obj);
^~~~~~~~~
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2857:5: note: candidate expects 2 arguments, 1 provided
In file included from /opt/bitnami/ruby/include/ruby-2.5.0/ruby/ruby.h:29:0,
from /opt/bitnami/ruby/include/ruby-2.5.0/ruby.h:33,
from mini_racer_extension.cc:2:
mini_racer_extension.cc:768:91: error: no matching function for call to ‘v8::String::Utf8Length()’
VALUE json_string = rb_enc_str_new(*String::Utf8Value(rstr), rstr->Utf8Length(), rb_enc_find("utf-8"));
^
/opt/bitnami/ruby/include/ruby-2.5.0/ruby/defines.h:105:53: note: in definition of macro ‘RB_GNUC_EXTENSION_BLOCK’
#define RB_GNUC_EXTENSION_BLOCK(x) __extension__ ({ x; })
^
mini_racer_extension.cc:768:33: note: in expansion of macro ‘rb_enc_str_new’
VALUE json_string = rb_enc_str_new(*String::Utf8Value(rstr), rstr->Utf8Length(), rb_enc_find("utf-8"));
^~~~~~~~~~~~~~
In file included from mini_racer_extension.cc:4:0:
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2536:7: note: candidate: int v8::String::Utf8Length(v8::Isolate*) const
int Utf8Length(Isolate* isolate) const;
^~~~~~~~~~
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2536:7: note: candidate expects 1 argument, 0 provided
In file included from /opt/bitnami/ruby/include/ruby-2.5.0/ruby/ruby.h:29:0,
from /opt/bitnami/ruby/include/ruby-2.5.0/ruby.h:33,
from mini_racer_extension.cc:2:
mini_racer_extension.cc:768:71: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::String>&)’
VALUE json_string = rb_enc_str_new(*String::Utf8Value(rstr), rstr->Utf8Length(), rb_enc_find("utf-8"));
^
/opt/bitnami/ruby/include/ruby-2.5.0/ruby/defines.h:105:53: note: in definition of macro ‘RB_GNUC_EXTENSION_BLOCK’
#define RB_GNUC_EXTENSION_BLOCK(x) __extension__ ({ x; })
^
mini_racer_extension.cc:768:33: note: in expansion of macro ‘rb_enc_str_new’
VALUE json_string = rb_enc_str_new(*String::Utf8Value(rstr), rstr->Utf8Length(), rb_enc_find("utf-8"));
^~~~~~~~~~~~~~
In file included from mini_racer_extension.cc:4:0:
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2857:5: note: candidate: v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)
Utf8Value(Isolate* isolate, Local<v8::Value> obj);
^~~~~~~~~
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2857:5: note: candidate expects 2 arguments, 1 provided
In file included from /opt/bitnami/ruby/include/ruby-2.5.0/ruby/ruby.h:29:0,
from /opt/bitnami/ruby/include/ruby-2.5.0/ruby.h:33,
from mini_racer_extension.cc:2:
mini_racer_extension.cc:768:91: error: no matching function for call to ‘v8::String::Utf8Length()’
VALUE json_string = rb_enc_str_new(*String::Utf8Value(rstr), rstr->Utf8Length(), rb_enc_find("utf-8"));
^
/opt/bitnami/ruby/include/ruby-2.5.0/ruby/defines.h:105:53: note: in definition of macro ‘RB_GNUC_EXTENSION_BLOCK’
#define RB_GNUC_EXTENSION_BLOCK(x) __extension__ ({ x; })
^
mini_racer_extension.cc:768:33: note: in expansion of macro ‘rb_enc_str_new’
VALUE json_string = rb_enc_str_new(*String::Utf8Value(rstr), rstr->Utf8Length(), rb_enc_find("utf-8"));
^~~~~~~~~~~~~~
In file included from mini_racer_extension.cc:4:0:
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2536:7: note: candidate: int v8::String::Utf8Length(v8::Isolate*) const
int Utf8Length(Isolate* isolate) const;
^~~~~~~~~~
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2536:7: note: candidate expects 1 argument, 0 provided
In file included from /opt/bitnami/ruby/include/ruby-2.5.0/ruby/ruby.h:29:0,
from /opt/bitnami/ruby/include/ruby-2.5.0/ruby.h:33,
from mini_racer_extension.cc:2:
mini_racer_extension.cc:768:71: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::String>&)’
VALUE json_string = rb_enc_str_new(*String::Utf8Value(rstr), rstr->Utf8Length(), rb_enc_find("utf-8"));
^
/opt/bitnami/ruby/include/ruby-2.5.0/ruby/defines.h:105:53: note: in definition of macro ‘RB_GNUC_EXTENSION_BLOCK’
#define RB_GNUC_EXTENSION_BLOCK(x) __extension__ ({ x; })
^
mini_racer_extension.cc:768:33: note: in expansion of macro ‘rb_enc_str_new’
VALUE json_string = rb_enc_str_new(*String::Utf8Value(rstr), rstr->Utf8Length(), rb_enc_find("utf-8"));
^~~~~~~~~~~~~~
In file included from mini_racer_extension.cc:4:0:
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2857:5: note: candidate: v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)
Utf8Value(Isolate* isolate, Local<v8::Value> obj);
^~~~~~~~~
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2857:5: note: candidate expects 2 arguments, 1 provided
In file included from /opt/bitnami/ruby/include/ruby-2.5.0/ruby/ruby.h:29:0,
from /opt/bitnami/ruby/include/ruby-2.5.0/ruby.h:33,
from mini_racer_extension.cc:2:
mini_racer_extension.cc:768:91: error: no matching function for call to ‘v8::String::Utf8Length()’
VALUE json_string = rb_enc_str_new(*String::Utf8Value(rstr), rstr->Utf8Length(), rb_enc_find("utf-8"));
^
/opt/bitnami/ruby/include/ruby-2.5.0/ruby/defines.h:105:53: note: in definition of macro ‘RB_GNUC_EXTENSION_BLOCK’
#define RB_GNUC_EXTENSION_BLOCK(x) __extension__ ({ x; })
^
mini_racer_extension.cc:768:33: note: in expansion of macro ‘rb_enc_str_new’
VALUE json_string = rb_enc_str_new(*String::Utf8Value(rstr), rstr->Utf8Length(), rb_enc_find("utf-8"));
^~~~~~~~~~~~~~
In file included from mini_racer_extension.cc:4:0:
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2536:7: note: candidate: int v8::String::Utf8Length(v8::Isolate*) const
int Utf8Length(Isolate* isolate) const;
^~~~~~~~~~
/opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/libv8-7.3.492.27.1-x86_64-linux/vendor/v8/include/v8.h:2536:7: note: candidate expects 1 argument, 0 provided
In file included from /opt/bitnami/ruby/include/ruby-2.5.0/ruby/ruby.h:29:0,
from /opt/bitnami/ruby/include/ruby-2.5.0/ruby.h:33,
from mini_racer_extension.cc:2:
/opt/bitnami/ruby/include/ruby-2.5.0/ruby/defines.h:105:57: error: void value not ignored as it ought to be
#define RB_GNUC_EXTENSION_BLOCK(x) __extension__ ({ x; })
^
/opt/bitnami/ruby/include/ruby-2.5.0/ruby/encoding.h:150:39: note: in expansion of macro ‘RB_GNUC_EXTENSION_BLOCK’
#define rb_enc_str_new(str, len, enc) RB_GNUC_EXTENSION_BLOCK( \
^~~~~~~~~~~~~~~~~~~~~~~
mini_racer_extension.cc:768:33: note: in expansion of macro ‘rb_enc_str_new’
VALUE json_string = rb_enc_str_new(*String::Utf8Value(rstr), rstr->Utf8Length(), rb_enc_find("utf-8"));
^~~~~~~~~~~~~~
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-self-assign’
cc1plus: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
cc1plus: warning: unrecognized command line option ‘-Wno-parentheses-equality’
Makefile:209: recipe for target 'mini_racer_extension.o' failed
make: *** [mini_racer_extension.o] Error 1
make failed, exit code 2
Gem files will remain installed in /opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/mini_racer-0.2.4 for inspection.
Results logged to /opt/bitnami/ruby/lib/ruby/gems/2.5.0/extensions/x86_64-linux/2.5.0-static/mini_racer-0.2.4/gem_make.out