Skip to content

1.43.1 seems to use universal gem on mac arm #28631

@abrausch

Description

@abrausch

What version of gRPC and what language are you using?

1.42.0
1.43.1
ruby

What operating system (Linux, Windows,...) and version?

mac (arm64)

What runtime / compiler are you using (e.g. python version or version of gcc)

What did you do?

gem install grpc -v "1.42.0"
gem install grpc -v "1.43.1"

Installing the newest version of grpc

What did you expect to see?

Using it in ruby works

What did you see instead?

Problem with grpc_c.bundle

I think the problem is that there is some kind of regression bug between 1.42.0 and 1.43.1
If I search locally in my gem folder for grpc_c.bundle this is the result:

grpc-1.42.0/src/ruby/lib/grpc/grpc_c.bundle
grpc-1.42.0/src/ruby/ext/grpc/grpc_c.bundle
grpc-1.43.1-universal-darwin/src/ruby/lib/grpc/2.5/grpc_c.bundle
grpc-1.43.1-universal-darwin/src/ruby/lib/grpc/3.0/grpc_c.bundle
grpc-1.43.1-universal-darwin/src/ruby/lib/grpc/2.6/grpc_c.bundle
grpc-1.43.1-universal-darwin/src/ruby/lib/grpc/2.7/grpc_c.bundle

As you can see the 1.43.1 is again universal.
The file command gives me the following result:

ruby/2.7.3/gems
➜ file grpc-1.42.0/src/ruby/lib/grpc/grpc_c.bundle
grpc-1.42.0/src/ruby/lib/grpc/grpc_c.bundle: Mach-O 64-bit bundle arm64

ruby/2.7.3/gems
➜ file grpc-1.43.1-universal-darwin/src/ruby/lib/grpc/3.0/grpc_c.bundle
grpc-1.43.1-universal-darwin/src/ruby/lib/grpc/3.0/grpc_c.bundle: Mach-O 64-bit bundle x86_64

So you can see the 1.43.1 is x86_64 which is wrong

Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).

See TROUBLESHOOTING.md for how to diagnose problems better.

Anything else we should know about your project / environment?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions