MGARD
MGARD copied to clipboard
Errors compiling protobufs using v3.29.3
When MGARD is being compiled via Spack using version 3.29.3 of Protobuf the following errors are observed:
explicit Container(Arena* input_arena)
^
detected during:
instantiation of "T *google::protobuf::Arena::Create<T,Args...>(google::protobuf::Arena *, Args &&...) [with T=google::protobuf::internal::InternalMetadata::Container<google::protobuf::UnknownFieldSet>, Args=<>]" at line 171 of /home/software/spack/[padded-to-256-chars]/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/protobuf-3.29.3-nrpf6hyh3gtmk6rrppytvdj6htrgjtvj/include/google/protobuf/metadata_lite.h
instantiation of "T *google::protobuf::internal::InternalMetadata::mutable_unknown_fields_slow<T>() [with T=google::protobuf::UnknownFieldSet]" at line 96 of /home/software/spack/[padded-to-256-chars]/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/protobuf-3.29.3-nrpf6hyh3gtmk6rrppytvdj6htrgjtvj/include/google/protobuf/metadata_lite.h
instantiation of "T *google::protobuf::internal::InternalMetadata::mutable_unknown_fields<T>() [with T=google::protobuf::UnknownFieldSet]" at line 693 of /tmp/root/spack-stage/spack-stage-mgard-2023-12-09-7shz7aqrixscqqc5ouxtms6xz2x7r25y/spack-build-7shz7aq/include/proto/mgard.pb.h
2 errors detected in the compilation of "/tmp/root/spack-stage/spack-stage-mgard-2023-12-09-7shz7aqrixscqqc5ouxtms6xz2x7r25y/spack-build-7shz7aq/src/mgard-x/CompressionHighLevel/Compress_CUDA.cpp".
make[2]: *** [CMakeFiles/mgard-library.dir/build.make:8531: CMakeFiles/mgard-library.dir/src/mgard-x/CompressionHighLevel/Compress_CUDA.cpp.o] Error 1
Using Protobuf v3.28.2 the build completes successfully.
- Related Spack issue: https://github.com/spack/spack/pull/49246
- Build failure: https://gitlab.spack.io/spack/spack/-/jobs/15420106
CC: @robertu94
Likely due to https://github.com/protocolbuffers/protobuf/commit/935783570eb82957d493164a4f3e17cf254e38e5 which introduced explicit Container(Arena* input_arena).