Git Product home page Git Product logo

Comments (3)

paomian avatar paomian commented on August 26, 2024 1

Yes my gcc version is 12.
But this error about bounds is confused.

gcc --version
gcc (GCC) 12.1.1 20220507 (Red Hat 12.1.1-1)
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

from horaedb.

paomian avatar paomian commented on August 26, 2024

have the same error
CPU Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz
Fedora Linux 36 (Server Edition)
run cargo build

gmake: warning: -j4 forced in submake: resetting jobserver mode.
  In file included from /usr/include/c++/12/atomic:41,
                   from /home/paomian/.cargo/git/checkouts/rust-rocksdb-a9a28e74c6ead8ef/7737841/librocksdb_sys/libtitan_sys/../rocksdb/db/db_impl/db_impl.h:11,
                   from /home/paomian/.cargo/git/checkouts/rust-rocksdb-a9a28e74c6ead8ef/7737841/librocksdb_sys/libtitan_sys/titan/src/db_impl.h:3,
                   from /home/paomian/.cargo/git/checkouts/rust-rocksdb-a9a28e74c6ead8ef/7737841/librocksdb_sys/libtitan_sys/titan/src/db_impl.cc:1:
  In member function ‘std::__atomic_base<_IntTp>::__int_type std::__atomic_base<_IntTp>::fetch_add(__int_type, std::memory_order) [with _ITp = long unsigned int]’,
      inlined from ‘void rocksdb::StatisticsImpl<TICKER_MAX, HISTOGRAM_MAX>::recordTick(uint32_t, uint64_t) [with unsigned int TICKER_MAX = 145; unsigned int HISTOGRAM_MAX = 49]’ at /home/paomian/.cargo/git/checkouts/rust-rocksdb-a9a28e74c6ead8ef/7737841/librocksdb_sys/libtitan_sys/../rocksdb/monitoring/statistics_impl.h:205:59,
      inlined from ‘void rocksdb::RecordTick(Statistics*, uint32_t, uint64_t)’ at /home/paomian/.cargo/git/checkouts/rust-rocksdb-a9a28e74c6ead8ef/7737841/librocksdb_sys/libtitan_sys/../rocksdb/monitoring/statistics.h:33:27,
      inlined from ‘virtual rocksdb::Status rocksdb::titandb::TitanDBImpl::FileManager::BatchFinishFiles(uint32_t, const std::vector<std::pair<std::shared_ptr<rocksdb::titandb::BlobFileMeta>, std::unique_ptr<rocksdb::titandb::BlobFileHandle> > >&)’ at /home/paomian/.cargo/git/checkouts/rust-rocksdb-a9a28e74c6ead8ef/7737841/librocksdb_sys/libtitan_sys/titan/src/db_impl.cc:67:17:
  /usr/include/c++/12/bits/atomic_base.h:618:35: error: array subscript 153 is above array bounds of ‘std::atomic_uint_fast64_t [145]’ {aka ‘std::atomic<long unsigned int> [145]’} [-Werror=array-bounds]
    618 |       { return __atomic_fetch_add(&_M_i, __i, int(__m)); }

from horaedb.

waynexia avatar waynexia commented on August 26, 2024

Thanks for your reporting @paomian. I think this is caused by GCC 12, is this your toolchain? (by gcc --version)

I can compile rust-rocksdb in my env after tikv/rust-rocksdb#699. But we cannot bump rocksdb for now until #25 is merged (otherwise zstd-sys will conflict). I'll try it once #25 is done.

from horaedb.

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.