Skip to content

An error occurred while installing concurrent-ruby-ext (0.9.0) #516

@leandrogs

Description

@leandrogs

Hey guys! I have an 'old' project using ruby 1.9.3-p448 installed using rbenv and concurrent-ruby-ext 0.9.0. Today I was trying to install my gems using bundle install on a new computer (ubuntu 14.04) and only concurrent-ruby-ext gem failed to build.

In my Gemfile I have:

...
gem 'rails', '= 3.2.21'
gem 'concurrent-ruby-ext', '~> 0.9.0', require: 'concurrent'
...

The error I got is:

Installing concurrent-ruby-ext 0.9.0 with native extensions

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /usr/bin/ruby1.9.1 extconf.rb
checking for libkern/OSAtomic.h... no
creating Makefile

make
compiling rb_concurrent.c
compiling atomic_reference.c
compiling atomic_fixnum.c
In file included from atomic_fixnum.c:5:0:
ruby_193_compatible.h: In function ‘rb_error_arity’:
ruby_193_compatible.h:20:3: warning: passing argument 2 of ‘rb_raise’ makes pointer from integer without a cast [enabled by default]
   rb_raise(rb_eTypeError, err_mess);
   ^
In file included from /usr/include/ruby-1.9.1/ruby.h:32:0,
                 from atomic_fixnum.c:1:
/usr/include/ruby-1.9.1/ruby/ruby.h:1172:27: note: expected ‘const char *’ but argument is of type ‘VALUE’
 PRINTF_ARGS(NORETURN(void rb_raise(VALUE, const char*, ...)), 2, 3);
                           ^
/usr/include/ruby-1.9.1/ruby/ruby.h:42:3: note: in definition of macro ‘PRINTF_ARGS’
   decl __attribute__((format(printf, string_index, first_to_check)))
   ^
/usr/include/ruby-1.9.1/ruby/ruby.h:1172:13: note: in expansion of macro ‘NORETURN’
 PRINTF_ARGS(NORETURN(void rb_raise(VALUE, const char*, ...)), 2, 3);
             ^
In file included from atomic_fixnum.c:5:0:
ruby_193_compatible.h:20:3: error: format not a string literal and no format arguments [-Werror=format-security]
   rb_raise(rb_eTypeError, err_mess);
   ^
cc1: some warnings being treated as errors
make: *** [atomic_fixnum.o] Error 1


Gem files will remain installed in /tmp/bundler20160226-18427-13v8kyrconcurrent-ruby-ext-0.9.0/gems/concurrent-ruby-ext-0.9.0 for inspection.
Results logged to /tmp/bundler20160226-18427-13v8kyrconcurrent-ruby-ext-0.9.0/gems/concurrent-ruby-ext-0.9.0/ext/concurrent/gem_make.out

Am I missing something? Using my work computer I can bundle install without any problem...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA bug in the library or documentation.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions