You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2017/12/11 23:31:50 UTC

[GitHub] rahul003 commented on issue #8578: Add development instructions and update installation instructions

rahul003 commented on issue #8578: Add development instructions and update installation instructions
URL: https://github.com/apache/incubator-mxnet/pull/8578#issuecomment-350893547
 
 
   gtest compile fails when I did this. Any idea @larroy ? 
   Ninja says compile error, some symbols not in scope...
   ```
   ubuntu@ip-172-31-18-227:/tmp/gtest$ cmake /usr/src/gtest -GNinja && ninja
   -- The CXX compiler identification is GNU 5.4.0
   -- The C compiler identification is GNU 5.4.0
   -- Check for working CXX compiler using: Ninja
   -- Check for working CXX compiler using: Ninja -- works
   -- Detecting CXX compiler ABI info
   -- Detecting CXX compiler ABI info - done
   -- Detecting CXX compile features
   -- Detecting CXX compile features - done
   -- Check for working C compiler using: Ninja
   -- Check for working C compiler using: Ninja -- works
   -- Detecting C compiler ABI info
   -- Detecting C compiler ABI info - done
   -- Detecting C compile features
   -- Detecting C compile features - done
   -- Found PythonInterp: /home/ubuntu/anaconda3/bin/python (found version "3.6.3")
   -- Looking for pthread.h
   -- Looking for pthread.h - found
   -- Looking for pthread_create
   -- Looking for pthread_create - not found
   -- Looking for pthread_create in pthreads
   -- Looking for pthread_create in pthreads - not found
   -- Looking for pthread_create in pthread
   -- Looking for pthread_create in pthread - found
   -- Found Threads: TRUE
   -- Configuring done
   -- Generating done
   -- Build files have been written to: /tmp/gtest
   [1/4] Building CXX object CMakeFiles/gtest.dir/src/gtest-all.cc.o
   FAILED: /usr/bin/c++    -I/usr/src/gtest/include -I/usr/src/gtest -Wall -Wshadow -DGTEST_HAS_PTHREAD=1 -fexceptions -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -MMD -MT CMakeFiles/gtest.dir/src/gtest-all.cc.o -MF CMakeFiles/gtest.dir/src/gtest-all.cc.o.d -o CMakeFiles/gtest.dir/src/gtest-all.cc.o -c /usr/src/gtest/src/gtest-all.cc
   In file included from /usr/src/gtest/src/gtest-all.cc:42:0:
   /usr/src/gtest/src/gtest.cc: In destructor ?virtual testing::Test::~Test()?:
   /usr/src/gtest/src/gtest.cc:1897:10: error: type ?const class testing::internal::scoped_ptr<testing::internal::GTestFlagSaver>? argument given to ?delete?, expected pointer
      delete gtest_flag_saver_;
             ^
   /usr/src/gtest/src/gtest.cc: At global scope:
   /usr/src/gtest/src/gtest.cc:2177:1: error: prototype for ?testing::TestInfo::TestInfo(const string&, const string&, const char*, const char*, testing::internal::TypeId, testing::internal::TestFactoryBase*)? does not match any in class ?testing::TestInfo?
    TestInfo::TestInfo(const std::string& a_test_case_name,
    ^
   In file included from /usr/local/include/gtest/internal/gtest-internal.h:40:0,
                    from /usr/local/include/gtest/gtest.h:58,
                    from /usr/src/gtest/src/gtest-all.cc:39:
   /usr/local/include/gtest/gtest.h:772:3: error: candidates are: testing::TestInfo::TestInfo(const testing::TestInfo&)
      GTEST_DISALLOW_COPY_AND_ASSIGN_(TestInfo);
      ^
   In file included from /usr/src/gtest/src/gtest-all.cc:39:0:
   /usr/local/include/gtest/gtest.h:728:3: error:                 testing::TestInfo::TestInfo(const string&, const string&, const char*, const char*, testing::internal::CodeLocation, testing::internal::TypeId, testing::internal::TestFactoryBase*)
      TestInfo(const std::string& test_case_name,
      ^
   In file included from /usr/src/gtest/src/gtest-all.cc:42:0:
   /usr/src/gtest/src/gtest.cc: In function ?testing::TestInfo* testing::internal::MakeAndRegisterTestInfo(const char*, const char*, const char*, const char*, testing::internal::TypeId, testing::internal::SetUpTestCaseFunc, testing::internal::TearDownTestCaseFunc, testing::internal::TestFactoryBase*)?:
   /usr/src/gtest/src/gtest.cc:2227:45: error: no matching function for call to ?testing::TestInfo::TestInfo(const char*&, const char*&, const char*&, const char*&, const void*&, testing::internal::TestFactoryBase*&)?
                       fixture_class_id, factory);
                                                ^
   In file included from /usr/local/include/gtest/internal/gtest-internal.h:40:0,
                    from /usr/local/include/gtest/gtest.h:58,
                    from /usr/src/gtest/src/gtest-all.cc:39:
   /usr/local/include/gtest/gtest.h:772:3: note: candidate: testing::TestInfo::TestInfo(const testing::TestInfo&)
      GTEST_DISALLOW_COPY_AND_ASSIGN_(TestInfo);
      ^
   /usr/local/include/gtest/gtest.h:772:3: note:   candidate expects 1 argument, 6 provided
   In file included from /usr/src/gtest/src/gtest-all.cc:39:0:
   /usr/local/include/gtest/gtest.h:728:3: note: candidate: testing::TestInfo::TestInfo(const string&, const string&, const char*, const char*, testing::internal::CodeLocation, testing::internal::TypeId, testing::internal::TestFactoryBase*)
      TestInfo(const std::string& test_case_name,
      ^
   /usr/local/include/gtest/gtest.h:728:3: note:   candidate expects 7 arguments, 6 provided
   In file included from /usr/src/gtest/src/gtest-all.cc:42:0:
   /usr/src/gtest/src/gtest.cc: In function ?void testing::internal::InitGoogleTestImpl(int*, CharType**)?:
   /usr/src/gtest/src/gtest.cc:4983:3: error: ?g_argvs? was not declared in this scope
      g_argvs.clear();
      ^
   In file included from /usr/src/gtest/src/gtest-all.cc:43:0:
   /usr/src/gtest/src/gtest-death-test.cc: In function ?void testing::internal::SplitString(const string&, char, std::vector<std::__cxx11::basic_string<char> >*)?:
   /usr/src/gtest/src/gtest-death-test.cc:1209:60: error: ?void testing::internal::SplitString(const string&, char, std::vector<std::__cxx11::basic_string<char> >*)? was declared ?extern? and later ?static? [-fpermissive]
                            ::std::vector< ::std::string>* dest) {
                                                               ^
   In file included from /usr/local/include/gtest/gtest.h:58:0,
                    from /usr/src/gtest/src/gtest-all.cc:39:
   /usr/local/include/gtest/internal/gtest-internal.h:613:6: note: previous declaration of ?void testing::internal::SplitString(const string&, char, std::vector<std::__cxx11::basic_string<char> >*)?
    void SplitString(const ::std::string& str, char delimiter,
         ^
   In file included from /usr/src/gtest/src/gtest-all.cc:45:0:
   /usr/src/gtest/src/gtest-port.cc: In function ?const char* testing::internal::StringFromGTestEnv(const char*, const char*)?:
   /usr/src/gtest/src/gtest-port.cc:798:75: error: ambiguating new declaration of ?const char* testing::internal::StringFromGTestEnv(const char*, const char*)?
    const char* StringFromGTestEnv(const char* flag, const char* default_value) {
                                                                              ^
   In file included from /usr/local/include/gtest/internal/gtest-internal.h:40:0,
                    from /usr/local/include/gtest/gtest.h:58,
                    from /usr/src/gtest/src/gtest-all.cc:39:
   /usr/local/include/gtest/internal/gtest-port.h:2590:13: note: old declaration ?std::__cxx11::string testing::internal::StringFromGTestEnv(const char*, const char*)?
    std::string StringFromGTestEnv(const char* flag, const char* default_val);
                ^
   In file included from /usr/src/gtest/src/gtest-all.cc:48:0:
   /usr/src/gtest/src/gtest-typed-test.cc: In member function ?const char* testing::internal::TypedTestCasePState::VerifyRegisteredTestNames(const char*, int, const char*)?:
   /usr/src/gtest/src/gtest-typed-test.cc:71:31: error: ?defined_test_names_? was not declared in this scope
        for (DefinedTestIter it = defined_test_names_.begin();
                                  ^
   /usr/src/gtest/src/gtest-typed-test.cc:88:29: error: ?defined_test_names_? was not declared in this scope
      for (DefinedTestIter it = defined_test_names_.begin();
                                ^
   ninja: build stopped: subcommand failed
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services