Xtra-Computing / FedTree

A tree-based federated learning system (MLSys 2023)
https://fedtree.readthedocs.io/en/latest/index.html
Apache License 2.0
140 stars 38 forks source link

StrFormat error #38

Closed wxli0 closed 1 year ago

wxli0 commented 2 years ago

I encountered the following error multiple times (for all occurrences of StrFormat) in the "make" stage for FedTree:

/projects/FedTree/build/_deps/grpc-src/src/core/lib/surface/call.cc:  in function ‘void handle_error_parsing_compression_algorithm(grpc_call*)’:
/projects/FedTree/build/_deps/grpc-src/src/core/lib/surface/call.cc:1398:51: ERROR:no matching function for call to ‘StrFormat(const char [71], grpc_stream_compression_algorithm&, grpc_message_compression_algorithm&)’
     call->incoming_message_compression_algorithm);

I searched this error, and followed the suggestions to upgrade gcc to 7.3.1 on CentOS 7. However, the error still exists. Could you please suggest how to fix it? Many thanks!

QinbinLi commented 2 years ago

Hi @wxli0 ,

I'm sorry that I don't know how to fix it since the error comes from compiling grpc. I think there exists an incompatibility between grpc and your compiler (e.g., see here). If upgrading gcc cannot solve the problem, you may try to change the version of grpc in line72 of CMakeLists.txt. Thanks.