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

Arm64 Build Error #492

Open
vncloudsco opened this issue Oct 29, 2021 · 1 comment
Open

Arm64 Build Error #492

vncloudsco opened this issue Oct 29, 2021 · 1 comment

Comments

@vncloudsco
Copy link

i am installing software on arm and got error with the software. Can someone please tell me how to deal with this?

ar: creating librocksdb.a
make[2]: Leaving directory '/opt/AIL/ardb/deps/rocksdb-6.8.1'
<<<<< Done building ROCKSDB
    CXX db/rocksdb/rocksdb_engine.o
In file included from ./common/channel/channel_service.hpp:35,
                 from ./common/channel/all_includes.hpp:44,
                 from ./context.hpp:34,
                 from ./db/engine.hpp:34,
                 from db/rocksdb/rocksdb_engine.hpp:45,
                 from db/rocksdb/rocksdb_engine.cpp:29:
./common/util/concurrent_queue.hpp: In function 'T ardb::load_consume(const T*)':
./common/util/concurrent_queue.hpp:299:9: error: there are no arguments to '__memory_barrier' that depend on a template parameter, so a declaration of '__memory_barrier' must be available [-fpermissive]
  299 |         __memory_barrier(); // compiler fence
      |         ^~~~~~~~~~~~~~~~
./common/util/concurrent_queue.hpp:299:9: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
./common/util/concurrent_queue.hpp: In function 'void ardb::store_release(T*, T)':
./common/util/concurrent_queue.hpp:308:9: error: there are no arguments to '__memory_barrier' that depend on a template parameter, so a declaration of '__memory_barrier' must be available [-fpermissive]
  308 |         __memory_barrier(); // compiler fence
      |         ^~~~~~~~~~~~~~~~
make[1]: Leaving directory '/opt/AIL/ardb/src'
make[1]: *** [Makefile:187: db/rocksdb/rocksdb_engine.o] Error 1
make: *** [Makefile:4: all] Error 2
The command '/bin/sh -c ./installing_deps.sh' returned a non-zero code: 2
@niknah
Copy link

niknah commented Dec 16, 2021

You can try my fix here...
niknah@7b599f6

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