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

Could NOT compile ckb-bench . #118

Open
yangby-cryptape opened this issue Sep 27, 2024 · 0 comments
Open

Could NOT compile ckb-bench . #118

yangby-cryptape opened this issue Sep 27, 2024 · 0 comments

Comments

@yangby-cryptape
Copy link

yangby-cryptape commented Sep 27, 2024

Issue

Could NOT compile ckb-bench due to rocksdb (lastest Debian Stable and latest Rust toolchain).

Compile error logs.
  cargo:warning=In file included from rocksdb/db/range_del_aggregator.h:16,                                                                                                                                                                                                                                                    
  cargo:warning=                 from rocksdb/db/range_del_aggregator.cc:6:                                                                                                                                                                                                                                                    
  cargo:warning=rocksdb/db/compaction/compaction_iteration_stats.h:23:3: error: ‘uint64_t’ does not name a type                                                                                                                                                                                                                
  cargo:warning=   23 |   uint64_t total_filter_time = 0;                                                                                                                                                                                                                                                                      
  cargo:warning=      |   ^~~~~~~~                                                                                                                                                                                                                                                                                             
  cargo:warning=rocksdb/db/compaction/compaction_iteration_stats.h:9:1: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?                                                                                                                                                             
  cargo:warning=    8 | #include "rocksdb/rocksdb_namespace.h"                                                                                                                                                                                                                                                                 
  cargo:warning=  +++ |+#include <cstdint>                                                                                                                                                                                                                                                                                     
  cargo:warning=    9 |                                                                                                                                                                                                                                                                                                        
  cargo:warning=rocksdb/db/compaction/compaction_iteration_stats.h:28:3: error: ‘uint64_t’ does not name a type                                                                                                                                                                                                                
  cargo:warning=   28 |   uint64_t num_input_records = 0;                                                                                                                                                                                                                                                                      
  cargo:warning=      |   ^~~~~~~~                                                                                                                                                                                                                                                                                             
  cargo:warning=rocksdb/db/compaction/compaction_iteration_stats.h:28:3: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?                                                                                                                                                            
  cargo:warning=rocksdb/db/compaction/compaction_iteration_stats.h:29:3: error: ‘uint64_t’ does not name a type                                                                                                                                                                                                                
  cargo:warning=   29 |   uint64_t num_input_deletion_records = 0;                                                                                                                                                                                                                                                             
  cargo:warning=      |   ^~~~~~~~                                                                                                                                                                                                                                                                                             
  cargo:warning=rocksdb/db/compaction/compaction_iteration_stats.h:29:3: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?                                                                                                                                                            
  cargo:warning=rocksdb/db/compaction/compaction_iteration_stats.h:30:3: error: ‘uint64_t’ does not name a type                                                                                                                                                                                                                
  cargo:warning=   30 |   uint64_t num_input_corrupt_records = 0;                                                                                                                                                                                                                                                              
  cargo:warning=      |   ^~~~~~~~                                                                                                                                                                                                                                                                                             
  cargo:warning=rocksdb/db/compaction/compaction_iteration_stats.h:30:3: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?                                                                                                                                                            
  cargo:warning=rocksdb/db/compaction/compaction_iteration_stats.h:31:3: error: ‘uint64_t’ does not name a type                                                                                                                                                                                                                
  cargo:warning=   31 |   uint64_t total_input_raw_key_bytes = 0;                                                                                                                                                                                                                                                              
  cargo:warning=      |   ^~~~~~~~                                                                                                                                                                                                                                                                                             
  cargo:warning=rocksdb/db/compaction/compaction_iteration_stats.h:31:3: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?                                                                                                                                                            
  cargo:warning=rocksdb/db/compaction/compaction_iteration_stats.h:32:3: error: ‘uint64_t’ does not name a type                                                                                                                                                                                                                
  cargo:warning=   32 |   uint64_t total_input_raw_value_bytes = 0;                                                                                                                                                                                                                                                            
  cargo:warning=      |   ^~~~~~~~                                                                                                                                                                                                                                                                                             
  cargo:warning=rocksdb/db/compaction/compaction_iteration_stats.h:32:3: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?                                                                                                                                                            
  cargo:warning=rocksdb/db/compaction/compaction_iteration_stats.h:35:3: error: ‘uint64_t’ does not name a type                                                                                                                                                                                                                
  cargo:warning=   35 |   uint64_t num_single_del_fallthru = 0;                                                                                                                                                                                                                                                                
  cargo:warning=      |   ^~~~~~~~                                                                                                                                                                                                                                                                                             
  cargo:warning=rocksdb/db/compaction/compaction_iteration_stats.h:35:3: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?                                                                                                                                                            
  cargo:warning=rocksdb/db/compaction/compaction_iteration_stats.h:36:3: error: ‘uint64_t’ does not name a type                                                                                                                                                                                                                
  cargo:warning=   36 |   uint64_t num_single_del_mismatch = 0;                                                                                                                                                                                                                                                                
  cargo:warning=      |   ^~~~~~~~                                                                                                                                                                                                                                                                                             
  cargo:warning=rocksdb/db/compaction/compaction_iteration_stats.h:36:3: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?                                                                                                                                                            
  cargo:warning=rocksdb/db/compaction/compaction_iteration_stats.h:39:3: error: ‘uint64_t’ does not name a type                                                                                                                                                                                                                
  cargo:warning=   39 |   uint64_t num_blobs_read = 0;                                                                                                                                                                                                                                                                         
  cargo:warning=      |   ^~~~~~~~                                                                                                                                                                                                                                                                                             
  cargo:warning=rocksdb/db/compaction/compaction_iteration_stats.h:39:3: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?                                                                                                                                                            
  cargo:warning=rocksdb/db/compaction/compaction_iteration_stats.h:40:3: error: ‘uint64_t’ does not name a type
  cargo:warning=   40 |   uint64_t total_blob_bytes_read = 0;
  cargo:warning=      |   ^~~~~~~~
  cargo:warning=rocksdb/db/compaction/compaction_iteration_stats.h:40:3: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?

Solution

Latest commit in gpBlockchain/ckb-integration-test compiles well.

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

1 participant