vcpkg icon indicating copy to clipboard operation
vcpkg copied to clipboard

[thrift] Build failure on arm64-osx

Open yoavhacohen opened this issue 1 year ago • 1 comments

Package: thrift:[email protected]

Host Environment

  • Host: arm64-osx
  • Compiler: AppleClang 14.0.3.14030022
  • vcpkg-tool version: 2024-06-10-02590c430e4ed9215d27870138c2e579cc338772 vcpkg-scripts version: 2f7e9e11f 2024-06-26 (2 hours ago)

To Reproduce

vcpkg install thrift

Failure logs

-- Downloading https://github.com/apache/thrift/archive/0.20.0.tar.gz -> apache-thrift-0.20.0.tar.gz...
-- Extracting source /vcpkg/downloads/apache-thrift-0.20.0.tar.gz
-- Applying patch correct-paths.patch
-- Applying patch pc-suffix.patch
-- Using source at /vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean
CMake Warning at ports/thrift/portfile.cmake:24 (message):
  thrift requires bison version greater than 2.5,

  please use command `brew install bison` to install bison
Call Stack (most recent call first):
  scripts/ports.cmake:191 (include)


-- Configuring arm64-osx
-- Building arm64-osx-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: /opt/homebrew/Cellar/cmake/3.29.5/bin/cmake --build . --config Debug --target install -- -v -j11
    Working Directory: /vcpkg/buildtrees/thrift/arm64-osx-dbg
    See logs for more information:
      /vcpkg/buildtrees/thrift/install-arm64-osx-dbg-out.log

Call Stack (most recent call first):
  installed/arm64-osx/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/arm64-osx/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  ports/thrift/portfile.cmake:73 (vcpkg_cmake_install)
  scripts/ports.cmake:191 (include)



/vcpkg/buildtrees/thrift/install-arm64-osx-dbg-out.log
Change Dir: '/vcpkg/buildtrees/thrift/arm64-osx-dbg'

Run Build Command(s): /vcpkg/downloads/tools/ninja/1.10.2-osx/ninja -v -v -j11 install
[1/97] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DBOOST_ALL_DYN_LINK -DBOOST_TEST_DYN_LINK -DTHRIFT_STATIC_DEFINE -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/vcpkg/buildtrees/thrift/arm64-osx-dbg/lib/cpp -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp -I/vcpkg/buildtrees/thrift/arm64-osx-dbg -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src -isystem /vcpkg/installed/arm64-osx/include -fPIC -Wno-deprecated-register -g -std=c++11 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -MD -MT lib/cpp/CMakeFiles/thrift.dir/src/thrift/server/TServer.cpp.o -MF lib/cpp/CMakeFiles/thrift.dir/src/thrift/server/TServer.cpp.o.d -o lib/cpp/CMakeFiles/thrift.dir/src/thrift/server/TServer.cpp.o -c /vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src/thrift/server/TServer.cpp
[2/97] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DBOOST_ALL_DYN_LINK -DBOOST_TEST_DYN_LINK -DTHRIFT_STATIC_DEFINE -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/vcpkg/buildtrees/thrift/arm64-osx-dbg/lib/cpp -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp -I/vcpkg/buildtrees/thrift/arm64-osx-dbg -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src -isystem /vcpkg/installed/arm64-osx/include -fPIC -Wno-deprecated-register -g -std=c++11 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -MD -MT lib/cpp/CMakeFiles/thrift.dir/src/thrift/VirtualProfiling.cpp.o -MF lib/cpp/CMakeFiles/thrift.dir/src/thrift/VirtualProfiling.cpp.o.d -o lib/cpp/CMakeFiles/thrift.dir/src/thrift/VirtualProfiling.cpp.o -c /vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src/thrift/VirtualProfiling.cpp
[3/97] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DBOOST_ALL_DYN_LINK -DBOOST_TEST_DYN_LINK -DTHRIFT_STATIC_DEFINE -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/vcpkg/buildtrees/thrift/arm64-osx-dbg/lib/cpp -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp -I/vcpkg/buildtrees/thrift/arm64-osx-dbg -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src -isystem /vcpkg/installed/arm64-osx/include -fPIC -Wno-deprecated-register -g -std=c++11 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -MD -MT lib/cpp/CMakeFiles/thrift.dir/src/thrift/concurrency/Mutex.cpp.o -MF lib/cpp/CMakeFiles/thrift.dir/src/thrift/concurrency/Mutex.cpp.o.d -o lib/cpp/CMakeFiles/thrift.dir/src/thrift/concurrency/Mutex.cpp.o -c /vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src/thrift/concurrency/Mutex.cpp
[4/97] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DBOOST_ALL_DYN_LINK -DBOOST_TEST_DYN_LINK -DTHRIFT_STATIC_DEFINE -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/vcpkg/buildtrees/thrift/arm64-osx-dbg/lib/cpp -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp -I/vcpkg/buildtrees/thrift/arm64-osx-dbg -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src -isystem /vcpkg/installed/arm64-osx/include -fPIC -Wno-deprecated-register -g -std=c++11 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -MD -MT lib/cpp/CMakeFiles/thrift.dir/src/thrift/concurrency/Thread.cpp.o -MF lib/cpp/CMakeFiles/thrift.dir/src/thrift/concurrency/Thread.cpp.o.d -o lib/cpp/CMakeFiles/thrift.dir/src/thrift/concurrency/Thread.cpp.o -c /vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src/thrift/concurrency/Thread.cpp
[5/97] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DBOOST_ALL_DYN_LINK -DBOOST_TEST_DYN_LINK -DTHRIFT_STATIC_DEFINE -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/vcpkg/buildtrees/thrift/arm64-osx-dbg/lib/cpp -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp -I/vcpkg/buildtrees/thrift/arm64-osx-dbg -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src -isystem /vcpkg/installed/arm64-osx/include -fPIC -Wno-deprecated-register -g -std=c++11 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -MD -MT lib/cpp/CMakeFiles/thrift.dir/src/thrift/concurrency/ThreadFactory.cpp.o -MF lib/cpp/CMakeFiles/thrift.dir/src/thrift/concurrency/ThreadFactory.cpp.o.d -o lib/cpp/CMakeFiles/thrift.dir/src/thrift/concurrency/ThreadFactory.cpp.o -c /vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src/thrift/concurrency/ThreadFactory.cpp
[6/97] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DBOOST_ALL_DYN_LINK -DBOOST_TEST_DYN_LINK -DTHRIFT_STATIC_DEFINE -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/vcpkg/buildtrees/thrift/arm64-osx-dbg/lib/cpp -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp -I/vcpkg/buildtrees/thrift/arm64-osx-dbg -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src -isystem /vcpkg/installed/arm64-osx/include -fPIC -Wno-deprecated-register -g -std=c++11 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -MD -MT lib/cpp/CMakeFiles/thrift.dir/src/thrift/concurrency/Monitor.cpp.o -MF lib/cpp/CMakeFiles/thrift.dir/src/thrift/concurrency/Monitor.cpp.o.d -o lib/cpp/CMakeFiles/thrift.dir/src/thrift/concurrency/Monitor.cpp.o -c /vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src/thrift/concurrency/Monitor.cpp
[7/97] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DBOOST_ALL_DYN_LINK -DBOOST_TEST_DYN_LINK -DTHRIFT_STATIC_DEFINE -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/vcpkg/buildtrees/thrift/arm64-osx-dbg/lib/cpp -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp -I/vcpkg/buildtrees/thrift/arm64-osx-dbg -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src -isystem /vcpkg/installed/arm64-osx/include -fPIC -Wno-deprecated-register -g -std=c++11 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -MD -MT lib/cpp/CMakeFiles/thrift.dir/src/thrift/transport/TWebSocketServer.cpp.o -MF lib/cpp/CMakeFiles/thrift.dir/src/thrift/transport/TWebSocketServer.cpp.o.d -o lib/cpp/CMakeFiles/thrift.dir/src/thrift/transport/TWebSocketServer.cpp.o -c /vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src/thrift/transport/TWebSocketServer.cpp
[8/97] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DBOOST_ALL_DYN_LINK -DBOOST_TEST_DYN_LINK -DTHRIFT_STATIC_DEFINE -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/vcpkg/buildtrees/thrift/arm64-osx-dbg/lib/cpp -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp -I/vcpkg/buildtrees/thrift/arm64-osx-dbg -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src -isystem /vcpkg/installed/arm64-osx/include -fPIC -Wno-deprecated-register -g -std=c++11 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -MD -MT lib/cpp/CMakeFiles/thrift.dir/src/thrift/transport/TSSLServerSocket.cpp.o -MF lib/cpp/CMakeFiles/thrift.dir/src/thrift/transport/TSSLServerSocket.cpp.o.d -o lib/cpp/CMakeFiles/thrift.dir/src/thrift/transport/TSSLServerSocket.cpp.o -c /vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src/thrift/transport/TSSLServerSocket.cpp
[9/97] cd /vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/compiler/cpp && /usr/bin/bison -d -o /vcpkg/buildtrees/thrift/arm64-osx-dbg/compiler/cpp/thrift/thrifty.cc /vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/compiler/cpp/src/thrift/thrifty.yy
FAILED: compiler/cpp/thrift/thrifty.cc compiler/cpp/thrift/thrifty.hh /vcpkg/buildtrees/thrift/arm64-osx-dbg/compiler/cpp/thrift/thrifty.cc /vcpkg/buildtrees/thrift/arm64-osx-dbg/compiler/cpp/thrift/thrifty.hh 
cd /vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/compiler/cpp && /usr/bin/bison -d -o /vcpkg/buildtrees/thrift/arm64-osx-dbg/compiler/cpp/thrift/thrifty.cc /vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/compiler/cpp/src/thrift/thrifty.yy
/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/compiler/cpp/src/thrift/thrifty.yy:1.1-5: invalid directive: `%code'
/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/compiler/cpp/src/thrift/thrifty.yy:1.7-14: syntax error, unexpected identifier
[10/97] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DBOOST_ALL_DYN_LINK -DBOOST_TEST_DYN_LINK -DTHRIFT_STATIC_DEFINE -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/vcpkg/buildtrees/thrift/arm64-osx-dbg/lib/cpp -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp -I/vcpkg/buildtrees/thrift/arm64-osx-dbg -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src -isystem /vcpkg/installed/arm64-osx/include -fPIC -Wno-deprecated-register -g -std=c++11 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -MD -MT lib/cpp/CMakeFiles/thriftnb.dir/src/thrift/transport/TNonblockingServerSocket.cpp.o -MF lib/cpp/CMakeFiles/thriftnb.dir/src/thrift/transport/TNonblockingServerSocket.cpp.o.d -o lib/cpp/CMakeFiles/thriftnb.dir/src/thrift/transport/TNonblockingServerSocket.cpp.o -c /vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src/thrift/transport/TNonblockingServerSocket.cpp
[11/97] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DBOOST_ALL_DYN_LINK -DBOOST_TEST_DYN_LINK -DTHRIFT_STATIC_DEFINE -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/vcpkg/buildtrees/thrift/arm64-osx-dbg/lib/cpp -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp -I/vcpkg/buildtrees/thrift/arm64-osx-dbg -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src -isystem /vcpkg/installed/arm64-osx/include -fPIC -Wno-deprecated-register -g -std=c++11 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -MD -MT lib/cpp/CMakeFiles/thrift.dir/src/thrift/transport/TSSLSocket.cpp.o -MF lib/cpp/CMakeFiles/thrift.dir/src/thrift/transport/TSSLSocket.cpp.o.d -o lib/cpp/CMakeFiles/thrift.dir/src/thrift/transport/TSSLSocket.cpp.o -c /vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src/thrift/transport/TSSLSocket.cpp
/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src/thrift/transport/TSSLSocket.cpp:185:24: warning: 'TLSv1_method' is deprecated [-Wdeprecated-declarations]
    ctx_ = SSL_CTX_new(TLSv1_method());
                       ^
/vcpkg/installed/arm64-osx/include/openssl/ssl.h:2063:1: note: 'TLSv1_method' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_1_1_0 __owur const SSL_METHOD *TLSv1_method(void); /* TLSv1.0 */
^
/vcpkg/installed/arm64-osx/include/openssl/macros.h:216:49: note: expanded from macro 'OSSL_DEPRECATEDIN_1_1_0'
#   define OSSL_DEPRECATEDIN_1_1_0              OSSL_DEPRECATED(1.1.0)
                                                ^
/vcpkg/installed/arm64-osx/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src/thrift/transport/TSSLSocket.cpp:187:24: warning: 'TLSv1_1_method' is deprecated [-Wdeprecated-declarations]
    ctx_ = SSL_CTX_new(TLSv1_1_method());
                       ^
/vcpkg/installed/arm64-osx/include/openssl/ssl.h:2071:1: note: 'TLSv1_1_method' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_1_1_0 __owur const SSL_METHOD *TLSv1_1_method(void); /* TLSv1.1 */
^
/vcpkg/installed/arm64-osx/include/openssl/macros.h:216:49: note: expanded from macro 'OSSL_DEPRECATEDIN_1_1_0'
#   define OSSL_DEPRECATEDIN_1_1_0              OSSL_DEPRECATED(1.1.0)
                                                ^
/vcpkg/installed/arm64-osx/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src/thrift/transport/TSSLSocket.cpp:189:24: warning: 'TLSv1_2_method' is deprecated [-Wdeprecated-declarations]
    ctx_ = SSL_CTX_new(TLSv1_2_method());
                       ^
/vcpkg/installed/arm64-osx/include/openssl/ssl.h:2079:1: note: 'TLSv1_2_method' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_1_1_0 __owur const SSL_METHOD *TLSv1_2_method(void); /* TLSv1.2 */
^
/vcpkg/installed/arm64-osx/include/openssl/macros.h:216:49: note: expanded from macro 'OSSL_DEPRECATEDIN_1_1_0'
#   define OSSL_DEPRECATEDIN_1_1_0              OSSL_DEPRECATED(1.1.0)
                                                ^
/vcpkg/installed/arm64-osx/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src/thrift/transport/TSSLSocket.cpp:758:27: warning: 'ASN1_STRING_data' is deprecated [-Wdeprecated-declarations]
      char* data = (char*)ASN1_STRING_data(name->d.ia5);
                          ^
/vcpkg/installed/arm64-osx/include/openssl/asn1.h:683:1: note: 'ASN1_STRING_data' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_1_1_0 unsigned char *ASN1_STRING_data(ASN1_STRING *x);
^
/vcpkg/installed/arm64-osx/include/openssl/macros.h:216:49: note: expanded from macro 'OSSL_DEPRECATEDIN_1_1_0'
#   define OSSL_DEPRECATEDIN_1_1_0              OSSL_DEPRECATED(1.1.0)
                                                ^
/vcpkg/installed/arm64-osx/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
4 warnings generated.
[12/97] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DBOOST_ALL_DYN_LINK -DBOOST_TEST_DYN_LINK -DTHRIFT_STATIC_DEFINE -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/vcpkg/buildtrees/thrift/arm64-osx-dbg/lib/cpp -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp -I/vcpkg/buildtrees/thrift/arm64-osx-dbg -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src -isystem /vcpkg/installed/arm64-osx/include -fPIC -Wno-deprecated-register -g -std=c++11 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -MD -MT lib/cpp/CMakeFiles/thrift.dir/src/thrift/transport/TFileTransport.cpp.o -MF lib/cpp/CMakeFiles/thrift.dir/src/thrift/transport/TFileTransport.cpp.o.d -o lib/cpp/CMakeFiles/thrift.dir/src/thrift/transport/TFileTransport.cpp.o -c /vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src/thrift/transport/TFileTransport.cpp
/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src/thrift/transport/TFileTransport.cpp:785:7: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
      sprintf(errorMsg,
      ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
1 warning generated.
[13/97] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DBOOST_ALL_DYN_LINK -DBOOST_TEST_DYN_LINK -DTHRIFT_STATIC_DEFINE -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/vcpkg/buildtrees/thrift/arm64-osx-dbg/lib/cpp -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp -I/vcpkg/buildtrees/thrift/arm64-osx-dbg -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src -isystem /vcpkg/installed/arm64-osx/include -fPIC -Wno-deprecated-register -g -std=c++11 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -MD -MT lib/cpp/CMakeFiles/thriftnb.dir/src/thrift/transport/TNonblockingSSLServerSocket.cpp.o -MF lib/cpp/CMakeFiles/thriftnb.dir/src/thrift/transport/TNonblockingSSLServerSocket.cpp.o.d -o lib/cpp/CMakeFiles/thriftnb.dir/src/thrift/transport/TNonblockingSSLServerSocket.cpp.o -c /vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src/thrift/transport/TNonblockingSSLServerSocket.cpp
[14/97] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DBOOST_ALL_DYN_LINK -DBOOST_TEST_DYN_LINK -DTHRIFT_STATIC_DEFINE -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/vcpkg/buildtrees/thrift/arm64-osx-dbg/lib/cpp -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp -I/vcpkg/buildtrees/thrift/arm64-osx-dbg -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src -isystem /vcpkg/installed/arm64-osx/include -fPIC -Wno-deprecated-register -g -std=c++11 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -MD -MT lib/cpp/CMakeFiles/thriftnb.dir/src/thrift/async/TEvhttpServer.cpp.o -MF lib/cpp/CMakeFiles/thriftnb.dir/src/thrift/async/TEvhttpServer.cpp.o.d -o lib/cpp/CMakeFiles/thriftnb.dir/src/thrift/async/TEvhttpServer.cpp.o -c /vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src/thrift/async/TEvhttpServer.cpp
[15/97] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DBOOST_ALL_DYN_LINK -DBOOST_TEST_DYN_LINK -DTHRIFT_STATIC_DEFINE -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/vcpkg/buildtrees/thrift/arm64-osx-dbg/lib/cpp -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp -I/vcpkg/buildtrees/thrift/arm64-osx-dbg -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src -isystem /vcpkg/installed/arm64-osx/include -fPIC -Wno-deprecated-register -g -std=c++11 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -MD -MT lib/cpp/CMakeFiles/thriftnb.dir/src/thrift/server/TNonblockingServer.cpp.o -MF lib/cpp/CMakeFiles/thriftnb.dir/src/thrift/server/TNonblockingServer.cpp.o.d -o lib/cpp/CMakeFiles/thriftnb.dir/src/thrift/server/TNonblockingServer.cpp.o -c /vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src/thrift/server/TNonblockingServer.cpp
[16/97] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DBOOST_ALL_DYN_LINK -DBOOST_TEST_DYN_LINK -DTHRIFT_STATIC_DEFINE -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/vcpkg/buildtrees/thrift/arm64-osx-dbg/lib/cpp -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp -I/vcpkg/buildtrees/thrift/arm64-osx-dbg -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src -isystem /vcpkg/installed/arm64-osx/include -fPIC -Wno-deprecated-register -g -std=c++11 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -MD -MT lib/cpp/CMakeFiles/thriftz.dir/src/thrift/transport/TZlibTransport.cpp.o -MF lib/cpp/CMakeFiles/thriftz.dir/src/thrift/transport/TZlibTransport.cpp.o.d -o lib/cpp/CMakeFiles/thriftz.dir/src/thrift/transport/TZlibTransport.cpp.o -c /vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src/thrift/transport/TZlibTransport.cpp
[17/97] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DBOOST_ALL_DYN_LINK -DBOOST_TEST_DYN_LINK -DTHRIFT_STATIC_DEFINE -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/vcpkg/buildtrees/thrift/arm64-osx-dbg/lib/cpp -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp -I/vcpkg/buildtrees/thrift/arm64-osx-dbg -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src -isystem /vcpkg/installed/arm64-osx/include -fPIC -Wno-deprecated-register -g -std=c++11 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -MD -MT lib/cpp/CMakeFiles/thriftnb.dir/src/thrift/async/TEvhttpClientChannel.cpp.o -MF lib/cpp/CMakeFiles/thriftnb.dir/src/thrift/async/TEvhttpClientChannel.cpp.o.d -o lib/cpp/CMakeFiles/thriftnb.dir/src/thrift/async/TEvhttpClientChannel.cpp.o -c /vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src/thrift/async/TEvhttpClientChannel.cpp
[18/97] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DBOOST_ALL_DYN_LINK -DBOOST_TEST_DYN_LINK -DTHRIFT_STATIC_DEFINE -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/vcpkg/buildtrees/thrift/arm64-osx-dbg/lib/cpp -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp -I/vcpkg/buildtrees/thrift/arm64-osx-dbg -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src -isystem /vcpkg/installed/arm64-osx/include -fPIC -Wno-deprecated-register -g -std=c++11 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -MD -MT lib/cpp/CMakeFiles/thriftz.dir/src/thrift/transport/THeaderTransport.cpp.o -MF lib/cpp/CMakeFiles/thriftz.dir/src/thrift/transport/THeaderTransport.cpp.o.d -o lib/cpp/CMakeFiles/thriftz.dir/src/thrift/transport/THeaderTransport.cpp.o -c /vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src/thrift/transport/THeaderTransport.cpp
[19/97] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DBOOST_ALL_DYN_LINK -DBOOST_TEST_DYN_LINK -DTHRIFT_STATIC_DEFINE -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/vcpkg/buildtrees/thrift/arm64-osx-dbg/lib/cpp -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp -I/vcpkg/buildtrees/thrift/arm64-osx-dbg -I/vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src -isystem /vcpkg/installed/arm64-osx/include -fPIC -Wno-deprecated-register -g -std=c++11 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -MD -MT lib/cpp/CMakeFiles/thriftz.dir/src/thrift/protocol/THeaderProtocol.cpp.o -MF lib/cpp/CMakeFiles/thriftz.dir/src/thrift/protocol/THeaderProtocol.cpp.o.d -o lib/cpp/CMakeFiles/thriftz.dir/src/thrift/protocol/THeaderProtocol.cpp.o -c /vcpkg/buildtrees/thrift/src/0.20.0-8f0d9a10a3.clean/lib/cpp/src/thrift/protocol/THeaderProtocol.cpp
ninja: build stopped: subcommand failed.

yoavhacohen avatar Jun 26 '24 22:06 yoavhacohen

Install bison and try again.

brew install bison

JonLiu1993 avatar Jun 27 '24 03:06 JonLiu1993

I have the same issue on macos. I have already updated bison to 3.8.2 and added it to my PATH, but it fails again

simaocat avatar Nov 13 '24 12:11 simaocat

@simaocat, Please provide your error log, and repro steps, thanks.

JonLiu1993 avatar Nov 14 '24 02:11 JonLiu1993

@JonLiu1993

Host Environment

Host: arm64-osx Compiler: AppleClang 15.0.0.15000309 vcpkg commit id: 772f784ba8d1add92420bd6b81d4cd6a91fb36acImage

To Reproduce

vcpkg install thrift

Failure logs

Computing installation plan... The following packages will be built and installed: thrift:[email protected]#1 Detecting compiler hash for triplet arm64-osx... Compiler found: /Library/Developer/CommandLineTools/usr/bin/c++ Restored 0 package(s) from /Users/simaocat/.cache/vcpkg/archives in 6 us. Use --debug to see more details. Installing 1/1 thrift:[email protected]#1... Building thrift:[email protected]#1... -- Using cached apache-thrift-v0.20.0.tar.gz. -- Cleaning sources at /Users/simaocat/vcpkg/buildtrees/thrift/src/v0.20.0-8f0d9a10a3.clean. Use --editable to skip cleaning for the packages you specify. -- Extracting source /Users/simaocat/vcpkg/downloads/apache-thrift-v0.20.0.tar.gz -- Applying patch correct-paths.patch -- Applying patch pc-suffix.patch -- Using source at /Users/simaocat/vcpkg/buildtrees/thrift/src/v0.20.0-8f0d9a10a3.clean CMake Warning at ports/thrift/portfile.cmake:24 (message): thrift requires bison version greater than 2.5,

please use command brew install bison to install bison Call Stack (most recent call first): scripts/ports.cmake:192 (include)

-- Found external ninja('1.12.1'). -- Configuring arm64-osx -- Building arm64-osx-dbg CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message): Command failed: /opt/homebrew/Cellar/cmake/3.30.5/bin/cmake --build . --config Debug --target install -- -v -j9 Working Directory: /Users/simaocat/vcpkg/buildtrees/thrift/arm64-osx-dbg See logs for more information: /Users/simaocat/vcpkg/buildtrees/thrift/install-arm64-osx-dbg-out.log

Call Stack (most recent call first): installed/arm64-osx/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process) installed/arm64-osx/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build) ports/thrift/portfile.cmake:73 (vcpkg_cmake_install) scripts/ports.cmake:192 (include)

error: building thrift:arm64-osx failed with: BUILD_FAILED See https://learn.microsoft.com/vcpkg/troubleshoot/build-failures?WT.mc_id=vcpkg_inproduct_cli for more information. Elapsed time to handle thrift:arm64-osx: 5.5 s Please ensure you're using the latest port files with git pull and vcpkg update. Then check for known issues at: https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+thrift You can submit a new issue at: https://github.com/microsoft/vcpkg/issues/new?title=[thrift]+Build+error+on+arm64-osx&body=Copy+issue+body+from+%2FUsers%2Fjyxc-dz-0100333%2Fgo%2Fsrc%2Fstepkv-controller%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md

which bison

/opt/homebrew/opt/bison/bin/bison

bison -V

bison (GNU Bison) 3.8.2 Written by Robert Corbett and Richard Stallman.

Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

simaocat avatar Nov 14 '24 04:11 simaocat

Please provide error log:

See logs for more information:
/Users/simaocat/vcpkg/buildtrees/thrift/install-arm64-osx-dbg-out.log

JonLiu1993 avatar Nov 14 '24 06:11 JonLiu1993

@simaocat, please open a new issue and provide your error and reproduction log. We will work with community contributors to help you.

JonLiu1993 avatar Nov 14 '24 08:11 JonLiu1993

@JonLiu1993 https://github.com/microsoft/vcpkg/issues/42153, appreciated for your help

simaocat avatar Nov 14 '24 09:11 simaocat