-
Notifications
You must be signed in to change notification settings - Fork 20
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
Move the assembler to P4C. #70
base: main
Are you sure you want to change the base?
Conversation
d764ef2
to
1ca10b1
Compare
1ca10b1
to
277456d
Compare
Signed-off-by: fruffy <[email protected]>
277456d
to
f9a1a39
Compare
Signed-off-by: fruffy <[email protected]>
f9a1a39
to
0897607
Compare
If I do a diff on these directories in the latest versions of p4c and open-p4studio repos (before this PR's changes), I see this:
is it intentional not to copy over the pkgsrc/p4-compilers/bf-asm/test directory, and all of the many tests it contains? I understand they are still in the git commit history here, but would it perhaps be better if they were also added to the p4c repo, for possible future use? |
Yes, the context is this comment: p4lang/p4c#5121 (comment) |
Makes sense. I did see that earlier, but thank for the reminder. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Does it build on your local setup? I remember there were some problems in #65. |
I am away from home and my x86_64 systems until evening of Mar 19, and don't have remote login set up for them. I can try it then. |
I created a freshly installed Ubuntu 22.04 desktop Linux VM for x86_64, and ran the commands listed in the file cmds.txt that is part of the attached zip file, but it gave errors during building the code during the |
|
521e8fd
to
83df6fd
Compare
Signed-off-by: fruffy <[email protected]>
83df6fd
to
fd370c2
Compare
@fruffy Ready for another local test run on this? |
Yes, let's give it a try.
…On March 24, 2025 1:48:38 PM GMT+01:00, Andy Fingerhut ***@***.***> wrote:
jafingerhut left a comment (p4lang/open-p4studio#70)
@fruffy Ready for another local test run on this?
--
Reply to this email directly or view it on GitHub:
#70 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
Attached are build logs with errors from my attempt to build this PR's version of open-p4studio on 2024-Mar-24 on a freshly installed Ubuntu 22.04 x86_64 VM running in VirtualBox. I have not attempted to analyze the errors myself. |
There is no need to explain if it is complex, but are there any briefly-described known reasons why CI on Ubuntu 22.04 gives clean build and test, but on a freshly installed Ubuntu 22.04 VM I get build errors? I am guessing there must be something different about the software installed on my VM vs. the CI version, but don't have good guesses what those are. |
The error you are encountering is likely related to the preprocessor (and GNU extension support?). I am not sure what could be different. If I disable this line: https://github.com/p4lang/p4c/blob/main/backends/tofino/bf-asm/CMakeLists.txt#L249 I can reproduce it.. but not sure it doesn't work for you. |
Fixes #54.