Skip to content
This repository has been archived by the owner on Aug 23, 2022. It is now read-only.

Unable to build the docker image #783

Open
GreatHaop opened this issue Apr 18, 2022 · 0 comments
Open

Unable to build the docker image #783

GreatHaop opened this issue Apr 18, 2022 · 0 comments

Comments

@GreatHaop
Copy link

I checked out the commit 82c3106 and run the following command

ARCH=amd64; UBUNTU=20.04; LLVM=12; sudo docker build .   -t mcsema:llvm${LLVM}-ubuntu${UBUNTU}-${ARCH}   -f Dockerfile   --build-arg UBUNTU_VERSION=${UBUNTU}   --build-arg LLVM_VERSION=${LLVM}   --build-arg ARCH=${ARCH}

However it won't build

[ 82%] Building CXX object anvill/CMakeFiles/anvill.dir/src/Util.cpp.o
cd /anvill/build/anvill && /usr/local/bin/ccache /usr/bin/clang++-10 -DGFLAGS_DLL_DECLARE_FLAG="" -DGFLAGS_DLL_DEFINE_FLAG="" -DGFLAGS_IS_A_DLL=0 -DGOOGLE_GLOG_DLL_DECL="" -DNDEBUG -DREMILL_BUILD_SEMANTICS_DIR_AARCH32=\"/remill/remill-build/lib/Arch/AArch32/Runtime\" -DREMILL_BUILD_SEMANTICS_DIR_AARCH64=\"/remill/remill-build/lib/Arch/AArch64/Runtime\" -DREMILL_BUILD_SEMANTICS_DIR_SPARC32=\"/remill/remill-build/lib/Arch/SPARC32/Runtime\" -DREMILL_BUILD_SEMANTICS_DIR_SPARC64=\"/remill/remill-build/lib/Arch/SPARC64/Runtime\" -DREMILL_BUILD_SEMANTICS_DIR_X86=\"/remill/remill-build/lib/Arch/X86/Runtime\" -DREMILL_INSTALL_SEMANTICS_DIR=\"/opt/trailofbits/share/remill/12/semantics\" -D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/anvill/anvill/include -I/anvill/libraries/version/include -isystem /opt/trailofbits/include -isystem /tmp/vcpkg_ubuntu-20.04_llvm-12_amd64/installed/x64-linux-rel/include -O2 -g -DNDEBUG -Wall -Wextra -Wno-unused-parameter -Wno-c++98-compat -Wno-unreachable-code-return -Wno-nested-anon-types -Wno-extended-offsetof -Wno-variadic-macros -Wno-return-type-c-linkage -Wno-c99-extensions -Wno-ignored-attributes -Wno-unused-local-typedef -Wno-unknown-pragmas -Wno-unknown-warning-option -fPIC -fno-omit-frame-pointer -fvisibility-inlines-hidden -fno-asynchronous-unwind-tables -Wgnu-alignof-expression -Wno-gnu-anonymous-struct -Wno-gnu-designator -Wno-gnu-zero-variadic-macro-arguments -Wno-gnu-statement-expression -fno-aligned-allocation -gdwarf-2 -g3 -O2 -std=c++17 -MD -MT anvill/CMakeFiles/anvill.dir/src/Util.cpp.o -MF CMakeFiles/anvill.dir/src/Util.cpp.o.d -o CMakeFiles/anvill.dir/src/Util.cpp.o -c /anvill/anvill/src/Util.cpp
/anvill/anvill/src/Optimize.cpp:913:17: error: no member named 'createConstantPropagationPass' in namespace 'llvm'
  fpm.add(llvm::createConstantPropagationPass());
          ~~~~~~^
1 error generated.
make[2]: *** [anvill/CMakeFiles/anvill.dir/build.make:317: anvill/CMakeFiles/anvill.dir/src/Optimize.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/anvill/build'
make[1]: Leaving directory '/anvill/build'
make[1]: *** [CMakeFiles/Makefile2:408: anvill/CMakeFiles/anvill.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
The command '/bin/sh -c cd remill &&     cmake --build remill-build --target install -- -j "$(nproc)" &&     cd ../ &&     git clone --branch master https://github.com/lifting-bits/anvill.git &&     ( cd anvill && git checkout -b release_bc3183b bc3183b ) &&     mkdir -p anvill/build && cd anvill/build &&     cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_PREFIX=${LIBRARIES} -Dremill_DIR=${LIBRARIES}/lib/cmake/remill -DVCPKG_ROOT=/tmp/vcpkg_ubuntu-${UBUNTU_VERSION}_llvm-${LLVM_VERSION}_${ARCH} .. &&     cmake --build . --target install -- -j "$(nproc)"' returned a non-zero code: 2
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant