Can't bundle install grpc-1.30.2 on Big Sur
When trying to install current GitLab using grpc-1.30.2, I get this compilation output:
current directory: /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc
/Users/brodock/.rvm/rubies/ruby-2.7.2/bin/ruby -I /Users/brodock/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0 -r ./siteconf20201202-93469-1d8riw9.rb extconf.rb --with-cflags\=-Wno-error\=implicit-function-declaration
Building internal gRPC into /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/libs/opt
[C] Compiling third_party/zlib/adler32.c
[C] Compiling third_party/zlib/compress.c
mkdir -p `dirname /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/adler32.o`
[C] Compiling third_party/zlib/crc32.c
mkdir -p `dirname /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/crc32.o`
[C] Compiling third_party/zlib/deflate.c
mkdir -p `dirname /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/deflate.o`
mkdir -p `dirname /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/compress.o`
[C] Compiling third_party/zlib/gzclose.c
mkdir -p `dirname /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/gzclose.o`
[C] Compiling third_party/zlib/gzlib.c
mkdir -p `dirname /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/gzlib.o`
[C] Compiling third_party/zlib/gzread.c
[C] Compiling third_party/zlib/gzwrite.c
mkdir -p `dirname /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/gzwrite.o`
[C] Compiling third_party/zlib/infback.c
mkdir -p `dirname /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/gzread.o`
mkdir -p `dirname /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/infback.o`
[C] Compiling third_party/zlib/inffast.c
mkdir -p `dirname /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/inffast.o`
[C] Compiling third_party/zlib/inflate.c
[C] Compiling third_party/zlib/inftrees.c
[C] Compiling third_party/zlib/trees.c
[C] Compiling third_party/zlib/uncompr.c
[C] Compiling third_party/zlib/zutil.c
mkdir -p `dirname /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/zutil.o`
gcc -Ithird_party/googletest/googletest/include -Ithird_party/googletest/googlemock/include -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/address_sorting/include -DGPR_BACKWARDS_COMPATIBILITY_MODE -g -Wall -Wextra -DOSATOMIC_USE_INLINED=1 -Ithird_party/abseil-cpp -Ithird_party/upb -Isrc/core/ext/upb-generated -O2 -Wframe-larger-than=16384 -fPIC -I. -Iinclude -I/Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/gens -I/usr/local/include -DNDEBUG -DINSTALL_PREFIX=\"/usr/local\" -arch i386 -arch x86_64 -Ithird_party/zlib -std=c99 -g -fvisibility=hidden -MMD -MF /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/inffast.dep -c -o /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/inffast.o third_party/zlib/inffast.c
mkdir -p `dirname /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/uncompr.o`
mkdir -p `dirname /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/trees.o`
mkdir -p `dirname /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/inftrees.o`
gcc -Ithird_party/googletest/googletest/include -Ithird_party/googletest/googlemock/include -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/address_sorting/include -DGPR_BACKWARDS_COMPATIBILITY_MODE -g -Wall -Wextra -DOSATOMIC_USE_INLINED=1 -Ithird_party/abseil-cpp -Ithird_party/upb -Isrc/core/ext/upb-generated -O2 -Wframe-larger-than=16384 -fPIC -I. -Iinclude -I/Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/gens -I/usr/local/include -DNDEBUG -DINSTALL_PREFIX=\"/usr/local\" -arch i386 -arch x86_64 -Ithird_party/zlib -std=c99 -g -fvisibility=hidden -MMD -MF /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/infback.dep -c -o /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/infback.o third_party/zlib/infback.c
gcc -Ithird_party/googletest/googletest/include -Ithird_party/googletest/googlemock/include -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/address_sorting/include -DGPR_BACKWARDS_COMPATIBILITY_MODE -g -Wall -Wextra -DOSATOMIC_USE_INLINED=1 -Ithird_party/abseil-cpp -Ithird_party/upb -Isrc/core/ext/upb-generated -O2 -Wframe-larger-than=16384 -fPIC -I. -Iinclude -I/Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/gens -I/usr/local/include -DNDEBUG -DINSTALL_PREFIX=\"/usr/local\" -arch i386 -arch x86_64 -Ithird_party/zlib -std=c99 -g -fvisibility=hidden -MMD -MF /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/gzread.dep -c -o /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/gzread.o third_party/zlib/gzread.c
gcc -Ithird_party/googletest/googletest/include -Ithird_party/googletest/googlemock/include -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/address_sorting/include -DGPR_BACKWARDS_COMPATIBILITY_MODE -g -Wall -Wextra -DOSATOMIC_USE_INLINED=1 -Ithird_party/abseil-cpp -Ithird_party/upb -Isrc/core/ext/upb-generated -O2 -Wframe-larger-than=16384 -fPIC -I. -Iinclude -I/Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/gens -I/usr/local/include -DNDEBUG -DINSTALL_PREFIX=\"/usr/local\" -arch i386 -arch x86_64 -Ithird_party/zlib -std=c99 -g -fvisibility=hidden -MMD -MF /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/gzwrite.dep -c -o /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/gzwrite.o third_party/zlib/gzwrite.c
mkdir -p `dirname /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/inflate.o`
gcc -Ithird_party/googletest/googletest/include -Ithird_party/googletest/googlemock/include -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/address_sorting/include -DGPR_BACKWARDS_COMPATIBILITY_MODE -g -Wall -Wextra -DOSATOMIC_USE_INLINED=1 -Ithird_party/abseil-cpp -Ithird_party/upb -Isrc/core/ext/upb-generated -O2 -Wframe-larger-than=16384 -fPIC -I. -Iinclude -I/Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/gens -I/usr/local/include -DNDEBUG -DINSTALL_PREFIX=\"/usr/local\" -arch i386 -arch x86_64 -Ithird_party/zlib -std=c99 -g -fvisibility=hidden -MMD -MF /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/gzlib.dep -c -o /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/gzlib.o third_party/zlib/gzlib.c
gcc -Ithird_party/googletest/googletest/include -Ithird_party/googletest/googlemock/include -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/address_sorting/include -DGPR_BACKWARDS_COMPATIBILITY_MODE -g -Wall -Wextra -DOSATOMIC_USE_INLINED=1 -Ithird_party/abseil-cpp -Ithird_party/upb -Isrc/core/ext/upb-generated -O2 -Wframe-larger-than=16384 -fPIC -I. -Iinclude -I/Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/gens -I/usr/local/include -DNDEBUG -DINSTALL_PREFIX=\"/usr/local\" -arch i386 -arch x86_64 -Ithird_party/zlib -std=c99 -g -fvisibility=hidden -MMD -MF /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/gzclose.dep -c -o /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/gzclose.o third_party/zlib/gzclose.c
gcc -Ithird_party/googletest/googletest/include -Ithird_party/googletest/googlemock/include -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/address_sorting/include -DGPR_BACKWARDS_COMPATIBILITY_MODE -g -Wall -Wextra -DOSATOMIC_USE_INLINED=1 -Ithird_party/abseil-cpp -Ithird_party/upb -Isrc/core/ext/upb-generated -O2 -Wframe-larger-than=16384 -fPIC -I. -Iinclude -I/Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/gens -I/usr/local/include -DNDEBUG -DINSTALL_PREFIX=\"/usr/local\" -arch i386 -arch x86_64 -Ithird_party/zlib -std=c99 -g -fvisibility=hidden -MMD -MF /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/compress.dep -c -o /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/compress.o third_party/zlib/compress.c
gcc -Ithird_party/googletest/googletest/include -Ithird_party/googletest/googlemock/include -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/address_sorting/include -DGPR_BACKWARDS_COMPATIBILITY_MODE -g -Wall -Wextra -DOSATOMIC_USE_INLINED=1 -Ithird_party/abseil-cpp -Ithird_party/upb -Isrc/core/ext/upb-generated -O2 -Wframe-larger-than=16384 -fPIC -I. -Iinclude -I/Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/gens -I/usr/local/include -DNDEBUG -DINSTALL_PREFIX=\"/usr/local\" -arch i386 -arch x86_64 -Ithird_party/zlib -std=c99 -g -fvisibility=hidden -MMD -MF /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/deflate.dep -c -o /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/deflate.o third_party/zlib/deflate.c
gcc -Ithird_party/googletest/googletest/include -Ithird_party/googletest/googlemock/include -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/address_sorting/include -DGPR_BACKWARDS_COMPATIBILITY_MODE -g -Wall -Wextra -DOSATOMIC_USE_INLINED=1 -Ithird_party/abseil-cpp -Ithird_party/upb -Isrc/core/ext/upb-generated -O2 -Wframe-larger-than=16384 -fPIC -I. -Iinclude -I/Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/gens -I/usr/local/include -DNDEBUG -DINSTALL_PREFIX=\"/usr/local\" -arch i386 -arch x86_64 -Ithird_party/zlib -std=c99 -g -fvisibility=hidden -MMD -MF /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/crc32.dep -c -o /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/crc32.o third_party/zlib/crc32.c
gcc -Ithird_party/googletest/googletest/include -Ithird_party/googletest/googlemock/include -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/address_sorting/include -DGPR_BACKWARDS_COMPATIBILITY_MODE -g -Wall -Wextra -DOSATOMIC_USE_INLINED=1 -Ithird_party/abseil-cpp -Ithird_party/upb -Isrc/core/ext/upb-generated -O2 -Wframe-larger-than=16384 -fPIC -I. -Iinclude -I/Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/gens -I/usr/local/include -DNDEBUG -DINSTALL_PREFIX=\"/usr/local\" -arch i386 -arch x86_64 -Ithird_party/zlib -std=c99 -g -fvisibility=hidden -MMD -MF /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/adler32.dep -c -o /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/adler32.o third_party/zlib/adler32.c
gcc -Ithird_party/googletest/googletest/include -Ithird_party/googletest/googlemock/include -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/address_sorting/include -DGPR_BACKWARDS_COMPATIBILITY_MODE -g -Wall -Wextra -DOSATOMIC_USE_INLINED=1 -Ithird_party/abseil-cpp -Ithird_party/upb -Isrc/core/ext/upb-generated -O2 -Wframe-larger-than=16384 -fPIC -I. -Iinclude -I/Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/gens -I/usr/local/include -DNDEBUG -DINSTALL_PREFIX=\"/usr/local\" -arch i386 -arch x86_64 -Ithird_party/zlib -std=c99 -g -fvisibility=hidden -MMD -MF /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/inflate.dep -c -o /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/inflate.o third_party/zlib/inflate.c
gcc -Ithird_party/googletest/googletest/include -Ithird_party/googletest/googlemock/include -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/address_sorting/include -DGPR_BACKWARDS_COMPATIBILITY_MODE -g -Wall -Wextra -DOSATOMIC_USE_INLINED=1 -Ithird_party/abseil-cpp -Ithird_party/upb -Isrc/core/ext/upb-generated -O2 -Wframe-larger-than=16384 -fPIC -I. -Iinclude -I/Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/gens -I/usr/local/include -DNDEBUG -DINSTALL_PREFIX=\"/usr/local\" -arch i386 -arch x86_64 -Ithird_party/zlib -std=c99 -g -fvisibility=hidden -MMD -MF /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/inftrees.dep -c -o /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/inftrees.o third_party/zlib/inftrees.c
gcc -Ithird_party/googletest/googletest/include -Ithird_party/googletest/googlemock/include -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/address_sorting/include -DGPR_BACKWARDS_COMPATIBILITY_MODE -g -Wall -Wextra -DOSATOMIC_USE_INLINED=1 -Ithird_party/abseil-cpp -Ithird_party/upb -Isrc/core/ext/upb-generated -O2 -Wframe-larger-than=16384 -fPIC -I. -Iinclude -I/Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/gens -I/usr/local/include -DNDEBUG -DINSTALL_PREFIX=\"/usr/local\" -arch i386 -arch x86_64 -Ithird_party/zlib -std=c99 -g -fvisibility=hidden -MMD -MF /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/trees.dep -c -o /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/trees.o third_party/zlib/trees.c
gcc -Ithird_party/googletest/googletest/include -Ithird_party/googletest/googlemock/include -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/address_sorting/include -DGPR_BACKWARDS_COMPATIBILITY_MODE -g -Wall -Wextra -DOSATOMIC_USE_INLINED=1 -Ithird_party/abseil-cpp -Ithird_party/upb -Isrc/core/ext/upb-generated -O2 -Wframe-larger-than=16384 -fPIC -I. -Iinclude -I/Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/gens -I/usr/local/include -DNDEBUG -DINSTALL_PREFIX=\"/usr/local\" -arch i386 -arch x86_64 -Ithird_party/zlib -std=c99 -g -fvisibility=hidden -MMD -MF /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/uncompr.dep -c -o /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/uncompr.o third_party/zlib/uncompr.c
gcc -Ithird_party/googletest/googletest/include -Ithird_party/googletest/googlemock/include -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/address_sorting/include -DGPR_BACKWARDS_COMPATIBILITY_MODE -g -Wall -Wextra -DOSATOMIC_USE_INLINED=1 -Ithird_party/abseil-cpp -Ithird_party/upb -Isrc/core/ext/upb-generated -O2 -Wframe-larger-than=16384 -fPIC -I. -Iinclude -I/Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/gens -I/usr/local/include -DNDEBUG -DINSTALL_PREFIX=\"/usr/local\" -arch i386 -arch x86_64 -Ithird_party/zlib -std=c99 -g -fvisibility=hidden -MMD -MF /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/zutil.dep -c -o /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/zutil.o third_party/zlib/zutil.c
[C] Compiling third_party/cares/cares/ares__close_sockets.c
third_party/zlib/gzwrite.c:89:20: warning: implicit declaration of function 'write' is invalid in C99 [-Wimplicit-function-declaration]
writ = write(state->fd, strm->next_in, put);
^
third_party/zlib/gzread.c:35:15: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration]
ret = read(state->fd, buf + *have, get);
^
third_party/zlib/gzwrite.c:110:24: warning: implicit declaration of function 'write' is invalid in C99 [-Wimplicit-function-declaration]
writ = write(state->fd, state->x.next, put);
^
third_party/zlib/gzlib.c:252:9: warning: implicit declaration of function 'lseek' is invalid in C99 [-Wimplicit-function-declaration]
LSEEK(state->fd, 0, SEEK_END); /* so gzoffset() is correct */
^
third_party/zlib/gzlib.c:14:17: note: expanded from macro 'LSEEK'
# define LSEEK lseek
^
third_party/zlib/gzlib.c:258:24: warning: implicit declaration of function 'lseek' is invalid in C99 [-Wimplicit-function-declaration]
state->start = LSEEK(state->fd, 0, SEEK_CUR);
^
third_party/zlib/gzlib.c:14:17: note: expanded from macro 'LSEEK'
# define LSEEK lseek
^
third_party/zlib/gzlib.c:359:9: warning: implicit declaration of function 'lseek' is invalid in C99 [-Wimplicit-function-declaration]
if (LSEEK(state->fd, state->start, SEEK_SET) == -1)
^
third_party/zlib/gzlib.c:14:17: note: expanded from macro 'LSEEK'
# define LSEEK lseek
^
third_party/zlib/gzlib.c:400:15: warning: implicit declaration of function 'lseek' is invalid in C99 [-Wimplicit-function-declaration]
ret = LSEEK(state->fd, offset - state->x.have, SEEK_CUR);
^
third_party/zlib/gzlib.c:14:17: note: expanded from macro 'LSEEK'
# define LSEEK lseek
^
third_party/zlib/gzlib.c:496:14: warning: implicit declaration of function 'lseek' is invalid in C99 [-Wimplicit-function-declaration]
offset = LSEEK(state->fd, 0, SEEK_CUR);
^
third_party/zlib/gzlib.c:14:17: note: expanded from macro 'LSEEK'
# define LSEEK lseek
^
third_party/zlib/gzwrite.c:661:9: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration]
if (close(state->fd) == -1)
^
third_party/zlib/gzread.c:651:11: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration]
ret = close(state->fd);
^
mkdir -p `dirname /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/cares/cares/ares__close_sockets.o`
gcc -Ithird_party/googletest/googletest/include -Ithird_party/googletest/googlemock/include -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/address_sorting/include -DGPR_BACKWARDS_COMPATIBILITY_MODE -g -Wall -Wextra -DOSATOMIC_USE_INLINED=1 -Ithird_party/abseil-cpp -Ithird_party/upb -Isrc/core/ext/upb-generated -O2 -Wframe-larger-than=16384 -fPIC -I. -Iinclude -I/Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/gens -I/usr/local/include -DNDEBUG -DINSTALL_PREFIX=\"/usr/local\" -arch i386 -arch x86_64 -Ithird_party/zlib -Ithird_party/cares -Ithird_party/cares/cares -fvisibility=hidden -D_GNU_SOURCE -Ithird_party/cares/config_darwin -DWIN32_LEAN_AND_MEAN -D_HAS_EXCEPTIONS=0 -DNOMINMAX -DHAVE_CONFIG_H -std=c99 -g -g -MMD -MF /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/cares/cares/ares__close_sockets.dep -c -o /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/cares/cares/ares__close_sockets.o third_party/cares/cares/ares__close_sockets.c
[C] Compiling third_party/cares/cares/ares__get_hostent.c
mkdir -p `dirname /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/cares/cares/ares__get_hostent.o`
5 warnings generated.
gcc -Ithird_party/googletest/googletest/include -Ithird_party/googletest/googlemock/include -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/address_sorting/include -DGPR_BACKWARDS_COMPATIBILITY_MODE -g -Wall -Wextra -DOSATOMIC_USE_INLINED=1 -Ithird_party/abseil-cpp -Ithird_party/upb -Isrc/core/ext/upb-generated -O2 -Wframe-larger-than=16384 -fPIC -I. -Iinclude -I/Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/gens -I/usr/local/include -DNDEBUG -DINSTALL_PREFIX=\"/usr/local\" -arch i386 -arch x86_64 -Ithird_party/zlib -Ithird_party/cares -Ithird_party/cares/cares -fvisibility=hidden -D_GNU_SOURCE -Ithird_party/cares/config_darwin -DWIN32_LEAN_AND_MEAN -D_HAS_EXCEPTIONS=0 -DNOMINMAX -DHAVE_CONFIG_H -std=c99 -g -g -MMD -MF /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/cares/cares/ares__get_hostent.dep -c -o /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/cares/cares/ares__get_hostent.o third_party/cares/cares/ares__get_hostent.c
3 warnings generated.
2 warnings generated.
third_party/zlib/gzlib.c:252:9: error: implicit declaration of function 'lseek' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
LSEEK(state->fd, 0, SEEK_END); /* so gzoffset() is correct */
^
third_party/zlib/gzlib.c:14:17: note: expanded from macro 'LSEEK'
# define LSEEK lseek
^
third_party/zlib/gzlib.c:252:9: note: did you mean 'fseek'?
third_party/zlib/gzlib.c:14:17: note: expanded from macro 'LSEEK'
# define LSEEK lseek
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:162:6: note: 'fseek' declared here
int fseek(FILE *, long, int);
^
third_party/zlib/gzlib.c:258:24: error: implicit declaration of function 'lseek' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
state->start = LSEEK(state->fd, 0, SEEK_CUR);
^
third_party/zlib/gzlib.c:14:17: note: expanded from macro 'LSEEK'
# define LSEEK lseek
^
third_party/zlib/gzlib.c:359:9: error: implicit declaration of function 'lseek' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
if (LSEEK(state->fd, state->start, SEEK_SET) == -1)
^
third_party/zlib/gzlib.c:14:17: note: expanded from macro 'LSEEK'
# define LSEEK lseek
^
third_party/zlib/gzlib.c:400:15: error: implicit declaration of function 'lseek' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
ret = LSEEK(state->fd, offset - state->x.have, SEEK_CUR);
^
third_party/zlib/gzlib.c:14:17: note: expanded from macro 'LSEEK'
# define LSEEK lseek
^
third_party/zlib/gzlib.c:496:14: error: implicit declaration of function 'lseek' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
offset = LSEEK(state->fd, 0, SEEK_CUR);
^
third_party/zlib/gzlib.c:14:17: note: expanded from macro 'LSEEK'
# define LSEEK lseek
^
[C] Compiling third_party/cares/cares/ares__read_line.c
5 errors generated.
third_party/zlib/gzwrite.c:89:20: error: implicit declaration of function 'write' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
writ = write(state->fd, strm->next_in, put);
^
third_party/zlib/gzwrite.c:89:20: note: did you mean 'fwrite'?
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:165:9: note: 'fwrite' declared here
size_t fwrite(const void * __restrict __ptr, size_t __size, size_t __nitems, FILE * __restrict __stream) __DARWIN_ALIAS(fwrite);
^
third_party/zlib/gzwrite.c:110:24: error: implicit declaration of function 'write' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
writ = write(state->fd, state->x.next, put);
^
third_party/zlib/gzwrite.c:661:9: error: implicit declaration of function 'close' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
if (close(state->fd) == -1)
^
mkdir -p `dirname /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/cares/cares/ares__read_line.o`
make: *** [/Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/gzlib.o] Error 1
make: *** Waiting for unfinished jobs....
3 errors generated.
third_party/zlib/gzread.c:35:15: error: implicit declaration of function 'read' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
ret = read(state->fd, buf + *have, get);
^
third_party/zlib/gzread.c:35:15: note: did you mean 'fread'?
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:158:9: note: 'fread' declared here
size_t fread(void * __restrict __ptr, size_t __size, size_t __nitems, FILE * __restrict __stream);
^
make: *** [/Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/gzwrite.o] Error 1
gcc -Ithird_party/googletest/googletest/include -Ithird_party/googletest/googlemock/include -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/address_sorting/include -DGPR_BACKWARDS_COMPATIBILITY_MODE -g -Wall -Wextra -DOSATOMIC_USE_INLINED=1 -Ithird_party/abseil-cpp -Ithird_party/upb -Isrc/core/ext/upb-generated -O2 -Wframe-larger-than=16384 -fPIC -I. -Iinclude -I/Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/gens -I/usr/local/include -DNDEBUG -DINSTALL_PREFIX=\"/usr/local\" -arch i386 -arch x86_64 -Ithird_party/zlib -Ithird_party/cares -Ithird_party/cares/cares -fvisibility=hidden -D_GNU_SOURCE -Ithird_party/cares/config_darwin -DWIN32_LEAN_AND_MEAN -D_HAS_EXCEPTIONS=0 -DNOMINMAX -DHAVE_CONFIG_H -std=c99 -g -g -MMD -MF /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/cares/cares/ares__read_line.dep -c -o /Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/cares/cares/ares__read_line.o third_party/cares/cares/ares__read_line.c
third_party/zlib/gzread.c:651:11: error: implicit declaration of function 'close' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
ret = close(state->fd);
^
2 errors generated.
make: *** [/Users/brodock/.rvm/gems/ruby-2.7.2/gems/grpc-1.30.2/src/ruby/ext/grpc/objs/opt/third_party/zlib/gzread.o] Error 1
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/brodock/.rvm/rubies/ruby-2.7.2/bin/$(RUBY_BASE_NAME)
extconf failed, exit code 1
When installing manually it works (because of prebuilt binaries):
$ gem install grpc:1.30.2
Fetching grpc-1.30.2-universal-darwin.gem
Successfully installed grpc-1.30.2-universal-darwin
Parsing documentation for grpc-1.30.2-universal-darwin
Installing ri documentation for grpc-1.30.2-universal-darwin
Done installing documentation for grpc after 0 seconds
1 gem installed
But bundle can't use it and tries to re-build it again somehow.
Upstream related issues:
- https://github.com/grpc/grpc/issues/24881 (reported for ruby)
- https://github.com/grpc/grpc/issues/24677 (reported for python)
- https://github.com/grpc/grpc/issues/24677#issuecomment-729266507 (suggests a manual patch to make it work)
Edited by Gabriel Mazetto