question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

Issue with rbx-3.70

Building native extensions.  This could take a while...
ERROR:  Error installing mini_racer:
	ERROR: Failed to build gem native extension.

    current directory: /Users/alexfalkowski/.gem/rbx/2.3.1/gems/mini_racer-0.1.7/ext/mini_racer_extension
/Users/alexfalkowski/.rubies/rbx-3.70/bin/rbx -r ./siteconf20170204-26481-m4fqsh.rb extconf.rb
checking for main() in -lpthread... yes
checking for main() in -lobjc... yes
creating Makefile

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /Users/alexfalkowski/.gem/rbx/2.3.1/extensions/x86_64-darwin-16/2.3/mini_racer-0.1.7/mkmf.log

current directory: /Users/alexfalkowski/.gem/rbx/2.3.1/gems/mini_racer-0.1.7/ext/mini_racer_extension
make "DESTDIR=" clean

current directory: /Users/alexfalkowski/.gem/rbx/2.3.1/gems/mini_racer-0.1.7/ext/mini_racer_extension
make "DESTDIR="
compiling mini_racer_extension.cc
clang: warning: argument unused during compilation: '-rdynamic'
mini_racer_extension.cc:235:36: error: use of undeclared identifier 'floor'
        long nanos = round((secs - floor(secs)) * 1000000);
                                   ^
1 error generated.
make: *** [mini_racer_extension.o] Error 1

make failed, exit code 2

Gem files will remain installed in /Users/alexfalkowski/.gem/rbx/2.3.1/gems/mini_racer-0.1.7 for inspection.
Results logged to /Users/alexfalkowski/.gem/rbx/2.3.1/extensions/x86_64-darwin-16/2.3/mini_racer-0.1.7/gem_make.out

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7

github_iconTop GitHub Comments

3reactions
SamSaffroncommented, Feb 6, 2017

Sure! done

😃

On Sat, Feb 4, 2017 at 5:07 PM, Petko Bordjukov notifications@github.com wrote:

@SamSaffron https://github.com/SamSaffron a bugfix release might be due 😃

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/discourse/mini_racer/issues/51#issuecomment-277481620, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAUXRceh81zORLE9jOxZfL_FCh0K4wAks5rZPaugaJpZM4L3FFt .

1reaction
ignisfcommented, Feb 4, 2017

Hello @alexfalkowski,

Could you please try https://github.com/discourse/mini_racer/tree/add-math-h?

You could do this by adding gem 'mini_racer', git: 'https://github.com/discourse/mini_racer.git', branch: 'add-math-h' to your Gemfile.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to build gem native extension - cannot load such file ...
1) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb /usr/lib/ruby/1.9.1/ ...
Read more >
Ext::BuildError: ERROR: Failed to build gem native extension ...
I have a rails app with gem "mini_racer", '0.6.2', platforms: :ruby in my Gemfile. When running bundle install I get the following error...
Read more >
"Gem::Ext::BuildError: ERROR: Failed to build gem native ...
has introduced some bugs when building Ruby gems that require native extensions - this is mostly due to changes in the Clang compiler....
Read more >
Ext::BuildError: ERROR: Failed to build gem native extension ...
bundle command causes "Gem::Ext::BuildError: ERROR: Failed to build gem native extension." for unf_ext gem. Joshua Maffuccio - Friday, April 17, ...
Read more >
ERROR: Failed to build gem native extension. while executing ...
Installing capybara-webkit 1.7.1 with native extensions. Gem::Ext::BuildError: ERROR: Failed to build gem native extension. C:/Ruby22-x64/bin/ruby.exe -r .
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found