Search Criteria
Package Details: p4lang-pi 0.1.0-4
Package Actions
| Git Clone URL: | https://aur.archlinux.org/p4lang-pi.git (read-only, click to copy) |
|---|---|
| Package Base: | p4lang-pi |
| Description: | An implementation framework for a P4Runtime server |
| Upstream URL: | https://github.com/p4lang/PI |
| Licenses: | Apache-2.0 |
| Submitter: | insmtr |
| Maintainer: | insmtr |
| Last Packager: | insmtr |
| Votes: | 0 |
| Popularity: | 0.000000 |
| First Submitted: | 2026-03-05 11:23 (UTC) |
| Last Updated: | 2026-05-06 17:40 (UTC) |
Dependencies (8)
- boost-libs
- grpc
- protobuf (protobuf-gitAUR)
- python-grpcio
- python-protobuf (python-protobuf-21AUR, python-protobuf-gitAUR)
- readline (readline-gitAUR)
- boost (boost-gitAUR) (make)
- git (git-gitAUR, git-glAUR, git-wd40AUR) (make)
Latest Comments
jkhsjdhjs commented on 2026-03-13 09:34 (UTC)
Yep, that works, thanks!
insmtr commented on 2026-03-13 05:56 (UTC)
@jkhsjdhjs
I added
sed -i 's/with_proto_demo=yes/with_proto_demo=no/' proto/configure.ac, so it should be fine now. Thanks for pointing it out!jkhsjdhjs commented on 2026-03-12 15:54 (UTC)
I just tried to build it in a clean chroot, and that also worked for me. So I dug deeper and noticed that the error is from the demo_grpc component. This is only built, if all dependencies, such as libmicrohttpd, are present:
https://github.com/p4lang/PI/blob/5689c91a8a7423781267b27d8b166c49a53904ff/proto/configure.ac#L73-L79
libmicrohttpd is installed on my system, but not in the chroot, so it tries to built the demo_grpc on my system, but not in the chroot. Unfortunately it doesn't seem to be possible to skip building this grpc demo, if libmicrohttpd is installed. Could you patch the configure.ac, that I linked above, and patch it such that this component is not built? E.g. by setting
with_proto_demo=noinsmtr commented on 2026-03-12 13:51 (UTC)
@jkhsjdhjs
I tried building it on my own computer and it worked. I also attempted to build it using
paru -U --chroot, which was also successful.The protobuf version on my own computer and in the chroot environment is the same. Could you check if your version is consistent?
Or does your
gccormakepkg.conftreat warnings as errors by default? I see you have-Werror=unused-resultin your log.In short, I cannot reproduce your issue, but you can try adding something like
-Wno-errortoPKGBUILDand try again. If it works, I will add it to the script.jkhsjdhjs commented on 2026-03-12 12:39 (UTC)
Thanks for your suggestions for p4lang-bmv2! I just tried to apply your changes, but this package fails to build for me. Do you have an idea?