Project

General

Profile

Actions

Bug #19082

closed

Recent gRPC gem fails to build from the source in already released versions

Added by monfresh (Moncef Belyamani) over 1 year ago. Updated over 1 year ago.

Status:
Third Party's Issue
Assignee:
-
Target version:
-
[ruby-core:110502]

Description

About 10 days ago, this commit in the ruby_3_1 branch removed the "$" from "[$flag=]" on line 3073 of configure.ac:

https://github.com/ruby/ruby/commit/ee6cc2502664ac46edc61868d8954b626bb48e53#r87450090

This causes the installation of the grpc gem to fail whereas before this change, the gem installed fine. If I add the dollar sign back in, the grpc gem installs successfully.

Here are the steps to reproduce:

  1. Clone the Ruby repo on an Apple Silicon Mac that has v14 of the command line tools
  2. git checkout -b ruby_3_1 origin/ruby_3_1
  3. Compile Ruby:
./autogen.sh
./configure --with-opt-dir="$(brew --prefix openssl@3):$(brew --prefix readline):$(brew --prefix libyaml):$(brew --prefix gdbm):$(brew --prefix gmp)" --prefix=/Users/moncef/.rubies/ruby-3.1.3 --disable-install-doc
make -j7 main
make -j7 install
  1. Switch to 3.1.3 with chruby 3.1.3

  2. gem install grpc
    With the current branch, this fails.

  3. Remove ~/.rubies/ruby-3.1.3 and ~/.gem/ruby/3.1.3

  4. Add the dollar sign back in configure.ac

  5. Compile Ruby 3.1.3 again the same way as above

  6. Switch to 3.1.3

  7. gem install grpc => This works now.

I attached a zip file of the "gem_make.out" file that shows the full stack trace for why grpc failed to build the gem native extension.


Files

gem_make.out.zip (77 KB) gem_make.out.zip monfresh (Moncef Belyamani), 10/24/2022 04:38 PM

Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #19005: Ruby interpreter compiled XCode 14 cannot build some native gems on macOSClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0