AztecProtocol / aztec-2.0

C++ elliptic curve library
134 stars 37 forks source link

Dockerfile didn't work when running dockerfiles/Dockerfile.wasm-linux-clang #65

Open fosgate29 opened 2 years ago

fosgate29 commented 2 years ago

I go some errors when trying to run docker and get the wasm file.

Sending build context to Docker daemon 104.5MB Step 1/11 : FROM ubuntu:latest AS builder ---> d13c942271d6 Step 2/11 : RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential wget git libssl-dev cmake curl ---> Using cache ---> b8d842ac719b Step 3/11 : RUN curl https://wasmtime.dev/install.sh -sSf | bash /dev/stdin --version v0.25.0 ---> Using cache ---> 9ca51857212b Step 4/11 : WORKDIR /usr/src/barretenberg/src ---> Using cache ---> fafa72c1b368 Step 5/11 : RUN curl -s -L https://github.com/CraneStation/wasi-sdk/releases/download/wasi-sdk-12/wasi-sdk-12.0-linux.tar.gz | tar zxfv - ---> Using cache ---> a3670743bf36 Step 6/11 : WORKDIR /usr/src/barretenberg ---> Using cache ---> 932c244e11b9 Step 7/11 : COPY . . ---> adb9504dbcbb Step 8/11 : RUN mkdir build && cd build && cmake -DWASM=ON .. && make -j$(nproc) barretenberg.wasm rollup_proofs_tests ---> Running in 68de8d87c90d -- The CXX compiler identification is Clang 11.0.0 -- The C compiler identification is Clang 11.0.0 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Compiling for WebAssembly. -- Multithreading is disabled. -- Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) -- Looking for pthread.h -- Looking for pthread.h - not found -- Could NOT find Threads (missing: Threads_FOUND) -- Could NOT find Threads (missing: Threads_FOUND) CMake Error at CMakeLists.txt:46 (include): include could not find load file:

cmake/build.cmake

-- Using fallback non-assembly methods for field multiplications. -- Configuring incomplete, errors occurred! See also "/usr/src/barretenberg/build/CMakeFiles/CMakeOutput.log". See also "/usr/src/barretenberg/build/CMakeFiles/CMakeError.log". The command '/bin/sh -c mkdir build && cd build && cmake -DWASM=ON .. && make -j$(nproc) barretenberg.wasm rollup_proofs_tests' returned a non-zero code: 1