facebook / wangle

Wangle is a framework providing a set of common client/server abstractions for building services in a consistent, modular, and composable way.
Apache License 2.0
3.04k stars 536 forks source link

Compilation error: [ 3%] Performing download step (download, verify and extract) for 'gmock' #59

Closed yunshengb closed 7 years ago

yunshengb commented 7 years ago

I cloned the repo, did the following, and got this error:

cd wangle/wangle
sudo cmake .
sudo make
yba@ubuntu:~/Documents/XXX/tools/fbthrift/wangle/wangle$ sudo make
[  1%] Performing configure step for 'gmock'
CMake Error at /home/yba/Documents/XXX/tools/fbthrift/wangle/wangle/gmock/src/gmock-stamp/gmock-configure.cmake:16 (message):
  Command failed: 1

   '/usr/bin/cmake' '-GUnix Makefiles' '/home/yba/Documents/XXX/tools/fbthrift/wangle/wangle/gmock/src/gmock'

  See also

    /home/yba/Documents/XXX/tools/fbthrift/wangle/wangle/gmock/src/gmock-stamp/gmock-configure-*.log

make[2]: *** [gmock/src/gmock-stamp/gmock-configure] Error 1
make[1]: *** [CMakeFiles/gmock.dir/all] Error 2
make: *** [all] Error 2

The error log says:

-- downloading...
     src='https://googlemock.googlecode.com/files/gmock-1.7.0.zip'
     dst='/home/yba/Documents/XXX/tools/fbthrift/wangle/wangle/gmock/src/gmock-1.7.0.zip'
     timeout='none'
CMake Error at gmock-stamp/download-gmock.cmake:21 (message):
  error: downloading
  'https://googlemock.googlecode.com/files/gmock-1.7.0.zip' failed

    status_code: 22
    status_string: "HTTP response code said error"
    log: Hostname was NOT found in DNS cache
    Trying 173.194.205.82...

  Connected to googlemock.googlecode.com (173.194.205.82) port 443 (#0)

  successfully set certificate verify locations:

    CAfile: none
    CApath: /etc/ssl/certs

  SSLv3, TLS handshake, Client hello (1):

Is this normal? https://googlemock.googlecode.com/files/gmock-1.7.0.zip seems to be invalid. Please confirm this is a bug, or help me on how to compile it. I could compile successfully last month.

Thank you very much!

tedjp commented 7 years ago

GMock no longer exists on googlecode.com and has been absorbed into googletest. I updated the build to use the new repository: https://github.com/tedjp/wangle/commit/1b161ea890009c4ab26e1d32469f4693f08a0693

anirudhvr commented 7 years ago

@tedjp Thanks. Can you create a PR please?

@yunshengb - As a workaround, can you download gmock-1.7.0.zip to the same dir as CmakeLists.txt and retry? There's some logic there to look in the local directory first before fetching from the URL.