p4lang / p4factory

Compile P4 and run the P4 behavioral simulator
Apache License 2.0
174 stars 106 forks source link

problems on building docker image #171

Open imaginezz opened 7 years ago

imaginezz commented 7 years ago

My operation OS is Ubuntu 14.04. I followed by the README.md step by step, and wanna to build a docker image. But when I ran make docker-image in p4factory/targets/switch directory, the program seem work well, but when it processed step 14, there are something wrong. First, it shows that fatal: Not a git repository: ../../.git/modules/submodules/bm but when I go to that directory, I tried git status the git showes that bm is a git repo. Then after checking ,it shows configure: error: The P4_PATH you provided does not exist or is not absolute mmake: *** [clean] Error 2 Then, after compiling something, it shows many messages like Semantic warning: header instance 'outer_udp' is not reachable and will be removed And finally, make: *** [bm_tenjin_output_oldest] Error 1 and quit with error 2

poojj commented 7 years ago

Is this issue resolved ?

poojj commented 7 years ago

I find the same error popping up when I say : make docker-image

antoninbas commented 7 years ago

I am not sure what was causing the issue in the first place, but we don't really support make docker-image any more. I believe that the new steps to build a docker image running switch.p4 are here: https://github.com/p4lang/switch#building-switch-docker-image

imaginezz commented 7 years ago

Thank you. I'll try it. And what can I do to run the INT app in P4factory ? The README in INT showed that I should use make docker-image

antoninbas commented 7 years ago

According to the team in charge of the INT demo in p4factory, this code is broken for now. They are trying to update the demo to work with the new docker image building process, but there is no ETA for now. Sorry about that.

imaginezz commented 7 years ago

ok, thank u