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

ROCKSDB build error #494

Open
SAhsanAshraf opened this issue Jan 28, 2022 · 5 comments
Open

ROCKSDB build error #494

SAhsanAshraf opened this issue Jan 28, 2022 · 5 comments

Comments

@SAhsanAshraf
Copy link

I am trying to install AIL (https://github.com/ail-project/ail-framework) on Debian 11. However, the installation is stuck at a point and not going forward. The installation is using a shell script with the name :

For Debian and Ubuntu based distributions
./installing_deps.sh

the file is present in the above repo..

For AIL the shell script contains a link of this repo (ARDB) where the issue is arising. I am posting the error here

Done building SNAPPY

Building ROCKSDB
make[2]: Entering directory '/home/ubuntu/ail-framework/ardb/deps/rocksdb-6.8.1'
$DEBUG_LEVEL is 0
GEN util/build_version.cc
$DEBUG_LEVEL is 0
GEN util/build_version.cc
CC db/arena_wrapped_db_iter.o
CC db/builder.o
CC db/column_family.o
CC db/compacted_db_impl.o
CC db/compaction/compaction.o
CC db/compaction/compaction_iterator.o
CC db/compaction/compaction_job.o
CC db/compaction/compaction_picker.o
CC db/compaction/compaction_picker_fifo.o
CC db/compaction/compaction_picker_level.o
CC db/compaction/compaction_picker_universal.o
CC db/convenience.o
CC db/db_filesnapshot.o
CC db/db_impl/db_impl.o

It is not going forawrd...

I have tested on Ubuntu as well as Debian 10 and 11 (unhardened machines). I have tried different solutions but no luck :(

Please help me out..

Thank you in advance

@niknah
Copy link

niknah commented Jan 29, 2022

Might be related...
ail-project/ail-framework#131

ail-framework uses their own fork based on rocksdb-6.8.1. https://github.com/ail-project/ardb

This updated fork uses rocksdb-6.27. Try running this and recompiling...
rm -rf ardb; git clone https://github.com/niknah/ardb.git

@SAhsanAshraf
Copy link
Author

Thank you so much for the suggested fix.

I have tested that but I am having the same issue. Please find below the error:

Done downloading RocksDB

Unpacking ROCKSDB
<<<<< Done unpacking ROCKSDB
Building ROCKSDB
Building ROCKSDB
make[2]: Entering directory '/home/ubuntu/ail-framework/ardb/deps/rocksdb-6.27.3'
$DEBUG_LEVEL is 0
$DEBUG_LEVEL is 0
CC cache/cache.o
CC cache/cache_entry_roles.o
CC cache/cache_reservation_manager.o
CC cache/clock_cache.o
CC cache/lru_cache.o
CC cache/sharded_cache.o
CC db/arena_wrapped_db_iter.o
CC db/blob/blob_fetcher.o
CC db/blob/blob_file_addition.o
CC db/blob/blob_file_builder.o
CC db/blob/blob_file_cache.o
CC db/blob/blob_file_garbage.o
CC db/blob/blob_file_meta.o
CC db/blob/blob_file_reader.o
CC db/blob/blob_garbage_meter.o
CC db/blob/blob_log_format.o
CC db/blob/blob_log_sequential_reader.o
CC db/blob/blob_log_writer.o
CC db/blob/prefetch_buffer_collection.o
CC db/builder.o
CC db/c.o
CC db/column_family.o
CC db/compaction/compaction.o
CC db/compaction/compaction_iterator.o
CC db/compaction/compaction_job.o

@niknah
Copy link

niknah commented Jan 31, 2022

Rocksdb is doing a c++ compile (even though it says CC). It can take 1gig+ of resident memory. Try closing everything before compiling, especially all web browsers. How much memory is there? What's the version of cpp --version? Also, open another terminal and run "top" to see what it's up to, could be just very slow.

@SAhsanAshraf
Copy link
Author

I am installing it on the AWS EC2 instance with Ubuntu version Ubuntu 20.04.3 LTS
Everything is closed. I am just executing the requirement shell script.

Below is the available memory:
Filesystem Size Used Avail Use% Mounted on
/dev/root 7.7G 3.5G 4.3G 45% /

Please find below the snapshot or running processes.
Screenshot 2022-01-31 at 16 47 27

@niknah
Copy link

niknah commented Jan 31, 2022

That's the disk space. Not the memory. The memory is in the lines at the "top" that has been cut off from the screen shot. And "tor" is running. Looks like cc1plus is doing something. You've just got to wait around.

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