Skip to content

Instantly share code, notes, and snippets.

@hanxue
Created March 20, 2014 08:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hanxue/9659783 to your computer and use it in GitHub Desktop.
Save hanxue/9659783 to your computer and use it in GitHub Desktop.
Node Protobuf 2.0.5 build error log
npm http GET https://registry.npmjs.org/ascli
> protobuf@0.8.7 install /usr/local/lib/node_modules/spotify-web/node_modules/protobuf
> node-gyp rebuild
protobuf/protobuf_full_do_not_use.target.mk:158: warning: overriding commands for target `Debug/protobuf_full_do_not_use.a'
protobuf/protobuf_full_do_not_use.host.mk:172: warning: ignoring old commands for target `Debug/protobuf_full_do_not_use.a'
protobuf/protobuf_lite.target.mk:152: warning: overriding commands for target `Debug/protobuf_lite.a'
protobuf/protobuf_lite.host.mk:166: warning: ignoring old commands for target `Debug/protobuf_lite.a'
CXX(host) Debug/obj.host/protobuf_full_do_not_use/protobuf/src/google/protobuf/stubs/strutil.o
CXX(host) Debug/obj.host/protobuf_full_do_not_use/protobuf/src/google/protobuf/stubs/substitute.o
../protobuf/src/google/protobuf/stubs/substitute.cc:129:3: warning: comparison
of integers of different signs: 'long' and 'size_type'
(aka 'unsigned long') [-Wsign-compare]
GOOGLE_DCHECK_EQ(target - output->data(), output->size());
^ ~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
../protobuf/src/google/protobuf/stubs/common.h:732:26: note: expanded from macro
'GOOGLE_DCHECK_EQ'
#define GOOGLE_DCHECK_EQ GOOGLE_CHECK_EQ
^
../protobuf/src/google/protobuf/stubs/common.h:708:48: note: expanded from macro
'GOOGLE_CHECK_EQ'
#define GOOGLE_CHECK_EQ(A, B) GOOGLE_CHECK((A) == (B))
^
../protobuf/src/google/protobuf/stubs/common.h:707:26: note: expanded from macro
'GOOGLE_CHECK'
GOOGLE_LOG_IF(FATAL, !(EXPRESSION)) << "CHECK failed: " #EXPRESSION ": "
^
../protobuf/src/google/protobuf/stubs/common.h:704:5: note: expanded from macro
'GOOGLE_LOG_IF'
!(CONDITION) ? (void)0 : GOOGLE_LOG(LEVEL)
^
1 warning generated.
CXX(host) Debug/obj.host/protobuf_full_do_not_use/protobuf/src/google/protobuf/stubs/structurally_valid.o
CXX(host) Debug/obj.host/protobuf_full_do_not_use/protobuf/src/google/protobuf/descriptor.o
../protobuf/src/google/protobuf/descriptor.cc:134:21: warning: comparison of
integers of different signs: 'int' and 'size_type' (aka 'unsigned long')
[-Wsign-compare]
for (int i = 0; i < input.size(); i++) {
~ ^ ~~~~~~~~~~~~
../protobuf/src/google/protobuf/descriptor.cc:492:21: warning: comparison of
integers of different signs: 'int' and 'size_type' (aka 'unsigned long')
[-Wsign-compare]
for (int i = 0; i < allocations_.size(); i++) {
~ ^ ~~~~~~~~~~~~~~~~~~~
../protobuf/src/google/protobuf/descriptor.cc:516:21: warning: comparison of
integers of different signs: 'int' and 'size_type' (aka 'unsigned long')
[-Wsign-compare]
for (int i = 0; i < symbols_after_checkpoint_.size(); i++) {
~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../protobuf/src/google/protobuf/descriptor.cc:519:21: warning: comparison of
integers of different signs: 'int' and 'size_type' (aka 'unsigned long')
[-Wsign-compare]
for (int i = 0; i < files_after_checkpoint_.size(); i++) {
~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../protobuf/src/google/protobuf/descriptor.cc:522:21: warning: comparison of
integers of different signs: 'int' and 'size_type' (aka 'unsigned long')
[-Wsign-compare]
for (int i = 0; i < extensions_after_checkpoint_.size(); i++) {
~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../protobuf/src/google/protobuf/descriptor.cc:536:50: warning: comparison of
integers of different signs: 'int' and 'size_type' (aka 'unsigned long')
[-Wsign-compare]
for (int i = allocations_before_checkpoint_; i < allocations_.size(); i++) {
~ ^ ~~~~~~~~~~~~~~~~~~~
../protobuf/src/google/protobuf/descriptor.cc:989:25: warning: comparison of
integers of different signs: 'int' and 'size_type' (aka 'unsigned long')
[-Wsign-compare]
for (int i = 0; i < numbers.size(); ++i) {
~ ^ ~~~~~~~~~~~~~~
../protobuf/src/google/protobuf/descriptor.cc:1498:21: warning: comparison of
integers of different signs: 'int' and 'size_type' (aka 'unsigned long')
[-Wsign-compare]
for (int i = 0; i < fields.size(); i++) {
~ ^ ~~~~~~~~~~~~~
../protobuf/src/google/protobuf/descriptor.cc:1534:23: warning: comparison of
integers of different signs: 'int' and 'size_type' (aka 'unsigned long')
[-Wsign-compare]
for (int i = 0; i < all_options.size(); i++) {
~ ^ ~~~~~~~~~~~~~~~~~~
../protobuf/src/google/protobuf/descriptor.cc:2361:20: warning: comparison of
integers of different signs: 'int' and 'const size_type' (aka
'const unsigned long') [-Wsign-compare]
if (name_dot_pos == string::npos) {
~~~~~~~~~~~~ ^ ~~~~~~~~~~~~
../protobuf/src/google/protobuf/descriptor.cc:2607:23: warning: comparison of
integers of different signs: 'int' and 'size_type' (aka 'unsigned long')
[-Wsign-compare]
for (int i = 0; i < name.size(); i++) {
~ ^ ~~~~~~~~~~~
../protobuf/src/google/protobuf/descriptor.cc:2623:21: warning: comparison of
integers of different signs: 'int' and 'size_type' (aka 'unsigned long')
[-Wsign-compare]
for (int i = 0; i < name.size(); i++) {
~ ^ ~~~~~~~~~~~
../protobuf/src/google/protobuf/descriptor.cc:2728:21: warning: comparison of
integers of different signs: 'int' and 'size_type' (aka 'unsigned long')
[-Wsign-compare]
for (int i = 0; i < tables_->pending_files_.size(); i++) {
~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../protobuf/src/google/protobuf/descriptor.cc:2731:16: warning: comparison of
integers of different signs: 'int' and 'size_type' (aka 'unsigned long')
[-Wsign-compare]
for (; i < tables_->pending_files_.size(); i++) {
~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
14 warnings generated.
CXX(host) Debug/obj.host/protobuf_full_do_not_use/protobuf/src/google/protobuf/descriptor.pb.o
CXX(host) Debug/obj.host/protobuf_full_do_not_use/protobuf/src/google/protobuf/descriptor_database.o
../protobuf/src/google/protobuf/descriptor_database.cc:303:21: warning:
comparison of integers of different signs: 'int' and 'size_type'
(aka 'unsigned long') [-Wsign-compare]
for (int i = 0; i < files_to_delete_.size(); i++) {
~ ^ ~~~~~~~~~~~~~~~~~~~~~~~
../protobuf/src/google/protobuf/descriptor_database.cc:441:21: warning:
comparison of integers of different signs: 'int' and 'size_type'
(aka 'unsigned long') [-Wsign-compare]
for (int i = 0; i < extensions.size(); ++i) {
~ ^ ~~~~~~~~~~~~~~~~~
../protobuf/src/google/protobuf/descriptor_database.cc:464:21: warning:
comparison of integers of different signs: 'int' and 'size_type'
(aka 'unsigned long') [-Wsign-compare]
for (int i = 0; i < sources_.size(); i++) {
~ ^ ~~~~~~~~~~~~~~~
../protobuf/src/google/protobuf/descriptor_database.cc:475:21: warning:
comparison of integers of different signs: 'int' and 'size_type'
(aka 'unsigned long') [-Wsign-compare]
for (int i = 0; i < sources_.size(); i++) {
~ ^ ~~~~~~~~~~~~~~~
../protobuf/src/google/protobuf/descriptor_database.cc:498:21: warning:
comparison of integers of different signs: 'int' and 'size_type'
(aka 'unsigned long') [-Wsign-compare]
for (int i = 0; i < sources_.size(); i++) {
~ ^ ~~~~~~~~~~~~~~~
../protobuf/src/google/protobuf/descriptor_database.cc:525:21: warning:
comparison of integers of different signs: 'int' and 'size_type'
(aka 'unsigned long') [-Wsign-compare]
for (int i = 0; i < sources_.size(); i++) {
~ ^ ~~~~~~~~~~~~~~~
../protobuf/src/google/protobuf/descriptor_database.cc:237:21: warning:
comparison of integers of different signs: 'int' and 'size_type'
(aka 'unsigned long') [-Wsign-compare]
for (int i = 0; i < name.size(); i++) {
~ ^ ~~~~~~~~~~~
../protobuf/src/google/protobuf/descriptor_database.cc:93:8: note: in
instantiation of member function
'google::protobuf::SimpleDescriptorDatabase::DescriptorIndex<const
google::protobuf::FileDescriptorProto *>::ValidateSymbolName' requested
here
if (!ValidateSymbolName(name)) {
^
../protobuf/src/google/protobuf/descriptor_database.cc:68:10: note: in
instantiation of member function
'google::protobuf::SimpleDescriptorDatabase::DescriptorIndex<const
google::protobuf::FileDescriptorProto *>::AddSymbol' requested here
if (!AddSymbol(path + file.message_type(i).name(), value)) return false;
^
../protobuf/src/google/protobuf/descriptor_database.cc:264:17: note: in
instantiation of member function
'google::protobuf::SimpleDescriptorDatabase::DescriptorIndex<const
google::protobuf::FileDescriptorProto *>::AddFile' requested here
return index_.AddFile(*file, file);
^
../protobuf/src/google/protobuf/descriptor_database.cc:237:21: warning:
comparison of integers of different signs: 'int' and 'size_type'
(aka 'unsigned long') [-Wsign-compare]
for (int i = 0; i < name.size(); i++) {
~ ^ ~~~~~~~~~~~
../protobuf/src/google/protobuf/descriptor_database.cc:93:8: note: in
instantiation of member function
'google::protobuf::SimpleDescriptorDatabase::DescriptorIndex<std::pair<const
void *, int> >::ValidateSymbolName' requested here
if (!ValidateSymbolName(name)) {
^
../protobuf/src/google/protobuf/descriptor_database.cc:68:10: note: in
instantiation of member function
'google::protobuf::SimpleDescriptorDatabase::DescriptorIndex<std::pair<const
void *, int> >::AddSymbol' requested here
if (!AddSymbol(path + file.message_type(i).name(), value)) return false;
^
../protobuf/src/google/protobuf/descriptor_database.cc:312:19: note: in
instantiation of member function
'google::protobuf::SimpleDescriptorDatabase::DescriptorIndex<std::pair<const
void *, int> >::AddFile' requested here
return index_.AddFile(file, make_pair(encoded_file_descriptor, size));
^
8 warnings generated.
CXX(host) Debug/obj.host/protobuf_full_do_not_use/protobuf/src/google/protobuf/dynamic_message.o
CXX(host) Debug/obj.host/protobuf_full_do_not_use/protobuf/src/google/protobuf/extension_set_heavy.o
CXX(host) Debug/obj.host/protobuf_full_do_not_use/protobuf/src/google/protobuf/generated_message_reflection.o
CXX(host) Debug/obj.host/protobuf_full_do_not_use/protobuf/src/google/protobuf/message.o
CXX(host) Debug/obj.host/protobuf_full_do_not_use/protobuf/src/google/protobuf/reflection_ops.o
../protobuf/src/google/protobuf/reflection_ops.cc:62:21: warning: comparison of
integers of different signs: 'int' and 'size_type' (aka 'unsigned long')
[-Wsign-compare]
for (int i = 0; i < fields.size(); i++) {
~ ^ ~~~~~~~~~~~~~
../protobuf/src/google/protobuf/reflection_ops.cc:128:21: warning: comparison of
integers of different signs: 'int' and 'size_type' (aka 'unsigned long')
[-Wsign-compare]
for (int i = 0; i < fields.size(); i++) {
~ ^ ~~~~~~~~~~~~~
../protobuf/src/google/protobuf/reflection_ops.cc:151:21: warning: comparison of
integers of different signs: 'int' and 'size_type' (aka 'unsigned long')
[-Wsign-compare]
for (int i = 0; i < fields.size(); i++) {
~ ^ ~~~~~~~~~~~~~
../protobuf/src/google/protobuf/reflection_ops.cc:181:21: warning: comparison of
integers of different signs: 'int' and 'size_type' (aka 'unsigned long')
[-Wsign-compare]
for (int i = 0; i < fields.size(); i++) {
~ ^ ~~~~~~~~~~~~~
../protobuf/src/google/protobuf/reflection_ops.cc:236:21: warning: comparison of
integers of different signs: 'int' and 'size_type' (aka 'unsigned long')
[-Wsign-compare]
for (int i = 0; i < fields.size(); i++) {
~ ^ ~~~~~~~~~~~~~
5 warnings generated.
CXX(host) Debug/obj.host/protobuf_full_do_not_use/protobuf/src/google/protobuf/service.o
CXX(host) Debug/obj.host/protobuf_full_do_not_use/protobuf/src/google/protobuf/text_format.o
../protobuf/src/google/protobuf/text_format.cc:718:24: warning: comparison of
integers of different signs: 'size_type' (aka 'unsigned long') and 'int'
[-Wsign-compare]
indent_.size() < initial_indent_level_ * 2) {
~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
../protobuf/src/google/protobuf/text_format.cc:946:21: warning: comparison of
integers of different signs: 'int' and 'size_type' (aka 'unsigned long')
[-Wsign-compare]
for (int i = 0; i < fields.size(); i++) {
~ ^ ~~~~~~~~~~~~~
2 warnings generated.
CXX(host) Debug/obj.host/protobuf_full_do_not_use/protobuf/src/google/protobuf/wire_format.o
../protobuf/src/google/protobuf/wire_format.cc:719:21: warning: comparison of
integers of different signs: 'int' and 'size_type' (aka 'unsigned long')
[-Wsign-compare]
for (int i = 0; i < fields.size(); i++) {
~ ^ ~~~~~~~~~~~~~
../protobuf/src/google/protobuf/wire_format.cc:889:21: warning: comparison of
integers of different signs: 'int' and 'size_type' (aka 'unsigned long')
[-Wsign-compare]
for (int i = 0; i < fields.size(); i++) {
~ ^ ~~~~~~~~~~~~~
../protobuf/src/google/protobuf/wire_format.cc:60:12: warning: unused function
'GetEnumNumber' [-Wunused-function]
inline int GetEnumNumber(const EnumValueDescriptor* descriptor) {
^
3 warnings generated.
CXX(host) Debug/obj.host/protobuf_full_do_not_use/protobuf/src/google/protobuf/io/printer.o
CXX(host) Debug/obj.host/protobuf_full_do_not_use/protobuf/src/google/protobuf/io/tokenizer.o
../protobuf/src/google/protobuf/io/tokenizer.cc:593:15: warning: comparison of
integers of different signs: 'int' and 'uint64' (aka 'unsigned long long')
[-Wsign-compare]
if (digit > max_value || result > (max_value - digit) / base) {
~~~~~ ^ ~~~~~~~~~
../protobuf/src/google/protobuf/io/tokenizer.cc:623:37: warning: comparison of
integers of different signs: 'long' and 'size_type' (aka 'unsigned long')
[-Wsign-compare]
GOOGLE_LOG_IF(DFATAL, end - start != text.size() || *start == '-')
~~~~~~~~~~~ ^ ~~~~~~~~~~~
../protobuf/src/google/protobuf/stubs/common.h:704:5: note: expanded from macro
'GOOGLE_LOG_IF'
!(CONDITION) ? (void)0 : GOOGLE_LOG(LEVEL)
^
2 warnings generated.
CXX(host) Debug/obj.host/protobuf_full_do_not_use/protobuf/src/google/protobuf/io/zero_copy_stream_impl.o
LIBTOOL-STATIC Debug/obj.host/protobuf/protobuf_full_do_not_use.a
libtool: unrecognized option `-static'
libtool: Try `libtool --help' for more information.
make: *** [Debug/obj.host/protobuf/protobuf_full_do_not_use.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:101:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:827:12)
gyp ERR! System Darwin 13.0.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/spotify-web/node_modules/protobuf
gyp ERR! node -v v0.11.9
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment