diff --git a/.circleci/docker/Dockerfile.clang.ubuntu1904 b/.circleci/docker/Dockerfile.clang.ubuntu1904 index 4fb9b1132..2362d8768 100644 --- a/.circleci/docker/Dockerfile.clang.ubuntu1904 +++ b/.circleci/docker/Dockerfile.clang.ubuntu1904 @@ -89,40 +89,21 @@ RUN set -ex; \ ninja install/strip; \ rm -rf /usr/src/libprotobuf-mutator -# ETHASH -RUN set -ex; \ - cd /usr/src; \ - git clone --branch="v0.4.4" https://github.com/chfast/ethash.git; \ - cd ethash; \ - mkdir build; \ - cd build; \ - cmake .. -G Ninja -DBUILD_SHARED_LIBS=ON -DETHASH_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX="/usr"; \ - ninja; \ - ninja install/strip; \ - rm -rf /usr/src/ethash - -# INTX -RUN set -ex; \ - cd /usr/src; \ - git clone --branch="v0.2.0" https://github.com/chfast/intx.git; \ - cd intx; \ - mkdir build; \ - cd build; \ - cmake .. -G Ninja -DBUILD_SHARED_LIBS=ON -DINTX_TESTING=OFF -DINTX_BENCHMARKING=OFF -DCMAKE_INSTALL_PREFIX="/usr"; \ - ninja; \ - ninja install/strip; \ - rm -rf /usr/src/intx; - # EVMONE RUN set -ex; \ cd /usr/src; \ - git clone --branch="v0.1.0" --recurse-submodules https://github.com/ethereum/evmone.git; \ + git clone --branch="v0.2.0" --recurse-submodules https://github.com/ethereum/evmone.git; \ cd evmone; \ mkdir build; \ cd build; \ + # isoltest links against the evmone shared library cmake -G Ninja -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX="/usr" ..; \ ninja; \ ninja install/strip; \ + # abiv2_proto_ossfuzz links against the evmone standalone static library + cmake -G Ninja -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX="/usr" ..; \ + ninja; \ + ninja install/strip; \ rm -rf /usr/src/evmone FROM base diff --git a/.circleci/docker/Dockerfile.ubuntu1804 b/.circleci/docker/Dockerfile.ubuntu1804 index 0242661e7..d6b0c8142 100644 --- a/.circleci/docker/Dockerfile.ubuntu1804 +++ b/.circleci/docker/Dockerfile.ubuntu1804 @@ -74,34 +74,10 @@ RUN set -ex; \ ar r /usr/lib/libFuzzingEngine.a *.o; \ rm -rf /var/lib/libfuzzer -# ETHASH -RUN set -ex; \ - cd /usr/src; \ - git clone --branch="v0.4.4" https://github.com/chfast/ethash.git; \ - cd ethash; \ - mkdir build; \ - cd build; \ - cmake .. -G Ninja -DBUILD_SHARED_LIBS=OFF -DETHASH_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX="/usr"; \ - ninja; \ - ninja install/strip; \ - rm -rf /usr/src/ethash - -# INTX -RUN set -ex; \ - cd /usr/src; \ - git clone --branch="v0.2.0" https://github.com/chfast/intx.git; \ - cd intx; \ - mkdir build; \ - cd build; \ - cmake .. -G Ninja -DBUILD_SHARED_LIBS=OFF -DINTX_TESTING=OFF -DINTX_BENCHMARKING=OFF -DCMAKE_INSTALL_PREFIX="/usr"; \ - ninja; \ - ninja install/strip; \ - rm -rf /usr/src/intx; - # EVMONE -ARG EVMONE_HASH="f10d12c190f55a9d373e78b2dc0074d35d752c02cb536bb6fe754fb3719dd69e" +ARG EVMONE_HASH="81488656a53ae1bbf186d33fc69a4f5c59d3d7419b1ba1b4832a0d409b1a33bf" ARG EVMONE_MAJOR="0" -ARG EVMONE_MINOR="1" +ARG EVMONE_MINOR="2" ARG EVMONE_MICRO="0" RUN set -ex; \ EVMONE_VERSION="$EVMONE_MAJOR.$EVMONE_MINOR.$EVMONE_MICRO"; \ diff --git a/.circleci/docker/Dockerfile.ubuntu1904 b/.circleci/docker/Dockerfile.ubuntu1904 index 504e13d1f..ecd09edf9 100644 --- a/.circleci/docker/Dockerfile.ubuntu1904 +++ b/.circleci/docker/Dockerfile.ubuntu1904 @@ -74,37 +74,14 @@ RUN set -ex; \ ar r /usr/lib/libFuzzingEngine.a *.o; \ rm -rf /var/lib/libfuzzer -# ETHASH -RUN set -ex; \ - cd /usr/src; \ - git clone --branch="v0.4.4" https://github.com/chfast/ethash.git; \ - cd ethash; \ - mkdir build; \ - cd build; \ - cmake .. -G Ninja -DBUILD_SHARED_LIBS=OFF -DETHASH_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX="/usr"; \ - ninja; \ - ninja install/strip; \ - rm -rf /usr/src/ethash - -# INTX -RUN set -ex; \ - cd /usr/src; \ - git clone --branch="v0.2.0" https://github.com/chfast/intx.git; \ - cd intx; \ - mkdir build; \ - cd build; \ - cmake .. -G Ninja -DBUILD_SHARED_LIBS=OFF -DINTX_TESTING=OFF -DINTX_BENCHMARKING=OFF -DCMAKE_INSTALL_PREFIX="/usr"; \ - ninja; \ - ninja install/strip; \ - rm -rf /usr/src/intx; - # EVMONE RUN set -ex; \ cd /usr/src; \ - git clone --branch="v0.1.0" --recurse-submodules https://github.com/ethereum/evmone.git; \ + git clone --branch="v0.2.0" --recurse-submodules https://github.com/ethereum/evmone.git; \ cd evmone; \ mkdir build; \ cd build; \ + # isoltest links against the evmone shared library cmake -G Ninja -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX="/usr" ..; \ ninja; \ ninja install/strip; \ diff --git a/test/tools/ossfuzz/CMakeLists.txt b/test/tools/ossfuzz/CMakeLists.txt index 2481c63c3..2b22f41dd 100644 --- a/test/tools/ossfuzz/CMakeLists.txt +++ b/test/tools/ossfuzz/CMakeLists.txt @@ -71,7 +71,7 @@ if (OSSFUZZ) /usr/include/libprotobuf-mutator ) target_link_libraries(abiv2_proto_ossfuzz PRIVATE solidity - evmc evmone intx ethash evmc-instructions + evmc evmone-standalone.a protobuf-mutator-libfuzzer.a protobuf-mutator.a protobuf.a