Skip to content

Instantly share code, notes, and snippets.

@synthead
Created September 11, 2018 16:27
Show Gist options
  • Save synthead/59d70a500a17f2df751dc5891b44ed63 to your computer and use it in GitHub Desktop.
Save synthead/59d70a500a17f2df751dc5891b44ed63 to your computer and use it in GitHub Desktop.
$ bundle
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Using rake 0.9.6
Using concurrent-ruby 1.0.5
Using i18n 0.9.5
Using minitest 5.11.3
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Fetching activesupport 5.2.1
Installing activesupport 5.2.1
Fetching public_suffix 3.0.3
Installing public_suffix 3.0.3
Fetching addressable 2.5.2
Installing addressable 2.5.2
Using builder 3.2.3
Using bundler 1.16.2
Installing byebug 8.2.2 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /home/max/.gem/ruby/2.4.0/gems/byebug-8.2.2/ext/byebug
/opt/ruby2.4/bin/ruby-2.4 -r ./siteconf20180911-17253-vh003c.rb extconf.rb --with-cflags=-Wno-error=attributes
creating Makefile
current directory: /home/max/.gem/ruby/2.4.0/gems/byebug-8.2.2/ext/byebug
make "DESTDIR=" clean
current directory: /home/max/.gem/ruby/2.4.0/gems/byebug-8.2.2/ext/byebug
make "DESTDIR="
compiling breakpoint.c
In file included from /opt/ruby2.4/include/ruby-2.4.0/ruby.h:33,
from ./byebug.h:4,
from breakpoint.c:1:
/opt/ruby2.4/include/ruby-2.4.0/ruby/ruby.h:631:1: error: ‘const’ attribute on function returning ‘void’ [-Werror=attributes]
CONSTFUNC(void rb_secure_update(VALUE));
^~~~~~~~~
In file included from /opt/ruby2.4/include/ruby-2.4.0/ruby/ruby.h:2012,
from /opt/ruby2.4/include/ruby-2.4.0/ruby.h:33,
from ./byebug.h:4,
from breakpoint.c:1:
/opt/ruby2.4/include/ruby-2.4.0/ruby/intern.h:257:1: error: ‘const’ attribute on function returning ‘void’ [-Werror=attributes]
CONSTFUNC(void rb_error_untrusted(VALUE));
^~~~~~~~~
/opt/ruby2.4/include/ruby-2.4.0/ruby/intern.h:259:1: error: ‘const’ attribute on function returning ‘void’ [-Werror=attributes]
CONSTFUNC(void rb_check_trusted(VALUE));
^~~~~~~~~
cc1: all warnings being treated as errors
make: *** [Makefile:242: breakpoint.o] Error 1
make failed, exit code 2
Gem files will remain installed in /home/max/.gem/ruby/2.4.0/gems/byebug-8.2.2 for inspection.
Results logged to /home/max/.gem/ruby/2.4.0/extensions/x86_64-linux/2.4.0/byebug-8.2.2/gem_make.out
An error occurred while installing byebug (8.2.2), and Bundler cannot continue.
Make sure that `gem install byebug -v '8.2.2' --source 'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
byebug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment