-
Notifications
You must be signed in to change notification settings - Fork 444
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
p4testgen fails to compile on recent Fedora Linux versions #4067
Comments
This might be a problem with g++12, I will try to take a look.
This is concerning, why does it take so long? Dependencies or is that the compiler alone? |
I can not reproduce this with |
Regarding the ~3 hours, a lot of that time is building protobuf, gRPC, PI, and behavioral-model from source before beginning to build p4c. That script starts from a freshly installed system, so it takes a while. It also assumes only 2 GB of RAM on the system, so compiles p4c with |
Thanks for the suggestion. I will get back to you after trying it out, which might be a day or three. |
Code updates suggested by Fabian Ruffy, and verified by building with these changes on a Fedora 37 Linux system running G++ 12.3.1.
I am giving the symptom in the description. I do not know what the root cause is, but it might be something like "more recent versions of G++ used on recent Fedora Linux versions are newer than recent versions of Ubuntu Linux, and there are new warnings or errors caught by those newer G++ versions in p4testgen source code". That is only a guess, though, as I am not familiar with the error messages I am getting (more below).
More detailed symptoms:
Attempting to run these commands on a freshly installed Fedora 36 Linux system:
(Note, getting to the point of trying to compile p4testgen code can take about 3 hours with these steps)
gives me the following errors near the end of the output:
If you are curious, you can see the default version of various build tools installed on several recent versions of Ubuntu and Fedora Linux here: https://docs.google.com/spreadsheets/d/1uPde_2sLvX-Ek-Xj_ZaC3NrOa-CZ7_n-Hcox_dQ_VCc/edit#gid=0
Fedora Linux tends to have more recent versions of them, for the same release date.
The text was updated successfully, but these errors were encountered: