Giter Site home page Giter Site logo

Comments (6)

yiwu-arbug avatar yiwu-arbug commented on August 14, 2024

The file int128_builtins.cpp seems to be from libc++. We static link with libc++ in our build file: https://github.com/tikv/rust-rocksdb/blob/master/librocksdb_sys/build.rs#L86. Maybe oss-fuzz or some of its other dependency also link with a different version of libc++, causing conflict? Just a wild guess.

from rust-rocksdb.

mimoo avatar mimoo commented on August 14, 2024

the error seems to indicate this crate no?

Step #4:           /tmp/rustcjXWpoV/liblibrocksdb_sys-eab822076e906c87.rlib(int128_builtins.cpp.o):int128_builtins.cpp:(.text.__muloti4+0x0): first defined here

from rust-rocksdb.

yiwu-arbug avatar yiwu-arbug commented on August 14, 2024

the error seems to indicate this crate no?

Step #4:           /tmp/rustcjXWpoV/liblibrocksdb_sys-eab822076e906c87.rlib(int128_builtins.cpp.o):int128_builtins.cpp:(.text.__muloti4+0x0): first defined here

See my comment above.

from rust-rocksdb.

mimoo avatar mimoo commented on August 14, 2024

mmm, I'm not sure how to investigate these kind of errors. It looks like libfuzzer uses stdc++ as well: https://github.com/rust-fuzz/libfuzzer/blob/master/build.rs#L14

and it is re-defined in the docker env: https://github.com/google/oss-fuzz/blob/daa9523feefad08cf42a1ab18e5d44f7630055aa/projects/libra/build.sh#L26

from rust-rocksdb.

yiwu-arbug avatar yiwu-arbug commented on August 14, 2024

Discuss with @BusyJay, we should provide static link with libc++ as a feature, not by default. The original purpose of static link was to make binaries can run on system without installing libc++ dylib.

from rust-rocksdb.

yiwu-arbug avatar yiwu-arbug commented on August 14, 2024

@mimoo Feel free to submit a PR for fix.

from rust-rocksdb.

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.