Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker build fails #1518

Open
mkravchik opened this issue May 7, 2024 · 3 comments
Open

Docker build fails #1518

mkravchik opened this issue May 7, 2024 · 3 comments

Comments

@mkravchik
Copy link

I tried to follow the instructions for a local build using Docker and it fails:
docker run --rm -it -v .:/src fuzz-introspector:Dockerfile

  • BASE=/src
  • BUILD_BASE=/src/build
  • [ -d /src/build ]
  • echo Reusing set up (LLVM Source). Updating the LLVM plugin
    Reusing set up (LLVM Source). Updating the LLVM plugin
  • rm -rf /src/build/llvm-project/llvm/include/llvm/Transforms/FuzzIntrospector
  • rm -rf /src/build/llvm-project/llvm/lib/Transforms/FuzzIntrospector
  • cp -rf /src/frontends/llvm/include/llvm/Transforms/FuzzIntrospector/ /src/build/llvm-project/llvm/include/llvm/Transforms/FuzzIntrospector
  • cp -rf /src/frontends/llvm/lib/Transforms/FuzzIntrospector /src/build/llvm-project/llvm/lib/Transforms/FuzzIntrospector
  • cd /src/build/llvm-build
  • cmake -G Unix Makefiles -DLLVM_ENABLE_PROJECTS=clang;compiler-rt -DLLVM_BINUTILS_INCDIR=../binutils/include -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=X86 ../llvm-project/llvm/
    CMake Error at CMakeLists.txt:3 (cmake_minimum_required):
    CMake 3.20.0 or higher is required. You are running version 3.16.3
@DavidKorczynski
Copy link
Contributor

Thank you @mkravchik -- I can see the Dockerfile hasn't been updated for a while, which is likely because it's not really used. I can take a look at it today to get it back working.

However, what you are looking to build it for? It may be easier to either build fuzz introspector by way of the OSS-Fuzz infrastructure or build it locally. Usually during development we build it using the OSS-Fuzz infra: https://github.com/ossf/fuzz-introspector/tree/main/oss_fuzz_integration

@mkravchik
Copy link
Author

I wanted to build it locally, but encountered clashes with my local installations and decided to build inside the docker. I want to use it for non-OSS projects thus need a working local build

@mkravchik
Copy link
Author

mkravchik commented May 7, 2024

I've fixed the Dockerfile locally (by adding cmake 3.20 installation and also installing python requirements). I am able to build FuzzInspector and the simple-example-0. However, the links in the html are broken, specifically those that point under /covreport (there is no such directory). I did not want to open another issue as this might be caused by the Docker which was not updated...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants