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

[Git main] -Dprotobuf_BUILD_LIBUPB:BOOL=OFF is broken (and not covered by CI?) #20538

Open
hartwork opened this issue Mar 1, 2025 · 0 comments

Comments

@hartwork
Copy link

hartwork commented Mar 1, 2025

Hi!

Compilation with -Dprotobuf_BUILD_LIBUPB:BOOL=OFF is currently broken on Git main (commit 24830cf). For proof and/or to reproduce:

# cd "$(mktemp -d)"

# git clone --depth 1 https://github.com/protocolbuffers/protobuf

# cd protobuf/

# git rev-parse HEAD
24830cf07e559e912fa2622d3487a679ef0df9a9

# cmake -Dprotobuf_BUILD_LIBUPB:BOOL=OFF -S . -B build

# time make -C build VERBOSE=1
[..]
[ 43%] Building CXX object CMakeFiles/libprotoc.dir/upb_generator/common.cc.o
/usr/bin/c++ -DLIBPROTOC_EXPORTS -I/tmp/tmp.ajQg1hUGaR/protobuf/build -I/tmp/tmp.ajQg1hUGaR/protobuf -I/tmp/tmp.ajQg1hUGaR/protobuf/build/src -I/tmp/tmp.ajQg1hUGaR/protobuf/src -I/tmp/tmp.ajQg1hUGaR/protobuf/third_party/utf8_range -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT CMakeFiles/libprotoc.dir/upb_generator/common.cc.o -MF CMakeFiles/libprotoc.dir/upb_generator/common.cc.o.d -o CMakeFiles/libprotoc.dir/upb_generator/common.cc.o -c /tmp/tmp.ajQg1hUGaR/protobuf/upb_generator/common.cc
In file included from /tmp/tmp.ajQg1hUGaR/protobuf/upb/reflection/common.h:15,
                 from /tmp/tmp.ajQg1hUGaR/protobuf/upb/reflection/def_pool.h:15,
                 from /tmp/tmp.ajQg1hUGaR/protobuf/upb/reflection/def.h:12,
                 from /tmp/tmp.ajQg1hUGaR/protobuf/upb/reflection/def.hpp:26,
                 from /tmp/tmp.ajQg1hUGaR/protobuf/upb_generator/common.h:16,
                 from /tmp/tmp.ajQg1hUGaR/protobuf/upb_generator/common.cc:8:
/tmp/tmp.ajQg1hUGaR/protobuf/upb/reflection/descriptor_bootstrap.h:14:10: fatal error: google/protobuf/descriptor.upb.h: No such file or directory
   14 | #include "google/protobuf/descriptor.upb.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/libprotoc.dir/build.make:1899: CMakeFiles/libprotoc.dir/upb_generator/common.cc.o] Error 1
make[2]: Leaving directory '/tmp/tmp.ajQg1hUGaR/protobuf/build'
make[1]: *** [CMakeFiles/Makefile2:186: CMakeFiles/libprotoc.dir/all] Error 2
make[1]: Leaving directory '/tmp/tmp.ajQg1hUGaR/protobuf/build'
make: *** [Makefile:136: all] Error 2
make: Leaving directory '/tmp/tmp.ajQg1hUGaR/protobuf/build'

This is on Linux with GCC 13 (and Protobuf 29.2 installed system-wide).

Best, Sebastian

CC @vitalybuka

PS: make -C build upb_generator/common.o could be of interest for the likely quickest way to see the same error.

@hartwork hartwork changed the title [Git master] -Dprotobuf_BUILD_LIBUPB:BOOL=OFF is broken (and not covered by CI?) [Git main] -Dprotobuf_BUILD_LIBUPB:BOOL=OFF is broken (and not covered by CI?) Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant