[P4-dev] SAI-P4-BM build fails

hemant at mnkcg.com hemant at mnkcg.com
Mon Feb 11 19:49:29 EST 2019


Ok, I went off on the tangent because I saw the Issue relating to SAI 1.3 – sorry.  Got it about bmv2.  Actually, the behavioral-model compiles just fine.  It’s the few SAI-P4-BM sai-target files that fail compiling.  I can look into those.

 

Thanks,

 

Hemant

 

From: Antonin Bas <antonin at barefootnetworks.com> 
Sent: Monday, February 11, 2019 7:22 PM
To: hemant at mnkcg.com
Cc: p4-dev <p4-dev at lists.p4.org>
Subject: Re: [P4-dev] SAI-P4-BM build fails

 

Note that I never said anything about the SAI version, so I don't know why you went off on that tangent. I referred you to that Github comment because it seems to explain Mellanox's position on updating the repository.

When I wrote "If you want to make the code compile with the latest p4.org <http://p4.org/>  tools", I was referring to the bmv2 version, not the SAI version (which has nothing to do with p4.org <http://p4.org> ).

 

On Mon, Feb 11, 2019 at 3:42 PM <hemant at mnkcg.com <mailto:hemant at mnkcg.com> > wrote:

My belies if that SAI-P4-BM is hardcoded to support only SAI 1.0.  

 

In its .gitmodule file, I don’t see a URL link to any SAI API repo - the file only fetches the behaviorial-model.  I grepped in all code in the repo for SAI 1.0 vs SAI 1.3 and other string variations (case-sensitive or not) and don’t find any code that says what SAI is supported.   However, this code ingests a P4-14, v1.1 program and generates SAI 1.0 API.  Generation of SAI 1.3 API is not supported.

 

So why does the repo fail to build?  My specific failure is when I invoke ‘make’ from SAI-P4-BM/p4-switch/, the build fails.  I think, the repo hasn’t bother testing its build in a while. 

 

Thanks,

 

Hemant

 

From: Antonin Bas <antonin at barefootnetworks.com <mailto:antonin at barefootnetworks.com> > 
Sent: Monday, February 11, 2019 12:40 PM
To: hemant at mnkcg.com <mailto:hemant at mnkcg.com> 
Cc: p4-dev <p4-dev at lists.p4.org <mailto:p4-dev at lists.p4.org> >
Subject: Re: [P4-dev] SAI-P4-BM build fails

 

Mellanox's stance on this repo seems to be described in this issue comment: https://github.com/Mellanox/SAI-P4-BM/issues/5#issuecomment-432140884

If you want to make the code compile with the latest p4.org <http://p4.org>  tools, you could submit a patch through a PR. Since there isn't much activity in the repo, I don't know if anyone will review your PR in a timely fashion.

 

On Mon, Feb 11, 2019 at 8:48 AM <hemant at mnkcg.com <mailto:hemant at mnkcg.com> > wrote:

I used ‘git clone –recursive <https://github.com/Mellanox/SAI-P4-BM> to download the software to my machine.

 

However, the software fails to build.  The gory details of build failure can be seen in a new Issue I have filed:

 

https://github.com/Mellanox/SAI-P4-BM/issues/6

 

Antonin,

 

Since you worked with this software in the past, when you have any spare cycles, could you please download and see if the software builds for you. 

 

Thanks,

 

Hemant

 

_______________________________________________
P4-dev mailing list
P4-dev at lists.p4.org <mailto:P4-dev at lists.p4.org> 
http://lists.p4.org/mailman/listinfo/p4-dev_lists.p4.org




 

-- 

Antonin




 

-- 

Antonin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20190211/8b199e39/attachment.html>


More information about the P4-dev mailing list