Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[package] grpc/1.67.1: Fails to build on Macos #26303

Open
gouriano opened this issue Jan 3, 2025 · 0 comments
Open

[package] grpc/1.67.1: Fails to build on Macos #26303

gouriano opened this issue Jan 3, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@gouriano
Copy link
Contributor

gouriano commented Jan 3, 2025

Description

I try to build it in a slightly non-standard environment. So, maybe I do something wrong...

Package and Environment Details

  • Package Name/Version: grpc/1.67.1
  • Operating System+version: Sonoma 14.7.2
  • Compiler+version: Apple Clang 16
  • Conan version: conan 2.7.1
  • Python version: Python 3.9.6

Conan profile

[settings]
arch=armv8
build_type=Release
compiler=apple-clang
compiler.cppstd=gnu17
compiler.libcxx=libc++
compiler.version=16
os=Macos
[options]
[conf]
[build_requires]
[env]

Steps to reproduce

conan install --requires grpc/1.67.1 --build missing -o zlib/*:shared=True

note that everything is "static", except zlib, which is "shared"

Logs

build fails because "Library not loaded: @rpath/libz.1.dylib":

Click to expand log [ 98%] Built target grpc++ [ 98%] Running gRPC C++ protocol buffer compiler for src/proto/grpc/reflection/v1alpha/reflection.proto [ 98%] Running gRPC C++ protocol buffer compiler for src/proto/grpc/channelz/channelz.proto [ 98%] Running gRPC C++ protocol buffer compiler for src/proto/grpc/reflection/v1/reflection.proto dyld[20432]: Library not loaded: @rpath/libz.1.dylib Referenced from: <501713BD-52EA-345D-AC93-438A22A25D80> /Users/gouriano/Conan/.conan2/p/b/proto8de98cfb82152/p/bin/protoc-27.0.0 Reason: tried: '/Users/gouriano/Conan/.conan2/p/b/proto8de98cfb82152/p/lib/libz.1.dylib' (no such file), '/libz.1.dylib' (no such file), '/Users/gouriano/Conan/.conan2/p/b/proto8de98cfb82152/p/bin/../lib/libz.1.dylib' (no such file), '/Users/gouriano/Conan/.conan2/p/b/proto8de98cfb82152/p/bin/../lib/libz.1.dylib' (no such file) dyld[20433]: Library not loaded: @rpath/libz.1.dylib Referenced from: <501713BD-52EA-345D-AC93-438A22A25D80> /Users/gouriano/Conan/.conan2/p/b/proto8de98cfb82152/p/bin/protoc-27.0.0 Reason: tried: '/Users/gouriano/Conan/.conan2/p/b/proto8de98cfb82152/p/lib/libz.1.dylib' (no such file), '/libz.1.dylib' (no such file), '/Users/gouriano/Conan/.conan2/p/b/proto8de98cfb82152/p/bin/../lib/libz.1.dylib' (no such file), '/Users/gouriano/Conan/.conan2/p/b/proto8de98cfb82152/p/bin/../lib/libz.1.dylib' (no such file) dyld[20431]: Library not loaded: @rpath/libz.1.dylib Referenced from: <501713BD-52EA-345D-AC93-438A22A25D80> /Users/gouriano/Conan/.conan2/p/b/proto8de98cfb82152/p/bin/protoc-27.0.0 Reason: tried: '/Users/gouriano/Conan/.conan2/p/b/proto8de98cfb82152/p/lib/libz.1.dylib' (no such file), '/libz.1.dylib' (no such file), '/Users/gouriano/Conan/.conan2/p/b/proto8de98cfb82152/p/bin/../lib/libz.1.dylib' (no such file), '/Users/gouriano/Conan/.conan2/p/b/proto8de98cfb82152/p/bin/../lib/libz.1.dylib' (no such file) Subprocess aborted Subprocess aborted Subprocess aborted make[2]: *** [gens/src/proto/grpc/reflection/v1/reflection.grpc.pb.cc] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [gens/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.cc] Error 1 make[2]: *** [gens/src/proto/grpc/channelz/channelz.grpc.pb.cc] Error 1 make[1]: *** [CMakeFiles/grpc++_reflection.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... make[1]: *** [CMakeFiles/grpcpp_channelz.dir/all] Error 2
@gouriano gouriano added the bug Something isn't working label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant