Closed Muqi-Zou closed 3 years ago
same question in ubuntu20.04... not sure what's going on
Apologies for not answering this sooner. Have you run this on the latest master
branch commit by any chance? Please git pull
.
I am able to run it successfully (from the minimal ubuntu:20.04
Docker image) with the following steps
# These probably aren't all _essential_ but this is what we use in CI
$ sudo apt-get install g++-multilib libzstd-dev python3.8 python3-pip \
python3-setuptools python-setuptools \
build-essential g++ gcc clang-10 lld-10 ninja-build \
curl unzip tar git zip python python3 pkg-config \
rpm cmake
$ git clone https://github.com/lifting-bits/remill
# This shouldn't be _required_ but might help reduce variables to figure out what's wrong
$ export CC=$(which clang-10) && export CXX=$(which clang++-10)
$ ./remill/scripts/build.sh --llvm-version 10
You can test your installation with the following:
$ cd remill-build
$ cmake --build . --target test_dependencies
$ env CTEST_OUTPUT_ON_FAILURE=1 cmake --build . --target test
If the above doesn't work for you, then I'm afraid there's something else in your environment that is causing issues.
That being said, if you're willing to compile LLVM (and all other dependencies) from source, try following the directions here (https://github.com/trailofbits/cxx-common#just-release-builds) to build the dependencies. After that script is done running, it should tell you how to use it with CMake by adding -DVCPKG_ROOT=/path/to/vcpkg
when configuring via CMake:
Example:
$ git clone https://github.com/trailofbits/cxx-common
$ cd cxx-common
$ ./build_dependencies.sh --release llvm-10
# A long while later....
# It will print a message about how to use what you just built with
# -DVCPKG_ROOT=/path/to/vcpkg
# Now, either in the same directory or wherever...
$ git clone https://github.com/lifting-bits/remill
$ mkdir remill-build && cd remill-build
$ cmake -DVCPKG_ROOT=/path/to/vcpkg -DCMAKE_INSTALL_PREFIX=$(pwd)/install ../remill
$ cmake --build . --target test_dependencies
$ env CTEST_OUTPUT_ON_FAILURE=1 cmake --build . --target test
Let me know if you get any errors!
I retried the remill master, it works now! Thanks!
Environment info: Ubuntu 18.04, clang-10, llvm-10.
I have following errors, when running "./remill/scripts/build.sh --llvm-version 10"
I do not think this error is related with my environment, since I also have the old repo with following version:
And it compiles... current version is: