chrsmithdemos / leveldb

Automatically exported from code.google.com/p/leveldb
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

npm install issue. Build error #233

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. npm install -g leveldb

Expected output: Successful installation

Actual output:

npm http GET https://registry.npmjs.org/leveldb
npm http 304 https://registry.npmjs.org/leveldb
npm WARN engine leveldb@0.7.1: wanted: {"node":">=0.6.13 <0.9.0"} (current: 
{"node":"v0.10.26","npm":"1.4.3"})

> leveldb@0.7.1 preinstall /usr/local/lib/node_modules/leveldb
> make build

if [ ! -d ./build ]; then node-gyp configure; fi
node-gyp build
  CXX(target) Release/obj.target/leveldb/deps/leveldb/db/builder.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/db/db_impl.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/db/db_iter.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/db/filename.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/db/dbformat.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/db/log_reader.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/db/log_writer.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/db/memtable.o
../deps/leveldb/db/memtable.cc:104:31: warning: comparison of integers of 
different signs: 'long'
      and 'const size_t' (aka 'const unsigned long') [-Wsign-compare]
  assert((p + val_size) - buf == encoded_len);
         ~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
    (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
                        ^
1 warning generated.
  CXX(target) Release/obj.target/leveldb/deps/leveldb/db/repair.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/db/table_cache.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/db/version_edit.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/db/version_set.o
../deps/leveldb/db/version_set.cc:58:13: warning: unused function 
'IntSetToString'
      [-Wunused-function]
std::string IntSetToString(const std::set<uint64_t>& s) {
            ^
1 warning generated.
  CXX(target) Release/obj.target/leveldb/deps/leveldb/db/write_batch.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/port/port_posix.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/table/block.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/table/filter_block.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/table/block_builder.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/table/format.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/table/iterator.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/table/merger.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/table/table.o
../deps/leveldb/table/table.cc:231:13: warning: unused variable 'handle' 
[-Wunused-variable]
      Slice handle = iiter->value();
            ^
1 warning generated.
  CXX(target) Release/obj.target/leveldb/deps/leveldb/table/table_builder.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/table/two_level_iterator.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/util/arena.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/util/bloom.o
../deps/leveldb/util/bloom.cc:50:26: warning: comparison of integers of 
different signs: 'size_t'
      (aka 'unsigned long') and 'int' [-Wsign-compare]
    for (size_t i = 0; i < n; i++) {
                       ~ ^ ~
1 warning generated.
  CXX(target) Release/obj.target/leveldb/deps/leveldb/util/cache.o
../deps/leveldb/util/cache.cc:119:15: warning: unused variable 'key' 
[-Wunused-variable]
        Slice key = h->key();
              ^
../deps/leveldb/util/cache.cc:163:12: warning: private field 'last_id_' is not 
used
      [-Wunused-private-field]
  uint64_t last_id_;
           ^
2 warnings generated.
  CXX(target) Release/obj.target/leveldb/deps/leveldb/util/coding.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/util/comparator.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/util/crc32c.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/util/env.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/util/env_posix.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/util/filter_policy.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/util/hash.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/util/logging.o
../deps/leveldb/util/logging.cc:67:40: warning: comparison of integers of 
different signs:
      'const int' and 'unsigned long long' [-Wsign-compare]
          (v == kMaxUint64/10 && delta > kMaxUint64%10)) {
                                 ~~~~~ ^ ~~~~~~~~~~~~~
1 warning generated.
  CXX(target) Release/obj.target/leveldb/deps/leveldb/util/options.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/util/status.o
  LIBTOOL-STATIC Release/leveldb.a
libtool: unrecognized option `-static'
libtool: Try `libtool --help' for more information.
make[1]: *** [Release/leveldb.a] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit 
(/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit 
(child_process.js:797:12)
gyp ERR! System Darwin 11.4.2
gyp ERR! command "node" 
"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build"
gyp ERR! cwd /usr/local/lib/node_modules/leveldb
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
make: *** [build] Error 1
npm ERR! leveldb@0.7.1 preinstall: `make build`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the leveldb@0.7.1 preinstall script.
npm ERR! This is most likely a problem with the leveldb package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     make build
npm ERR! You can get their info via:
npm ERR!     npm owner ls leveldb
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 11.4.2
npm ERR! command "node" "/usr/local/bin/npm" "install" "leveldb" "-g"
npm ERR! cwd /Users/sucker/tmp
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/sucker/tmp/npm-debug.log
npm ERR! not ok code 0

leveldb version: v0.10.26. Latest version as of current date ( 18 April 2014 )

Original issue reported on code.google.com by ulrik.so...@gmail.com on 18 Apr 2014 at 1:43

GoogleCodeExporter commented 9 years ago
This is not an issue with LevelDB, but with the Node package that was put 
together.  Please contact my8bird at gmail (found via "npm owner ls leveldb") 
directly about this issue as this is not the bug tracker for LevelDB+Node.

Slightly off-topic:  If you're looking to use LevelDB from Node, checkout the 
leveldown/levelup packages instead of leveldb.  They're well maintained, and 
the owner is responsive.

I'd recommend closing this as a "won't fix".

Original comment by res...@gmail.com on 18 Apr 2014 at 1:47

GoogleCodeExporter commented 9 years ago
>checkout the leveldown/levelup packages instead of leveldb
Thanks

Original comment by ulrik.so...@gmail.com on 18 Apr 2014 at 1:49

GoogleCodeExporter commented 9 years ago
IntSetToString is now gone in 1.17

Original comment by cmumford@chromium.org on 1 May 2014 at 10:57