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] opentelemetry-cpp/1.16.1: Fails to build package with option with_abseil=False and protobuf/3.21.12 #26472

Open
steinerthomas opened this issue Jan 27, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@steinerthomas
Copy link
Contributor

Description

Due to this change #25338 (see discussion #25338 (comment) ) it's no longer possible to build opentelemtry-cpp version >= "1.12.0". With that version it automatically depends on the new protbuf version "5.27.0" which transitively requires abseil "20240116.2"

ERROR: Failed requirement 'protobuf/5.27.0' from 'opentelemetry-cpp/1.16.1'
ERROR: Unable to find 'protobuf/5.27.0' in remotes

with_abseil option should be considered in _supports_new_proto_grpc_abseil

Package and Environment Details

  • Package Name/Version: opentelemetry-cpp/1.16.1
  • Operating System+version: Debian GNU/Linux 12
  • Compiler+version: GCC 12
  • Conan version: conan 1.64.0
  • Python version: Python 3.11.2

Conan profile

[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=12
compiler.libcxx=libstdc++
build_type=Release
[options]
[conf]
[build_requires]
[env]

Steps to reproduce

conan create conan-center-index/recipes/protobuf/all protobuf/3.21.12@ -u -tf None -o with_zlib=False

conan create recipes/opentelemetry-proto/all opentelemetry-proto/1.3.2@ -u -tf None

conan create recipes/opentelemetry-cpp/all opentelemetry-cpp/1.16.1@ -u -tf None -o with_stl=True -o with_abseil=False -o with_otlp_grpc=False -o with_otlp_http=True -o with_zipkin=False -o protobuf:with_zlib=False

Logs

Click to expand log
WARN: *** Conan 1 is legacy and on a deprecation path ***
WARN: *** Please upgrade to Conan 2 ***
Exporting package recipe
opentelemetry-cpp/1.16.1 exports: File 'conandata.yml' found. Exporting it...
opentelemetry-cpp/1.16.1 exports: Copied 1 '.yml' file: conandata.yml
opentelemetry-cpp/1.16.1: The stored package has not changed
opentelemetry-cpp/1.16.1: Using the exported files summary hash as the recipe revision: 9a8be83e3ea88aac4d5f233f1ca5b37d
opentelemetry-cpp/1.16.1: Exported revision: 9a8be83e3ea88aac4d5f233f1ca5b37d
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++
compiler.version=12
os=Linux
os_build=Linux
[options]
with_abseil=False
with_otlp_grpc=False
with_otlp_http=True
with_stl=True
with_zipkin=False
protobuf:with_zlib=False
[build_requires]
[env]

protobuf/5.27.0: Not found in local cache, looking in remotes...
protobuf/5.27.0: Trying with 'conan-local'...
ERROR: Failed requirement 'protobuf/5.27.0' from 'opentelemetry-cpp/1.16.1'
ERROR: Unable to find 'protobuf/5.27.0' in remotes```

</details>
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