Issue #13184 has been updated by Yui NARUSE.

Backport changed from 2.2: DONTNEED, 2.3: DONTNEED, 2.4: REQUIRED to 2.2: DONTNEED, 2.3: DONTNEED, 2.4: DONE

ruby_2_4 r57896 merged revision(s) 57520.

----------------------------------------
Bug #13184: unused parameter in ruby.h - native ruby extension compilation failure on ruby 2.4
https://bugs.ruby-lang.org/issues/13184#change-63482

* Author: alex polcyn
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 
* Backport: 2.2: DONTNEED, 2.3: DONTNEED, 2.4: DONE
----------------------------------------
platform and version:
x86_64-darwin14
2.4.0

When compiling a ruby c-extension on the above ruby platform and version, the compilation fails with an error:
In file included from ../../../../src/ruby/ext/grpc/rb_byte_buffer.c:34:
/usr/local/rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/ruby/ruby.h:2339:8: error: unused parameter 'varc' [-Werror,-Wunused-parameter]
   int varc, VALUE *vars[])

To reproduce:

With ruby on the above platform and version:
> git clone https://github.com/grpc/grpc.git
> git checkout 26623b3d77ae78e66f66b (tip of master at current time of posting)
> cd grpc && git submodule update --init
> gem install bundle
> BUNDLE_SPECIFIC_PLATFORM=true bundle install  # bundle install crashes on this platform, BUNDLE_SPECIFIC_PLATFORM followed as a work around, followed suggestion in: https://github.com/bundler/bundler/issues/3692
> rake compile

Compilation should failure with the error above.

An example failure log is posted.

We're using rake-compiler gem to compile the grpc-ruby gem native extension.
The extconf.rb Makefile generator is in grpc/src/ruby/ext/grpc/extconf.rb -- this file currently sets -Werror as a compilation option. We're planning to remove it for the time being as work around but would like to put it back in.

---Files--------------------------------
log (76.2 KB)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>