opencord / fabric-tofino

ONOS app that provides Tofino-specific versions of the fabric.p4 pipeconf to use Stratum+Tofino-enabled switches with Trellis
Apache License 2.0
22 stars 8 forks source link

Error build when using -DWITH_INT_SINK #1

Closed baekguihyun closed 4 years ago

baekguihyun commented 4 years ago

Hello, Developer.

I tried to build fabric-tofino with -DWITH_INT_SINK option, but occurrence Error at P4 source.

$ make build PROFILES=fabric-int
rm -rf src/main/resources/p4c-out
*** Compiling profile 'fabric-int' for mavericks_sde_9_0_0 platform...
*** Output in /home/forwiz/fabric-tofino/tmp/fabric-int/mavericks_sde_9_0_0
make: *** [fabric-int] Error 3

Environment

To Reproduce

  1. Makefile
    • Line 34:
      fabric-int:
      @${p4-build} fabric-int "-DWITH_INT_SOURCE -DWITH_INT_TRANSIT -DWITH_INT_SINK"
    • Line 40:
      fabric-spgw-int:
      @${p4-build} fabric-spgw-int "-DWITH_SPGW -DWITH_INT_SOURCE -DWITH_INT_TRANSIT -DWITH_INT_SINK"
ccascone commented 4 years ago

Hi @baekguihyun , unfortunately, support for the INT sink functionality for Tofino is not complete. You should be able to compile with full INT support for BMv2, but not for Tofino. The errors you see are expected.

Also, beware that your legal agreement with Barefoot/Intel might not allow sharing the output of products as the compiler on public channels like this one.

baekguihyun commented 4 years ago

Thanks for your answer.