Skip to content

Build from sources for android fails (cctest link failure?) #6035

Closed
@lamuertepeluda

Description

Trying to build nodejs executable for Android.

Development machine: Mac OSX 10.11.4
Node Version: either latest checkout or v5.10.0
Platform: Android
NDK: android-ndk-r11b

Following instruction at build instructions produces a linking error. I have no clue on how to proceed.

Either the aforementioned documentation is wrong/incomplete, or something's broken in the makefiles

/Users/vitomacchia/Development/Binaries/nodejs-src/android-toolchain/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld: error: /Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/deps/gtest/libgtest.a: no archive symbol table (run ranlib)
/Users/vitomacchia/Development/Binaries/nodejs-src/android-toolchain/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld: error: /Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/deps/v8/tools/gyp/libv8_libplatform.a: no archive symbol table (run ranlib)
/Users/vitomacchia/Development/Binaries/nodejs-src/android-toolchain/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld: error: /Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/deps/v8/tools/gyp/libv8_base.a: no archive symbol table (run ranlib)
/Users/vitomacchia/Development/Binaries/nodejs-src/android-toolchain/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld: error: /Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/deps/v8/tools/gyp/libv8_libbase.a: no archive symbol table (run ranlib)
/Users/vitomacchia/Development/Binaries/nodejs-src/android-toolchain/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld: error: /Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/deps/v8/tools/gyp/libv8_nosnapshot.a: no archive symbol table (run ranlib)
/Users/vitomacchia/Development/Binaries/nodejs-src/android-toolchain/bin/../sysroot/usr/lib/crtbegin_dynamic.o:crtbrand.c:function _start: error: undefined reference to 'main'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function UtilTest_ListHead_Test::~UtilTest_ListHead_Test(): error: undefined reference to 'testing::Test::~Test()'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function UtilTest_ListHead_Test::~UtilTest_ListHead_Test(): error: undefined reference to 'testing::Test::~Test()'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function testing::internal::TestFactoryImpl<UtilTest_ListHead_Test>::CreateTest(): error: undefined reference to 'testing::Test::Test()'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function testing::internal::scoped_ptr<std::string>::reset(std::string*) [clone .constprop.34]: error: undefined reference to 'testing::internal::IsTrue(bool)'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function std::string testing::PrintToString<UtilTest_ListHead_Test::TestBody()::Item*>(UtilTest_ListHead_Test::TestBody()::Item* const&): error: undefined reference to 'testing::internal::IsTrue(bool)'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function testing::AssertionResult testing::internal::CmpHelperEQ<UtilTest_ListHead_Test::TestBody()::Item*, UtilTest_ListHead_Test::TestBody()::Item*>(char const*, char const*, UtilTest_ListHead_Test::TestBody()::Item* const&, UtilTest_ListHead_Test::TestBody()::Item* const&): error: undefined reference to 'testing::internal::IsTrue(bool)'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function testing::AssertionResult testing::internal::CmpHelperEQ<UtilTest_ListHead_Test::TestBody()::Item*, UtilTest_ListHead_Test::TestBody()::Item*>(char const*, char const*, UtilTest_ListHead_Test::TestBody()::Item* const&, UtilTest_ListHead_Test::TestBody()::Item* const&): error: undefined reference to 'testing::internal::EqFailure(char const*, char const*, std::string const&, std::string const&, bool)'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function testing::AssertionResult testing::internal::CmpHelperEQ<UtilTest_ListHead_Test::TestBody()::Item*, UtilTest_ListHead_Test::TestBody()::Item*>(char const*, char const*, UtilTest_ListHead_Test::TestBody()::Item* const&, UtilTest_ListHead_Test::TestBody()::Item* const&): error: undefined reference to 'testing::AssertionSuccess()'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function testing::AssertionResult::AppendMessage(testing::Message const&): error: undefined reference to 'testing::Message::GetString() const'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function testing::AssertionResult::AppendMessage(testing::Message const&): error: undefined reference to 'testing::internal::IsTrue(bool)'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function testing::AssertionResult& testing::AssertionResult::operator<< <char [12]>(char const (&) [12]): error: undefined reference to 'testing::Message::Message()'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function testing::AssertionResult& testing::AssertionResult::operator<< <char [12]>(char const (&) [12]): error: undefined reference to 'testing::Message::GetString() const'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function testing::AssertionResult& testing::AssertionResult::operator<< <char [3]>(char const (&) [3]): error: undefined reference to 'testing::Message::Message()'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function testing::AssertionResult& testing::AssertionResult::operator<< <char [3]>(char const (&) [3]): error: undefined reference to 'testing::Message::GetString() const'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function testing::AssertionResult testing::internal::CmpHelperOpFailure<node::ListHead<UtilTest_ListHead_Test::TestBody()::Item, &(UtilTest_ListHead_Test::TestBody()::UtilTest_ListHead_Test::TestBody()::Item::node_)>::Iterator, node::ListHead<UtilTest_ListHead_Test::TestBody()::Item, &(UtilTest_ListHead_Test::TestBody()::UtilTest_ListHead_Test::TestBody()::Item::node_)>::Iterator>(char const*, char const*, node::ListHead<UtilTest_ListHead_Test::TestBody()::Item, &(UtilTest_ListHead_Test::TestBody()::UtilTest_ListHead_Test::TestBody()::Item::node_)>::Iterator const&, node::ListHead<UtilTest_ListHead_Test::TestBody()::Item, &(UtilTest_ListHead_Test::TestBody()::UtilTest_ListHead_Test::TestBody()::Item::node_)>::Iterator const&, char const*) [clone .constprop.32]: error: undefined reference to 'testing::AssertionFailure()'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function testing::AssertionResult testing::internal::CmpHelperOpFailure<node::ListHead<UtilTest_ListHead_Test::TestBody()::Item, &(UtilTest_ListHead_Test::TestBody()::UtilTest_ListHead_Test::TestBody()::Item::node_)>::Iterator, node::ListHead<UtilTest_ListHead_Test::TestBody()::Item, &(UtilTest_ListHead_Test::TestBody()::UtilTest_ListHead_Test::TestBody()::Item::node_)>::Iterator>(char const*, char const*, node::ListHead<UtilTest_ListHead_Test::TestBody()::Item, &(UtilTest_ListHead_Test::TestBody()::UtilTest_ListHead_Test::TestBody()::Item::node_)>::Iterator const&, node::ListHead<UtilTest_ListHead_Test::TestBody()::Item, &(UtilTest_ListHead_Test::TestBody()::UtilTest_ListHead_Test::TestBody()::Item::node_)>::Iterator const&, char const*) [clone .constprop.32]: error: undefined reference to 'testing::Message::Message()'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function testing::AssertionResult testing::internal::CmpHelperOpFailure<node::ListHead<UtilTest_ListHead_Test::TestBody()::Item, &(UtilTest_ListHead_Test::TestBody()::UtilTest_ListHead_Test::TestBody()::Item::node_)>::Iterator, node::ListHead<UtilTest_ListHead_Test::TestBody()::Item, &(UtilTest_ListHead_Test::TestBody()::UtilTest_ListHead_Test::TestBody()::Item::node_)>::Iterator>(char const*, char const*, node::ListHead<UtilTest_ListHead_Test::TestBody()::Item, &(UtilTest_ListHead_Test::TestBody()::UtilTest_ListHead_Test::TestBody()::Item::node_)>::Iterator const&, node::ListHead<UtilTest_ListHead_Test::TestBody()::Item, &(UtilTest_ListHead_Test::TestBody()::UtilTest_ListHead_Test::TestBody()::Item::node_)>::Iterator const&, char const*) [clone .constprop.32]: error: undefined reference to 'testing::Message::Message()'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function testing::AssertionResult testing::internal::CmpHelperOpFailure<node::ListHead<UtilTest_ListHead_Test::TestBody()::Item, &(UtilTest_ListHead_Test::TestBody()::UtilTest_ListHead_Test::TestBody()::Item::node_)>::Iterator, node::ListHead<UtilTest_ListHead_Test::TestBody()::Item, &(UtilTest_ListHead_Test::TestBody()::UtilTest_ListHead_Test::TestBody()::Item::node_)>::Iterator>(char const*, char const*, node::ListHead<UtilTest_ListHead_Test::TestBody()::Item, &(UtilTest_ListHead_Test::TestBody()::UtilTest_ListHead_Test::TestBody()::Item::node_)>::Iterator const&, node::ListHead<UtilTest_ListHead_Test::TestBody()::Item, &(UtilTest_ListHead_Test::TestBody()::UtilTest_ListHead_Test::TestBody()::Item::node_)>::Iterator const&, char const*) [clone .constprop.32]: error: undefined reference to 'testing::internal2::PrintBytesInObjectTo(unsigned char const*, unsigned int, std::ostream*)'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function testing::AssertionResult testing::internal::CmpHelperOpFailure<node::ListHead<UtilTest_ListHead_Test::TestBody()::Item, &(UtilTest_ListHead_Test::TestBody()::UtilTest_ListHead_Test::TestBody()::Item::node_)>::Iterator, node::ListHead<UtilTest_ListHead_Test::TestBody()::Item, &(UtilTest_ListHead_Test::TestBody()::UtilTest_ListHead_Test::TestBody()::Item::node_)>::Iterator>(char const*, char const*, node::ListHead<UtilTest_ListHead_Test::TestBody()::Item, &(UtilTest_ListHead_Test::TestBody()::UtilTest_ListHead_Test::TestBody()::Item::node_)>::Iterator const&, node::ListHead<UtilTest_ListHead_Test::TestBody()::Item, &(UtilTest_ListHead_Test::TestBody()::UtilTest_ListHead_Test::TestBody()::Item::node_)>::Iterator const&, char const*) [clone .constprop.32]: error: undefined reference to 'testing::Message::GetString() const'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function testing::AssertionResult testing::internal::CmpHelperOpFailure<node::ListHead<UtilTest_ListHead_Test::TestBody()::Item, &(UtilTest_ListHead_Test::TestBody()::UtilTest_ListHead_Test::TestBody()::Item::node_)>::Iterator, node::ListHead<UtilTest_ListHead_Test::TestBody()::Item, &(UtilTest_ListHead_Test::TestBody()::UtilTest_ListHead_Test::TestBody()::Item::node_)>::Iterator>(char const*, char const*, node::ListHead<UtilTest_ListHead_Test::TestBody()::Item, &(UtilTest_ListHead_Test::TestBody()::UtilTest_ListHead_Test::TestBody()::Item::node_)>::Iterator const&, node::ListHead<UtilTest_ListHead_Test::TestBody()::Item, &(UtilTest_ListHead_Test::TestBody()::UtilTest_ListHead_Test::TestBody()::Item::node_)>::Iterator const&, char const*) [clone .constprop.32]: error: undefined reference to 'testing::internal2::PrintBytesInObjectTo(unsigned char const*, unsigned int, std::ostream*)'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function testing::AssertionResult testing::internal::CmpHelperOpFailure<node::ListHead<UtilTest_ListHead_Test::TestBody()::Item, &(UtilTest_ListHead_Test::TestBody()::UtilTest_ListHead_Test::TestBody()::Item::node_)>::Iterator, node::ListHead<UtilTest_ListHead_Test::TestBody()::Item, &(UtilTest_ListHead_Test::TestBody()::UtilTest_ListHead_Test::TestBody()::Item::node_)>::Iterator>(char const*, char const*, node::ListHead<UtilTest_ListHead_Test::TestBody()::Item, &(UtilTest_ListHead_Test::TestBody()::UtilTest_ListHead_Test::TestBody()::Item::node_)>::Iterator const&, node::ListHead<UtilTest_ListHead_Test::TestBody()::Item, &(UtilTest_ListHead_Test::TestBody()::UtilTest_ListHead_Test::TestBody()::Item::node_)>::Iterator const&, char const*) [clone .constprop.32]: error: undefined reference to 'testing::AssertionResult::AssertionResult(testing::AssertionResult const&)'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function UtilTest_ListHead_Test::TestBody(): error: undefined reference to 'testing::AssertionSuccess()'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function UtilTest_ListHead_Test::TestBody(): error: undefined reference to 'testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type, char const*, int, char const*)'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function UtilTest_ListHead_Test::TestBody(): error: undefined reference to 'testing::internal::AssertHelper::operator=(testing::Message const&) const'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function UtilTest_ListHead_Test::TestBody(): error: undefined reference to 'testing::internal::AssertHelper::~AssertHelper()'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function UtilTest_ListHead_Test::TestBody(): error: undefined reference to 'testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type, char const*, int, char const*)'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function UtilTest_ListHead_Test::TestBody(): error: undefined reference to 'testing::internal::AssertHelper::operator=(testing::Message const&) const'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function UtilTest_ListHead_Test::TestBody(): error: undefined reference to 'testing::internal::AssertHelper::~AssertHelper()'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function UtilTest_ListHead_Test::TestBody(): error: undefined reference to 'testing::AssertionSuccess()'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function UtilTest_ListHead_Test::TestBody(): error: undefined reference to 'testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type, char const*, int, char const*)'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function UtilTest_ListHead_Test::TestBody(): error: undefined reference to 'testing::internal::AssertHelper::operator=(testing::Message const&) const'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function UtilTest_ListHead_Test::TestBody(): error: undefined reference to 'testing::internal::AssertHelper::~AssertHelper()'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function UtilTest_ListHead_Test::TestBody(): error: undefined reference to 'testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type, char const*, int, char const*)'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function UtilTest_ListHead_Test::TestBody(): error: undefined reference to 'testing::internal::AssertHelper::operator=(testing::Message const&) const'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function UtilTest_ListHead_Test::TestBody(): error: undefined reference to 'testing::internal::AssertHelper::~AssertHelper()'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function UtilTest_ListHead_Test::TestBody(): error: undefined reference to 'testing::AssertionSuccess()'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function UtilTest_ListHead_Test::TestBody(): error: undefined reference to 'testing::internal::GetBoolAssertionFailureMessage(testing::AssertionResult const&, char const*, char const*, char const*)'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function UtilTest_ListHead_Test::TestBody(): error: undefined reference to 'testing::internal::GetBoolAssertionFailureMessage(testing::AssertionResult const&, char const*, char const*, char const*)'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function UtilTest_ListHead_Test::TestBody(): error: undefined reference to 'testing::internal::GetBoolAssertionFailureMessage(testing::AssertionResult const&, char const*, char const*, char const*)'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function UtilTest_ListHead_Test::TestBody(): error: undefined reference to 'testing::internal::GetBoolAssertionFailureMessage(testing::AssertionResult const&, char const*, char const*, char const*)'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function _GLOBAL__sub_I__ZN22UtilTest_ListHead_Test10test_info_E: error: undefined reference to 'testing::internal::GetTestTypeId()'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:function _GLOBAL__sub_I__ZN22UtilTest_ListHead_Test10test_info_E: error: undefined reference to 'testing::internal::MakeAndRegisterTestInfo(char const*, char const*, char const*, char const*, void const*, void (*)(), void (*)(), testing::internal::TestFactoryBase*)'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:vtable for UtilTest_ListHead_Test: error: undefined reference to 'testing::Test::SetUp()'
/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/obj.target/cctest/test/cctest/util.o:util.cc:vtable for UtilTest_ListHead_Test: error: undefined reference to 'testing::Test::TearDown()'
collect2: error: ld returned 1 exit status
make[1]: *** [/Users/vitomacchia/Development/Binaries/nodejs-src/out/Release/cctest] Error 1
make: *** [node] Error 2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    armIssues and PRs related to the ARM platform.buildIssues and PRs related to build files or the CI.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions