Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[thrift:x64-osx] build failure #7533

Closed
esride-jts opened this issue Aug 3, 2019 · 1 comment · Fixed by #11981
Closed

[thrift:x64-osx] build failure #7533

esride-jts opened this issue Aug 3, 2019 · 1 comment · Fixed by #11981
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@esride-jts
Copy link

esride-jts commented Aug 3, 2019

install-x64-osx-dbg-out.log
Host Environment

  • OS: MacOS High Sierra
  • Compiler: Apple LLVM version 9.1.0 (clang-902.0.39.2)

To Reproduce
Steps to reproduce the behavior:
./vcpkg install thrift:x64-osx

Failure logs
Building package thrift[core]:x64-osx...
-- Using cached /Users/jts/Projects/Microsoft/vcpkg/downloads/apache-thrift-acdd4226c210336e9e15eb812e5932a645fcd5ce.tar.gz
-- Using source at /Users/jts/Projects/Microsoft/vcpkg/buildtrees/thrift/src/a645fcd5ce-c6651aaf0e
-- Configuring x64-osx-dbg
-- Configuring x64-osx-rel
-- Building x64-osx-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:136 (message):
Command failed: /Users/jts/Projects/Microsoft/vcpkg/downloads/tools/cmake-3.14.0-osx/cmake-3.14.0-Darwin-x86_64/CMake.app/Contents/bin/cmake --build . --config Debug --target install -- -v
Working Directory: /Users/jts/Projects/Microsoft/vcpkg/buildtrees/thrift/x64-osx-dbg
See logs for more information:
/Users/jts/Projects/Microsoft/vcpkg/buildtrees/thrift/install-x64-osx-dbg-out.log

Call Stack (most recent call first):
scripts/cmake/vcpkg_build_cmake.cmake:96 (vcpkg_execute_build_process)
scripts/cmake/vcpkg_install_cmake.cmake:24 (vcpkg_build_cmake)
ports/thrift/portfile.cmake:43 (vcpkg_install_cmake)
scripts/ports.cmake:74 (include)

Error: Building package thrift:x64-osx failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with .\vcpkg update, then
submit an issue at https:/Microsoft/vcpkg/issues including:
Package: thrift:x64-osx
Vcpkg version: 2019.07.18-unknownhash

Additionally, attach any relevant sections from the log files above.

@esride-jts esride-jts added the category:port-bug The issue is with a library, which is something the port should already support label Aug 3, 2019
@jgiannuzzi
Copy link
Contributor

This happens because the version of bison provided on macOS is outdated (2.3). Thrift requires at least version 2.5.

A solution for building thrift with vcpkg is to install a newer version of bison with homebrew, and then put it in the PATH:

brew install bison
PATH="/usr/local/opt/bison/bin:$PATH" ./vcpkg install thrift:x64-osx

Ideally, vcpkg should download its own copy of bison on macOS, like it does on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants