[P4-dev] problem in p4 16 compiler

Calin Cascaval cascaval at barefootnetworks.com
Wed Aug 30 10:30:54 EDT 2017


'[' denotes an optional argument. If you want that feature, strip the brackets and use it. For your scenario, I suggest you just use the following:

cmake .. -DCMAKE_BUILD_TYPE=RELEASE
make -j4
make install

--
Thanks, Calin

On Aug 30, 2017, 04:36 -0700, mostafa <mostafaammar at aast.edu>, wrote:
> Dear All,
>
> Kindly I am trying to run the ipv4_forward example
>
> /ipv4_forward$ ./run.sh
> Entering build directory.
> Extracting package.
> Reading package manifest.
> > p4c-bm2-ss --p4v 16 "ipv4_forward.p4" -o "ipv4_forward.p4.json"
> sh: 1: p4c-bm2-ss: not found
> Compile failed.
>
>
> When following the steps in
> https://github.com/p4lang/p4c/blob/master/README.md
> to install compiler I am having an error
>
> /ipv4_forward/build$ cmake .. [-DCMAKE_BUILD_TYPE=RELEASE|DEBUG] [-DCMAKE_INSTALL_PREFIX=<path>] [-DENABLE_DOCS=ON (default off)] [-DENABLE_P4RUNTIME_TO_PD=OFF (default on)]
> -bash: syntax error near unexpected token `('
> Any help is appreciated.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20170830/0f6fa037/attachment-0002.html>


More information about the P4-dev mailing list