vmware / concord-bft

Concord byzantine fault tolerant state machine replication library
377 stars 147 forks source link

Stable branch #1418

Closed adithyabhatkajake closed 1 year ago

adithyabhatkajake commented 3 years ago

I am looking for a stable branch that compiles inside the Docker image. I wanted to test some cryptographic optimizations. I tried the master branch and the v0.10.x branches.

Steps to Reproduce General build:

  1. cd into the cloned repo: cd concord-bft
  2. build the container: docker build -t sbft .
  3. Exec a shell in the container (I use visual studio code for this)
  4. Create the build directory and cd into it: mkdir build; cd build
  5. Try building cmake .. && make -j7

Expected behavior Everything should compile without errors.

Logs

adithyabhatkajake commented 3 years ago

I forgot to re-build the container when I changed the branch. With the rebuilt container, v0.10.x​ has the same error as the master branch.

salieri11 commented 3 years ago

Hi @adithyabhatkajake. Can you please run make from concord-bft folder and update this ticket with the result?

f-squirrel commented 3 years ago

@adithyabhatkajake , please follow the instructions from README.

guyg8 commented 3 years ago

Hi @adithyabhatkajake.
I've also encountered the same problem. It can be solved by playing with the cmake arguments. For example, replace "cmake .." with "CC=clang CXX=clang++ cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=TRUE -DBUILD_COMM_TCP_PLAIN=FALSE -DBUILD_COMM_TCP_TLS=TRUE -DCMAKE_CXX_FLAGS_RELEASE=-O3 -g -DUSE_LOG4CPP=TRUE -DBUILD_ROCKSDB_STORAGE=TRUE -DUSE_S3_OBJECT_STORE=TRUE -DUSE_OPENTRACING=TRUE -DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE -DOMIT_TEST_OUTPUT=FALSE -DKEEP_APOLLO_LOGS=TRUE -DBUILD_SLOWDOWN=FALSE -DBUILD_KVBC_BENCH=TRUE -DLEAKCHECK=FALSE -DTHREADCHECK=FALSE .." (These arguments are used in the docker build.)