Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
suhail@Suhails-MacBook-Pro:~/Desktop/AI/pytorch$ ./scripts/build_android.sh
Bash: GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin18)
Caffe2 path: /Users/suhail/Desktop/AI/pytorch
Using Android NDK at /Users/suhail/Library/Android/sdk/ndk-bundle
Building protoc
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/suhail/Desktop/AI/pytorch/build_host_protoc/build
[1/123] Linking CXX static library libprotobuf.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libprotobuf.a(arenastring.cc.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libprotobuf.a(atomicops_internals_x86_msvc.cc.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libprotobuf.a(io_win32.cc.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libprotobuf.a(error_listener.cc.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libprotobuf.a(arenastring.cc.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libprotobuf.a(atomicops_internals_x86_msvc.cc.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libprotobuf.a(io_win32.cc.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libprotobuf.a(error_listener.cc.o) has no symbols
[3/123] Building CXX object CMakeFiles/libprotobuf-lite.dir/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/io/coded_stream.cc.o
FAILED: CMakeFiles/libprotobuf-lite.dir/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/io/coded_stream.cc.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DGOOGLE_PROTOBUF_CMAKE_BUILD -DHAVE_PTHREAD -DHAVE_ZLIB -I/Users/suhail/anaconda3/include -I. -I/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -std=gnu++11 -MD -MT CMakeFiles/libprotobuf-lite.dir/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/io/coded_stream.cc.o -MF CMakeFiles/libprotobuf-lite.dir/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/io/coded_stream.cc.o.d -o CMakeFiles/libprotobuf-lite.dir/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/io/coded_stream.cc.o -c /Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/io/coded_stream.cc
/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/io/coded_stream.cc:176:24: error: redefinition of 'SetTotalBytesLimit'
void CodedInputStream::SetTotalBytesLimit(
^
/Users/suhail/anaconda3/include/google/protobuf/io/coded_stream.h:390:8: note: previous definition is here
void SetTotalBytesLimit(int total_bytes_limit, int) {
^
/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/io/coded_stream.cc:621:29: error: no type named 'AtomicWord' in namespace 'google::protobuf::internal'
google::protobuf::internal::AtomicWord CodedOutputStream::default_serialization_deterministic_ = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/io/coded_stream.cc:630:5: error: member initializer 'serialization_deterministic_is_overridden_' does not name a non-static data member or base class
serialization_deterministic_is_overridden_(false) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/io/coded_stream.cc:647:5: error: member initializer 'serialization_deterministic_is_overridden_' does not name a non-static data member or base class
serialization_deterministic_is_overridden_(false) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4 errors generated.
[4/123] Building CXX object CMakeFiles/libprotobuf-lite.dir/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/arena.cc.o
FAILED: CMakeFiles/libprotobuf-lite.dir/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/arena.cc.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DGOOGLE_PROTOBUF_CMAKE_BUILD -DHAVE_PTHREAD -DHAVE_ZLIB -I/Users/suhail/anaconda3/include -I. -I/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -std=gnu++11 -MD -MT CMakeFiles/libprotobuf-lite.dir/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/arena.cc.o -MF CMakeFiles/libprotobuf-lite.dir/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/arena.cc.o.d -o CMakeFiles/libprotobuf-lite.dir/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/arena.cc.o -c /Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/arena.cc
/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/arena.cc:51:29: error: no type named 'SequenceNumber' in namespace 'google::protobuf::internal'
google::protobuf::internal::SequenceNumber ArenaImpl::lifecycle_id_generator_;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/arena.cc:68:43: error: no member named 'GetNext' in 'std::__1::atomic<long long>'
lifecycle_id_ = lifecycle_id_generator_.GetNext();
~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/arena.cc:69:31: error: no member named 'NoBarrier_Store' in namespace 'google::protobuf::internal'
google::protobuf::internal::NoBarrier_Store(&hint_, 0);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/arena.cc:70:31: error: no member named 'NoBarrier_Store' in namespace 'google::protobuf::internal'
google::protobuf::internal::NoBarrier_Store(&threads_, 0);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/arena.cc:76:5: error: use of undeclared identifier 'InitBlock'
InitBlock(initial_block_, &thread_cache(), options_.initial_block_size);
^
/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/arena.cc:77:5: error: unknown type name 'ThreadInfo'
ThreadInfo* info = NewThreadInfo(initial_block_);
^
/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/arena.cc:77:24: error: use of undeclared identifier 'NewThreadInfo'
ThreadInfo* info = NewThreadInfo(initial_block_);
^
/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/arena.cc:80:80: error: no type named 'AtomicWord' in namespace 'google::protobuf::internal'
reinterpret_cast<google::protobuf::internal::AtomicWord>(info));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/arena.cc:79:33: error: no member named 'NoBarrier_Store' in namespace 'google::protobuf::internal'
google::protobuf::internal::NoBarrier_Store(&threads_,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/arena.cc:81:33: error: no member named 'NoBarrier_Store' in namespace 'google::protobuf::internal'
google::protobuf::internal::NoBarrier_Store(&space_allocated_,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/arena.cc:83:5: error: use of undeclared identifier 'CacheBlock'
CacheBlock(initial_block_);
^
/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/arena.cc:85:33: error: no member named 'NoBarrier_Store' in namespace 'google::protobuf::internal'
google::protobuf::internal::NoBarrier_Store(&space_allocated_, 0);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/arena.cc:106:30: error: out-of-line definition of 'NewBlock' does not match any declaration in 'google::protobuf::internal::ArenaImpl'
ArenaImpl::Block* ArenaImpl::NewBlock(void* me, Block* my_last_block,
^~~~~~~~
/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/arena.cc:111:40: error: reference to non-static member function must be called; did you mean to call it with no arguments?
size = std::min(2 * my_last_block->size, options_.max_block_size);
~~~~~~~~~~~~~~~^~~~
()
/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/arena.cc:116:67: error: use of undeclared identifier 'kHeaderSize'
GOOGLE_CHECK_LE(min_bytes, std::numeric_limits<size_t>::max() - kHeaderSize);
^
/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/arena.cc:117:25: error: use of undeclared identifier 'kHeaderSize'
size = std::max(size, kHeaderSize + min_bytes);
^
/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/arena.cc:120:3: error: use of undeclared identifier 'InitBlock'
InitBlock(b, me, size);
^
/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/arena.cc:121:31: error: no member named 'NoBarrier_AtomicIncrement' in namespace 'google::protobuf::internal'
google::protobuf::internal::NoBarrier_AtomicIncrement(&space_allocated_, size);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/arena.cc:125:17: error: out-of-line definition of 'InitBlock' does not match any declaration in 'google::protobuf::internal::ArenaImpl'
void ArenaImpl::InitBlock(Block* b, void *me, size_t size) {
^~~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[6/123] Building CXX object CMakeFiles/libprotobuf-lite.dir/Users/suhail/Desktop/AI/pytorch/third_party/protobuf/src/google/protobuf/arenastring.cc.o
ninja: build stopped: subcommand failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment