Closed shaohongxu closed 7 years ago
This docker build worked for me:
cd bistro
export os_image=ubuntu:16.04
export gcc_version=5
make_parallelism=2 ./build/fbcode_builder/travis_docker_build.sh
It creates a docker image, as you can see: $ docker images REPOSITORY TAG IMAGE ID CREATED SIZE
Thanks for sharing your experience. The builds of some of Bistro's dependencies (especially facebook/fbthrift) got broken several times over the last couple of weeks. I apologize for this. I think we fixed all the known issues at this point.
As far as the Docker-free build, the reason we have not yet provided this sort of script is that it is actually fairly tricky to make it robust to updates, rebuilds, varying versions of dependencies, etc. Docker lets the build start from a known-good state every time.
That said, if you have a clean Debian-like system, and you want to install Bistro, it's perfectly reasonable to run the commands from the appropriately generated Dockerfile. That should work.
Please feel free to reopen if you have any other questions or concerns!
I have some progress on building Bistro. I can run travis_docker_build.sh to build but the following error blocked the building process. I found the TMultiplexedProtocol.cpp is an apache thrift file and it is not contained in fbthrift project. And I still can not find a successful build in Travis.
Would you like to tell me how to fix the problem so I can move forward. many thanks!
make[4]: No rule to make target 'protocol/TMultiplexedProtocol.cpp', needeby 'protocol/TMultiplexedProtocol.lo'. Stop. make[4]: Waiting for unfinished jobs.... make[4]: Leaving directory '/home/fbthrift/thrift/lib/cpp' Makefile:1287: recipe for target 'all-recursive' failed make[3]: Leaving directory '/home/fbthrift/thrift/lib/cpp' make[3]: [all-recursive] Error 1 Makefile:416: recipe for target 'all-recursive' failed make[2]: Leaving directory '/home/fbthrift/thrift/lib' make[2]: [all-recursive] Error 1 Makefile:498: recipe for target 'all-recursive' failed make[1]: Leaving directory '/home/fbthrift/thrift' make[1]: *** [all-recursive] Error 1