facebook / rocksdb

A library that provides an embeddable, persistent key-value store for fast storage.
http://rocksdb.org
GNU General Public License v2.0
28.61k stars 6.32k forks source link

compile error #9661

Closed yuanxu4 closed 2 years ago

yuanxu4 commented 2 years ago

Note: Please use Issues only for bug reports. For questions, discussions, feature requests, etc. post to dev group: https://groups.google.com/forum/#!forum/rocksdb or https://www.facebook.com/groups/rocksdb.dev

Actual behavior

sudo DEBUG_LEVEL=0 ROCKSDB_PLUGINS=zenfs make -j48 db_bench install $DEBUG_LEVEL is 0 $DEBUG_LEVEL is 0 CC tools/db_bench.o CC tools/db_bench_tool.o CC tools/simulated_hybrid_file_system.o CC test_util/testutil.o CC cache/cache.o CC cache/cache_entry_roles.o CC cache/cache_key.o CC cache/cache_reservation_manager.o CC cache/clock_cache.o CC cache/lru_cache.o CC cache/lru_secondary_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 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/compaction/sst_partitioner.o CC db/convenience.o CC db/db_filesnapshot.o CC db/db_impl/compacted_db_impl.o CC db/db_impl/db_impl.o CC db/db_impl/db_impl_compaction_flush.o CC db/db_impl/db_impl_debug.o CC db/db_impl/db_impl_experimental.o CC db/db_impl/db_impl_files.o CC db/db_impl/db_impl_open.o CC db/db_impl/db_impl_readonly.o CC db/db_impl/db_impl_secondary.o CC db/db_impl/db_impl_write.o CC db/db_info_dumper.o CC db/db_iter.o CC db/dbformat.o CC db/error_handler.o CC db/event_helpers.o CC db/experimental.o CC db/external_sst_file_ingestion_job.o CC db/file_indexer.o CC db/flush_job.o CC db/flush_scheduler.o CC db/forward_iterator.o g++: fatal error: Killed signal terminated program cc1plus compilation terminated. make: *** [Makefile:2462: db/db_impl/compacted_db_impl.o] Error 1

ajkr commented 2 years ago

Sometimes we see that when running out of memory. Have you tried with smaller values for -j?

yuanxu4 commented 2 years ago

I delete the -j 48, and it works.