Git Product home page Git Product logo

Comments (13)

jonathanmetzman avatar jonathanmetzman commented on April 30, 2024

Apt should be fine in most cases. I'm not sure what's going on here. Let me take a look.

from clusterfuzzlite.

jonathanmetzman avatar jonathanmetzman commented on April 30, 2024

Hmmm...I wasn't able to reproduce this after running CFLite locally on your repo. See the logs. Did you fix the issue?
output.txt

from clusterfuzzlite.

jonathanmetzman avatar jonathanmetzman commented on April 30, 2024

This was the command I used to run CFLite locally btw:
docker run -it -v /var/run/docker.sock:/var/run/docker.sock -e PROJECT_SRC_PATH=/tmp/workspace/cflite-example -e BUILD_INTEGRATION_PATH=.clusterfuzzlite -e REPOSITORY=cflite-example -e FILESTORE=no_filestore -e WORKSPACE=/tmp/workspace -e CFL_PLATFORM=standalone -v /tmp/workspace:/tmp/workspace --entrypoint python3 gcr.io/oss-fuzz-base/clusterfuzzlite-run-fuzzers:v1 /opt/oss-fuzz/infra/cifuzz/cifuzz_combined_entrypoint.py

You need to copy cflite-example into /tmp/workspace/cflite-example for this to work.

from clusterfuzzlite.

securitykernel avatar securitykernel commented on April 30, 2024

No, I did not fix it. And I tried your command to run locally, it gives me the same linker errors I posted initially. Are you on cflite-example's linker-errors branch and not on main?

from clusterfuzzlite.

jonathanmetzman avatar jonathanmetzman commented on April 30, 2024

Oh sorry I was on main. Lemme try again.

from clusterfuzzlite.

jonathanmetzman avatar jonathanmetzman commented on April 30, 2024

You mean link-boost branch right?

from clusterfuzzlite.

securitykernel avatar securitykernel commented on April 30, 2024

Yes.

from clusterfuzzlite.

securitykernel avatar securitykernel commented on April 30, 2024

Any news on this? Were you able to reproduce the issue?

from clusterfuzzlite.

jonathanmetzman avatar jonathanmetzman commented on April 30, 2024

I'll probably have to take a look at this next week. But I can try now.

from clusterfuzzlite.

jonathanmetzman avatar jonathanmetzman commented on April 30, 2024

I was able to reproduce this.
I'm not a boost expert, but maybe there's something about boost that makes it required to build from source to use in ClusterFuzzLite?
In oss-fuzz it seems like most boost users do this:
https://github.com/google/oss-fuzz/blob/17129f108d5a7f2a9ff8b13e58d5540cf9bc2fc9/projects/thrift/Dockerfile#L32
https://github.com/google/oss-fuzz/blob/b3630abd46e4a4b68b407a201b68388aa6c1c785/projects/solidity/Dockerfile#L30

This comment is especially revealing I think boost needs to be built from source to use with libc++, the apt versions must use libstdc++

I would ask this question in oss-fuzz btw, the build setup is the same and are many helpful oss-fuzz users some of whom might be more familiar with this problem than me.

from clusterfuzzlite.

jonathanmetzman avatar jonathanmetzman commented on April 30, 2024

to be clear though, I think boost is an exception. I feel like many libraries can be installed via apt. I would guess most are in oss-fuzz

from clusterfuzzlite.

securitykernel avatar securitykernel commented on April 30, 2024

Ok thanks I'll try that.

from clusterfuzzlite.

securitykernel avatar securitykernel commented on April 30, 2024

Unsurprisingly this worked, thanks. So basically if you have problems getting a dependency to work, check how users of OSS-Fuzz do it. Could be useful mentioning in the ClusterFuzzLite docs.

from clusterfuzzlite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.