-
Notifications
You must be signed in to change notification settings - Fork 16
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
Reenable bf diags build #59
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Andy Fingerhut <[email protected]>
Signed-off-by: Andy Fingerhut <[email protected]>
@vgurevich I am not familiar with bf-diags stuff. In this PR, I tried enabling the build of bf-diags, with the YAML profile looking like the one you see as the only file modified by this PR. I get this error during the build:
Is the issue as simple as the error message makes it sound, i.e. the profile must enable at most one of Tofino, Tofino2, or Tofino2m, otherwise it fails? |
What happens when you disable Tofino1 or Tofino2? How far do we get? |
Signed-off-by: Andy Fingerhut <[email protected]>
Both the Ubuntu 20.04 and 22.04 builds seem to be failing on errors like this:
There is no file config.h in any subdirectory of pkgsrc/bf-diags/third-party/libcrafter. I compared the contents of that directory against this published version of the libcrafter library, and it has no such config.h file, either Perhaps config.h is supposed to be generated by some build step? I do not know. I do not know how critical it is to get bf-diags building in open-p4studio. @vgurevich Is bf-diags intended only for building diagnostics software that one would run on a real hardware board? If so, then given the other gaps this repository currently has with respect to supporting real hardware boards, the lack of bf-diags building might be pretty low down on the list of concerns. |
This happens because of a change introduce in #34 and is easy to fix. We need to rename the include to |
@jafingerhut, you are correct! It is a matter of answering only This prompt is quite misleading, indeed. Just so you know, pretty much all the core software (the user-space driver, BRI (that is BF RT plus BF Runtime), the compiler, the model, P4Insight (if present)) are always compiled to support all the devices, and the answer to the question above doesn't affect that. The question does control which device The reason is that building In reality, though, So, to answer your question, the best course of action for now is to build just for one device at a time. |
No description provided.