facebook / fboss

Facebook Open Switching System Software for controlling network switches.
Other
866 stars 301 forks source link

[build] build failed on switch(centos 7) #109

Closed pettershao-ragilenetworks closed 3 years ago

pettershao-ragilenetworks commented 3 years ago

Hi guys, i try to build fboss, but below error occurs, any body can help?

nager.cpp.o.d -o CMakeFiles/phy_management_base.dir/fboss/lib/phy/PhyManager.cpp.o -c /tmp/fbcode_builder_getdeps-ZrootZfbossZbuildZfbcode_builder-root/repos/github.com-facebook-fboss.git/fboss/lib/phy/PhyManager.cpp
In file included from /tmp/fbcode_builder_getdeps-ZrootZfbossZbuildZfbcode_builder-root/repos/github.com-facebook-fboss.git/fboss/lib/phy/PhyManager.cpp:3:0:
/tmp/fbcode_builder_getdeps-ZrootZfbossZbuildZfbcode_builder-root/repos/github.com-facebook-fboss.git/fboss/lib/phy/PhyManager.h:12:10: fatal error: fboss/mka_service/if/gen-cpp2/mka_types.h: No such file or directory
 #include "fboss/mka_service/if/gen-cpp2/mka_types.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[4/1340] Building CXX object CMakeFiles/agent_test_utils.dir/fboss/agent/test/CounterCache.cpp.o
ninja: build stopped: subcommand failed.
Command '['/tmp/fbcode_builder_getdeps-ZrootZfbossZbuildZfbcode_builder-root/installed/cmake-u4hhUzFmJyVJ8F0324Dhh7kKEZhK70zPtU7YUQOuiII/bin/cmake', '--build', '/tmp/fbcode_builder_getdeps-ZrootZfbossZbuildZfbcode_builder-root/build/fboss', '--target', 'install', '--config', 'Release', '-j', '4']' returned non-zero exit status 1.
!! Failed