CloudPolis / webdav-client-cpp

:cloud: C++ WebDAV Client provides easy and convenient to work with WebDAV-servers.
http://cloudpolis.github.io/webdav-client-cpp/
Other
120 stars 52 forks source link

1.0.6 build failure on macOS #22

Closed ilovezfs closed 6 years ago

ilovezfs commented 6 years ago
==> cmake . -DPUGIXML_INCLUDE_DIR=/usr/local/opt/pugixml/include -DPUGIXML_LIBRARY=/usr/local/opt/pugixml/lib -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/wdc/1.0.2 -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev
-- [hunter] Initializing Hunter workspace (4ba5c303245faed28548d4a47f496cf645cf67ed)
-- [hunter]   https://github.com/designerror/hunter/archive/v0.18.14.23.tar.gz
-- [hunter]   -> /tmp/wdc-20170724-88622-1vd10v/webdav-client-cpp-1.0.2/.brew_home/.hunter/_Base/Download/Hunter/0.18.14/4ba5c30
-- The C compiler identification is AppleClang 8.1.0.8020042
-- The CXX compiler identification is AppleClang 8.1.0.8020042
-- Check for working C compiler: /usr/local/Homebrew/Library/Homebrew/shims/super/clang
-- Check for working C compiler: /usr/local/Homebrew/Library/Homebrew/shims/super/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/local/Homebrew/Library/Homebrew/shims/super/clang++
-- Check for working CXX compiler: /usr/local/Homebrew/Library/Homebrew/shims/super/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- [hunter] Calculating Config-SHA1
-- [hunter] Calculating Toolchain-SHA1

[hunter ** FATAL ERROR **] No toolchain info generated
[hunter ** FATAL ERROR **] [Directory:/tmp/wdc-20170724-88622-1vd10v/webdav-client-cpp-1.0.2/_3rdParty/Hunter/toolchain]

------------------------------ WIKI -------------------------------
    https://github.com/ruslo/hunter/wiki/error.no.toolchain.info
-------------------------------------------------------------------

CMake Error at /tmp/wdc-20170724-88622-1vd10v/webdav-client-cpp-1.0.2/.brew_home/.hunter/_Base/Download/Hunter/0.18.14/4ba5c30/Unpacked/cmake/modules/hunter_wiki.cmake:12 (message):
Call Stack (most recent call first):
  /tmp/wdc-20170724-88622-1vd10v/webdav-client-cpp-1.0.2/.brew_home/.hunter/_Base/Download/Hunter/0.18.14/4ba5c30/Unpacked/cmake/modules/hunter_fatal_error.cmake:20 (hunter_wiki)
  CMakeLists.txt:132 (hunter_fatal_error)

[hunter ** INTERNAL **] Generate failed: exit with code 1
[hunter ** INTERNAL **] [Directory:/tmp/wdc-20170724-88622-1vd10v/webdav-client-cpp-1.0.2]

------------------------------ WIKI -------------------------------
    https://github.com/ruslo/hunter/wiki/error.internal
-------------------------------------------------------------------

CMake Error at .brew_home/.hunter/_Base/Download/Hunter/0.18.14/4ba5c30/Unpacked/cmake/modules/hunter_wiki.cmake:12 (message):
Call Stack (most recent call first):
  .brew_home/.hunter/_Base/Download/Hunter/0.18.14/4ba5c30/Unpacked/cmake/modules/hunter_internal_error.cmake:13 (hunter_wiki)
  .brew_home/.hunter/_Base/Download/Hunter/0.18.14/4ba5c30/Unpacked/cmake/modules/hunter_calculate_toolchain_sha1.cmake:98 (hunter_internal_error)
  .brew_home/.hunter/_Base/Download/Hunter/0.18.14/4ba5c30/Unpacked/cmake/modules/hunter_apply_gate_settings.cmake:106 (hunter_calculate_toolchain_sha1)
  .brew_home/.hunter/_Base/Download/Hunter/0.18.14/4ba5c30/Unpacked/cmake/modules/hunter_finalize.cmake:66 (hunter_apply_gate_settings)
  .brew_home/.hunter/_Base/Download/Hunter/0.18.14/4ba5c30/Unpacked/cmake/modules/hunter_add_package.cmake:23 (hunter_finalize)
  CMakeLists.txt:45 (hunter_add_package)

-- Configuring incomplete, errors occurred!
See also "/tmp/wdc-20170724-88622-1vd10v/webdav-client-cpp-1.0.2/CMakeFiles/CMakeOutput.log".

https://jenkins.brew.sh/job/Homebrew%20Core%20Pull%20Requests/5205/version=sierra/console

ilovezfs commented 6 years ago

Still failing for 1.0.3 https://jenkins.brew.sh/job/Homebrew%20Core%20Pull%20Requests/5267/version=sierra/consoleText

ilovezfs commented 6 years ago

Still failing for 1.0.5 https://jenkins.brew.sh/job/Homebrew%20Core%20Pull%20Requests/5410/version=sierra/consoleText

ilovezfs commented 6 years ago

CC @rusdevops

rusdevops commented 6 years ago

https://github.com/CloudPolis/webdav-client-cpp/blob/master/.travis.yml#L41-L43

$ cmake -H. -B_builds -DBUILD_TESTS=ON -DCMAKE_INSTALL_PREFIX=install -DCMAKE_BUILD_TYPE=Debug
$ cmake --build _builds
$ cmake --build _builds --target test -- ARGS=--verbose

Build Status https://travis-ci.org/CloudPolis/webdav-client-cpp/builds/258080413

ilovezfs commented 6 years ago

@rusdevops hunter seems not to like Homebrew's superenv shims. If I set

ENV["CC"] = "/usr/bin/clang"
ENV["CXX"] = "/usr/bin/clang++"

then it builds.

However, that is not something we can do in a formula because the shims are what handle things such as making sure the binaries are built with -march=core2 and -Os.

Also, I noticed that the build is downloading several files including zlib (when macOS already ships with zlib) and its own copy of openssl rather than using the Homebrew dependencies (e.g. the openssl formula, which provides 1.0.2l, or the openssl@1.1 formula, which provides 1.1.0f), even if I depend on them.

Previous versions of wdc worked fine with the Homebrew shims and used the Homebrew dependencies, as expected.

rusdevops commented 6 years ago

I will create the new branch special for homebrew and then send pull request on wdc formula.

Sent from my Meizu M3s using FastHub

ilovezfs commented 6 years ago

@rusdevops thank you!

ilovezfs commented 6 years ago

@rusdevops has this been fixed?