Closed sanjayjuneja closed 1 year ago
This install guide is quite out of date, I would recommend following the guides in this repository:
https://github.com/jafingerhut/p4-guide/blob/master/bin/README-install-troubleshooting.md
Instead of
git checkout 69e132d0d663e3408d740aaf8ed534ecefc88810
try
git checkout 6756816100b7c51e3bf717ec55114a8e8575ba1d
grpc@ubuntu:~/p4c/build$ make [ 53%] Built target update_includes [ 53%] Built target linkgraphs [ 53%] Built target linkbmv2 [ 53%] Built target linkp4cebpf [ 53%] Built target linkp4test [ 53%] Built target p4c_driver [ 53%] Built target p4ctoolkit [ 53%] Built target irgenerator [ 53%] Built target genIR [ 53%] Built target ir [ 53%] Built target mkp4dirs [ 53%] Built target mkv1dirs [ 53%] Built target frontend [ 53%] Built target midend [ 53%] Built target mkP4configdir [ 53%] Building CXX object control-plane/CMakeFiles/controlplane.dir/google/rpc/status.pb.cc.o clang: warning: argument unused during compilation: '-fuse-ld=gold' [-Wunused-command-line-argument] In file included from /home/grpc/p4c/build/control-plane/google/rpc/status.pb.cc:4: In file included from /home/grpc/p4c/build/control-plane/google/rpc/status.pb.h:11: /usr/local/include/google/protobuf/port_def.inc:205:1: error: static_assert failed due to requirement '201103L >= 201402L' "Protobuf only supports C++14 and newer." static_assert(PROTOBUF_CPLUSPLUS_MIN(201402L), "Protobuf only supports C++14 and newer."); ^
~~~~~~~ In file included from /home/grpc/p4c/build/control-plane/google/rpc/status.pb.cc:4: In file included from /home/grpc/p4c/build/control-plane/google/rpc/status.pb.h:24: In file included from /usr/local/include/google/protobuf/io/coded_stream.h:130: In file included from /usr/local/include/google/protobuf/stubs/common.h:44: In file included from /usr/local/include/absl/strings/string_view.h:39: In file included from /usr/local/include/absl/base/attributes.h:37: In file included from /usr/local/include/absl/base/config.h:86: /usr/local/include/absl/base/policy_checks.h:79:2: error: "C++ versions less than C++14 are not supported."error "C++ versions less than C++14 are not supported."
^ In file included from /home/grpc/p4c/build/control-plane/google/rpc/status.pb.cc:4: In file included from /home/grpc/p4c/build/control-plane/google/rpc/status.pb.h:24: In file included from /usr/local/include/google/protobuf/io/coded_stream.h:130: In file included from /usr/local/include/google/protobuf/stubs/common.h:44: /usr/local/include/absl/strings/string_view.h:340:10: error: cannot assign to non-static data member within const member function 'removeprefix' ptr += n;