opencomputeproject / SAI

Switch Abstraction Interface
Other
474 stars 475 forks source link

fexsai/p4c build error #1294

Open dkrdzic opened 3 years ago

dkrdzic commented 3 years ago

I followed the instructions from README file - https://github.com/opencomputeproject/SAI/blob/master/flexsai/p4/README.md in order to link and build p4lang/p4c with SAI p4 backend extension. With make command an error occurred: Error copying directory from "/.../p4c/p4_14include" to "/.../p4c/build/p4_14include", where p4c is my local p4c repo cloned from p4lang/p4c. There was no p4_14include folder found. Does anyone know how to fix this?

If I make an empty p4_14include dir and build, it fails because of: terminate called after throwing an instance of 'Util::CompilationError' what(): IntMod: Duplicate class name

digesh099 commented 2 years ago

I am also observing the same error. @YonatanPitz do you know if anything is missing. getting error at this stage when doing "make -j4": https://github.com/opencomputeproject/SAI/tree/master/flexsai/p4#build