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

Can't build inside of openVZ container #67

Closed
paxos opened this issue Feb 2, 2014 · 6 comments
Closed

Can't build inside of openVZ container #67

paxos opened this issue Feb 2, 2014 · 6 comments

Comments

@paxos
Copy link

paxos commented Feb 2, 2014

Hi,
I am running Debian x64 inside a openVZ container with Proxmox 3.x

When i try to build with "make", it fails:
db/compaction_picker.cc: In member function 'virtual rocksdb::Compaction* rocksdb::UniversalCompactionPicker::PickCompaction(rocksdb::Version_)':
db/compaction_picker.cc:556:41: error: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'std::vectorrocksdb::FileMetaData_::size_type {aka unsigned int}' [-Werror=format]
cc1plus: all warnings being treated as errors
make: *** [db/compaction_picker.o] Error 1

If I disable "all warnings being treated as errors" in the makefile, it fails when I build the shared library:

db/db_bench.cc:1529:76: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t {aka unsigned int}' [-Wformat]
db/db_bench.cc:1536:73: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t {aka unsigned int}' [-Wformat]
..
util/options.cc:167:69: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t {aka unsigned int}' [-Wformat]
util/options.cc:170:77: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t {aka unsigned int}' [-Wformat]
util/options.cc:171:69: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t {aka unsigned int}' [-Wformat]
util/options.cc:228:25: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t {aka unsigned int}' [-Wformat]
util/options.cc:248:36: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t {aka unsigned int}' [-Wformat]
..

Any hints?

@paxos
Copy link
Author

paxos commented Feb 2, 2014

Another hint:
db/memtable.cc:155:3: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]

@paxos
Copy link
Author

paxos commented Feb 2, 2014

My fault - installed a 32 bit version by mistake

@paxos paxos closed this as completed Feb 2, 2014
@mdcallag
Copy link
Contributor

mdcallag commented Feb 2, 2014

Does it not build on 32-bit systems? Maybe we claim it doesn't but it might be nice to support that.

@paxos
Copy link
Author

paxos commented Feb 2, 2014

It worked without a problem with Debian x64 - the 32 bit version had problems

@igorcanadi
Copy link
Collaborator

Tnx for the report. I fixed some of your issues here: 5c6ef56

Can you please post the entire compile error log?

@paxos
Copy link
Author

paxos commented Feb 3, 2014

Sure - log is with werror removed from Makefile

https://gist.github.com/paxos/8789697

DorianZheng added a commit to DorianZheng/rocksdb that referenced this issue Jan 29, 2019
201341 pushed a commit to 201341/rocksdb that referenced this issue Mar 25, 2020
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

3 participants