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

Protobuf error, possibly related to C++ version #27

Open
verdurin opened this issue Jul 25, 2024 · 0 comments
Open

Protobuf error, possibly related to C++ version #27

verdurin opened this issue Jul 25, 2024 · 0 comments

Comments

@verdurin
Copy link

verdurin commented Jul 25, 2024

I'm trying to add HarvestTools to EasyBuild, for use on HPC clusters.

Having included the fix to use C++17 which allows the configure step to complete, I see this error during build:

g++ -c -O2 -ftree-vectorize -march=native -fno-math-errno -std=c++17 -Isrc -I/apps/eb/el8/upstream/software/protobuf/23.0-GCCcore-12.2.0/include -I/apps/eb/el8/upstream/software/CapnProto/0.10.3-GCCcore-12.2.0/include -include src/harvest/memcpyLink.h -Wl,--wrap=memcpy -I/apps/eb/el8/upstream/software/CapnProto/0.10.3-GCCcore-12.2.0/include -I/apps/eb/el8/upstream/software/protobuf/23.0-GCCcore-12.2.0/include -I/apps/eb/el8/upstream/software/zlib/1.2.12-GCCcore-12.2.0/include -o src/harvest/pb/harvest.pb.o src/harvest/pb/harvest.pb.cc
src/harvest/HarvestIO.cpp: In member function bool HarvestIO::loadHarvestProtocolBuffer(const char*):
src/harvest/HarvestIO.cpp:211:39: error: no matching function for call to google::protobuf::io::CodedInputStream::SetTotalBytesLimit(int, int)
  211 |         coded_input.SetTotalBytesLimit(INT_MAX, INT_MAX);
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
In file included from src/harvest/pb/harvest.pb.h:24,
                 from src/harvest/HarvestIO.h:10,
                 from src/harvest/HarvestIO.cpp:7:
/apps/eb/el8/upstream/software/protobuf/23.0-GCCcore-12.2.0/include/google/protobuf/io/coded_stream.h:390:8: note: candidate: void google::protobuf::io::CodedInputStream::SetTotalBytesLimit(int)
  390 |   void SetTotalBytesLimit(int total_bytes_limit);
      |        ^~~~~~~~~~~~~~~~~~
/apps/eb/el8/upstream/software/protobuf/23.0-GCCcore-12.2.0/include/google/protobuf/io/coded_stream.h:390:8: note:   candidate expects 1 argument, 2 provided
make: *** [Makefile:38: src/harvest/HarvestIO.o] Error 1
make: *** Waiting for unfinished jobs....
 (at easybuild/tools/run.py:682 in parse_cmd_output)

I'm using protobuf 23.0 and CapnProto 0.10.3.

There seems to be discussion of a similar problem here:
onnx/onnx#2678

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