You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working in the same Ubuntu 21.04 VM as in Issue #41 , I've encountered another problem. This time, I've tried to compile the program with P4Runtime support like so:
./t4p4s.sh :l2switch dbg verbose model=psa p4rt
Now, the compilation fails with a linker error. Here is the output generated (minor formatting added):
It appears as though some kind of <math.h> or <cmath> cannot be found.
Here are the versions of the components. I'll add this info to Issue #41 as well.
- DPDK: 22.03.0
- GRPC: Commit from 2022-05-06 20:31:11 (SHA 5918f98ecbf5ace77f30fa97f7fc3e8bdac08e04)
- P4C: 1.2.2.1, Commit from 2022-03-01 18:37:15 (SHA 978a1166684010832a3bd408a7c68fd592ccb7a0). Local changes made to CMakeLists.txt by bootstrap script line 557 (changes `-fuse-ld=gold` to `-fuse-ld=lld-12`)
- P4Runtime_GRPCPP: Commit from 2020-11-25 15:53:26 (SHA 261bdc73f149d15e61e73b4afa80c8085de9445f)
- PI: 0.1.0, Commit from 2022-03-09 22:04:59 (SHA f547455a260b710706bef82afab4cb9937bac416)
- Protobuf: 3.19.4, Commit from 2022-01-28 04:25:56 (SHA 22d0e265de7d2b3d2e9a00d071313502e7d4cccf)
- t4p4s: Commit from 2022-04-30 17:52:57 (SHA 22d0e265de7d2b3d2e9a00d071313502e7d4cccf). Local changes made to various files. None of them were made by me and I couldn't find a script that could have done them.
The text was updated successfully, but these errors were encountered:
The program compiles properly by adding the line marked with + to the meson.build.p4rt file found in the same directory as the t4p4s.sh. Here is the full modified file:
I haven't created a pull request for this as I haven't had the time to properly test this, but it looks promising.
As it turns out, the t4p4s install that comes with the prebuild p4pi image does have this line in said file. Oddly enough, I couldn't find anything in the p4pi repo that would insert this line, be it a script or a commit. This line never existed in the t4p4s repo as far as I can tell either, so it probably was added manually before building the image.
While working in the same Ubuntu 21.04 VM as in Issue #41 , I've encountered another problem. This time, I've tried to compile the program with P4Runtime support like so:
Now, the compilation fails with a linker error. Here is the output generated (minor formatting added):
It appears as though some kind of
<math.h>
or<cmath>
cannot be found.Here are the versions of the components. I'll add this info to Issue #41 as well.
The text was updated successfully, but these errors were encountered: