facebook / wdt

Warp speed Data Transfer (WDT) is an embeddedable library (and command line tool) aiming to transfer data between 2 systems as fast as possible over multiple TCP paths.
https://www.facebook.com/WdtOpenSource
Other
2.86k stars 392 forks source link

Error in gtest when building #205

Closed patrickcusack closed 3 years ago

patrickcusack commented 4 years ago

I am encountering an error when running "make -j". The test-build-Release.cmake file throws an error.


CMake Error at /Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest-stamp/gtest-build-Release.cmake:49 (message):
  Command failed: 2

   '/Applications/Xcode-beta.app/Contents/Developer/usr/bin/make'

  See also

    /Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest-stamp/gtest-build-*.log

make[2]: *** [gtest/src/gtest-stamp/gtest-build] Error 1
make[1]: *** [CMakeFiles/gtest.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 21%] Linking CXX executable _bin/wdt/wdt_gen_stats
[ 21%] Built target wdt_gen_stats
[ 22%] Linking CXX shared library libfolly4wdt.dylib
[ 22%] Built target folly4wdt
[ 23%] Linking CXX executable _bin/wdt/bench/wdt_gen_files
[ 23%] Built target wdt_gen_files
make: *** [all] Error 2

additional logging:

CMake Error at /Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest-stamp/gtest-build-Release.cmake:37 (message):
  Command failed: 2

   '/Applications/Xcode-beta.app/Contents/Developer/usr/bin/make'

  See also

    /Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest-stamp/gtest-build-*.log

-- stdout output is:
[ 12%] Building CXX object googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o

-- stderr output is:
In file included from /Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/src/gtest-all.cc:38:
In file included from /Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/gtest.h:62:
In file included from /Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/internal/gtest-internal.h:40:
/Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/internal/gtest-port.h:844:12: error: no member named 'make_tuple' in namespace 'std'
using std::make_tuple;
      ~~~~~^
/Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/internal/gtest-port.h:845:12: error: no member named 'tuple' in namespace 'std'
using std::tuple;
      ~~~~~^
/Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/internal/gtest-port.h:965:3: error: deleted function definitions are a C++11 extension [-Werror,-Wc++11-extensions]
  GTEST_DISALLOW_COPY_AND_ASSIGN_(GTestLog);
  ^
/Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/internal/gtest-port.h:684:23: note: expanded from macro 'GTEST_DISALLOW_COPY_AND_ASSIGN_'
  type(type const&) = delete;                 \
                      ^
/Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/internal/gtest-port.h:965:3: error: deleted function definitions are a C++11 extension [-Werror,-Wc++11-extensions]
/Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/internal/gtest-port.h:685:34: note: expanded from macro 'GTEST_DISALLOW_COPY_AND_ASSIGN_'
  type& operator=(type const&) = delete
                                 ^
/Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/internal/gtest-port.h:1209:3: error: deleted function definitions are a C++11 extension [-Werror,-Wc++11-extensions]
  GTEST_DISALLOW_COPY_AND_ASSIGN_(Notification);
  ^
/Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/internal/gtest-port.h:684:23: note: expanded from macro 'GTEST_DISALLOW_COPY_AND_ASSIGN_'
  type(type const&) = delete;                 \
                      ^
/Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/internal/gtest-port.h:1209:3: error: deleted function definitions are a C++11 extension [-Werror,-Wc++11-extensions]
/Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/internal/gtest-port.h:685:34: note: expanded from macro 'GTEST_DISALLOW_COPY_AND_ASSIGN_'
  type& operator=(type const&) = delete
                                 ^
/Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/internal/gtest-port.h:1319:22: error: 'override' keyword is a C++11 extension [-Werror,-Wc++11-extensions]
  ~ThreadWithParam() override { Join(); }
                     ^
/Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/internal/gtest-port.h:1328:14: error: 'override' keyword is a C++11 extension [-Werror,-Wc++11-extensions]
  void Run() override {
             ^
/Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/internal/gtest-port.h:1343:3: error: deleted function definitions are a C++11 extension [-Werror,-Wc++11-extensions]
  GTEST_DISALLOW_COPY_AND_ASSIGN_(ThreadWithParam);
  ^
/Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/internal/gtest-port.h:684:23: note: expanded from macro 'GTEST_DISALLOW_COPY_AND_ASSIGN_'
  type(type const&) = delete;                 \
                      ^
/Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/internal/gtest-port.h:1343:3: error: deleted function definitions are a C++11 extension [-Werror,-Wc++11-extensions]
/Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/internal/gtest-port.h:685:34: note: expanded from macro 'GTEST_DISALLOW_COPY_AND_ASSIGN_'
  type& operator=(type const&) = delete
                                 ^
/Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/internal/gtest-port.h:1701:3: error: deleted function definitions are a C++11 extension [-Werror,-Wc++11-extensions]
  GTEST_DISALLOW_COPY_AND_ASSIGN_(Mutex);
  ^
/Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/internal/gtest-port.h:684:23: note: expanded from macro 'GTEST_DISALLOW_COPY_AND_ASSIGN_'
  type(type const&) = delete;                 \
                      ^
/Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/internal/gtest-port.h:1701:3: error: deleted function definitions are a C++11 extension [-Werror,-Wc++11-extensions]
/Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/internal/gtest-port.h:685:34: note: expanded from macro 'GTEST_DISALLOW_COPY_AND_ASSIGN_'
  type& operator=(type const&) = delete
                                 ^
/Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/internal/gtest-port.h:1719:3: error: deleted function definitions are a C++11 extension [-Werror,-Wc++11-extensions]
  GTEST_DISALLOW_COPY_AND_ASSIGN_(GTestMutexLock);
  ^
/Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/internal/gtest-port.h:684:23: note: expanded from macro 'GTEST_DISALLOW_COPY_AND_ASSIGN_'
  type(type const&) = delete;                 \
                      ^
/Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/internal/gtest-port.h:1719:3: error: deleted function definitions are a C++11 extension [-Werror,-Wc++11-extensions]
/Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/internal/gtest-port.h:685:34: note: expanded from macro 'GTEST_DISALLOW_COPY_AND_ASSIGN_'
  type& operator=(type const&) = delete
                                 ^
/Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/internal/gtest-port.h:1776:5: error: deleted function definitions are a C++11 extension [-Werror,-Wc++11-extensions]
    GTEST_DISALLOW_COPY_AND_ASSIGN_(ValueHolder);
    ^
/Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/internal/gtest-port.h:684:23: note: expanded from macro 'GTEST_DISALLOW_COPY_AND_ASSIGN_'
  type(type const&) = delete;                 \
                      ^
/Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/internal/gtest-port.h:1776:5: error: deleted function definitions are a C++11 extension [-Werror,-Wc++11-extensions]
/Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/internal/gtest-port.h:685:34: note: expanded from macro 'GTEST_DISALLOW_COPY_AND_ASSIGN_'
  type& operator=(type const&) = delete
                                 ^
/Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/internal/gtest-port.h:1808:5: error: deleted function definitions are a C++11 extension [-Werror,-Wc++11-extensions]
    GTEST_DISALLOW_COPY_AND_ASSIGN_(ValueHolderFactory);
    ^
/Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/internal/gtest-port.h:684:23: note: expanded from macro 'GTEST_DISALLOW_COPY_AND_ASSIGN_'
  type(type const&) = delete;                 \
                      ^
/Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/internal/gtest-port.h:1808:5: error: deleted function definitions are a C++11 extension [-Werror,-Wc++11-extensions]
/Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/internal/gtest-port.h:685:34: note: expanded from macro 'GTEST_DISALLOW_COPY_AND_ASSIGN_'
  type& operator=(type const&) = delete
                                 ^
/Users/me/Documents/working_wdt/wdt-mac/gtest/src/gtest/googletest/include/gtest/internal/gtest-port.h:1814:40: error: 'override' keyword is a C++11 extension [-Werror,-Wc++11-extensions]
    ValueHolder* MakeNewHolder() const override { return new ValueHolder(); }
                                       ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

Is gtest necessary and does it require c++11?

majoros commented 4 years ago

you can add "-DBUILD_TESTING=OFF" if your fine forgoing the tests. Otherwise yes you need gtest.

majoros commented 4 years ago

Also if i recall correctly WDT technically only requiters C++11 however Folly, which it depends on, requires C++14.

ldemailly commented 4 years ago

well one could use an older folly that doesn't require c++14 (circa 2017)

davide125 commented 3 years ago

I've merged a few PRs that should help with this. Please reopen if this still repros.