最近、Windows Sandbox 環境でいろいろ試しているのですが、Amazon Kinesis Video Stream(KVS) のC++用プロデューサーSDK のビルドがどうしてもできない。
どうも、ビルドの途中で Git のエラーが出ている。
同じ手順でやっても、ホスト側のPCだとエラーにならない。
ログを眺めていても、エラーの原因がよくわからない。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
[cmake] -- Build files have been written to: C:/work/amazon-kinesis-video-streams-producer-sdk-cpp/open-source/local/libopenssl [cmake] .NET Framework 向け Microsoft (R) Build Engine バージョン 17.2.1+52cd2da31 [cmake] Copyright (C) Microsoft Corporation.All rights reserved. [cmake] [cmake] Checking Build System [cmake] Creating directories for 'project_libopenssl' [cmake] Building Custom Rule C:/work/amazon-kinesis-video-streams-producer-sdk-cpp/open-source/local/libopenssl/CMakeLists.txt [cmake] Performing download step (git clone) for 'project_libopenssl' [cmake] Cloning into 'project_libopenssl'... [cmake] HEAD is now at e2e09d9fba Prepare for 1.1.1g release [cmake] Submodule 'boringssl' (https://boringssl.googlesource.com/boringssl) registered for path 'boringssl' [cmake] Submodule 'krb5' (https://github.com/krb5/krb5) registered for path 'krb5' [cmake] Submodule 'pyca.cryptography' (https://github.com/pyca/cryptography.git) registered for path 'pyca-cryptography' [cmake] Cloning into 'C:/work/amazon-kinesis-video-streams-producer-sdk-cpp/open-source/local/libopenssl/build/src/project_libopenssl/boringssl'... [cmake] CUSTOMBUILD : error : RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054 [C:\work\amazon-kinesis-video-streams-producer-sdk-cpp\open-source\local\libopenssl\project_libopenssl.vcxproj] [cmake] CUSTOMBUILD : error : 43832 bytes of body are still expected [C:\work\amazon-kinesis-video-streams-producer-sdk-cpp\open-source\local\libopenssl\project_libopenssl.vcxproj] [cmake] fetch-pack: unexpected disconnect while reading sideband packet [cmake] fatal: early EOF [cmake] fatal: fetch-pack: invalid index-pack output [cmake] fatal: clone of 'https://boringssl.googlesource.com/boringssl' into submodule path 'C:/work/amazon-kinesis-video-streams-producer-sdk-cpp/open-source/local/libopenssl/build/src/project_libopenssl/boringssl' failed [cmake] Failed to clone 'boringssl'. Retry scheduled [cmake] Cloning into 'C:/work/amazon-kinesis-video-streams-producer-sdk-cpp/open-source/local/libopenssl/build/src/project_libopenssl/krb5'... [cmake] Cloning into 'C:/work/amazon-kinesis-video-streams-producer-sdk-cpp/open-source/local/libopenssl/build/src/project_libopenssl/pyca-cryptography'... [cmake] Cloning into 'C:/work/amazon-kinesis-video-streams-producer-sdk-cpp/open-source/local/libopenssl/build/src/project_libopenssl/boringssl'... [cmake] CUSTOMBUILD : error : RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054 [C:\work\amazon-kinesis-video-streams-producer-sdk-cpp\open-source\local\libopenssl\project_libopenssl.vcxproj] [cmake] CUSTOMBUILD : error : 40534 bytes of body are still expected [C:\work\amazon-kinesis-video-streams-producer-sdk-cpp\open-source\local\libopenssl\project_libopenssl.vcxproj] [cmake] fetch-pack: unexpected disconnect while reading sideband packet [cmake] fatal: early EOF [cmake] fatal: fetch-pack: invalid index-pack output [cmake] fatal: clone of 'https://boringssl.googlesource.com/boringssl' into submodule path 'C:/work/amazon-kinesis-video-streams-producer-sdk-cpp/open-source/local/libopenssl/build/src/project_libopenssl/boringssl' failed [cmake] Failed to clone 'boringssl' a second time, aborting [cmake] CMake Error at C:/work/amazon-kinesis-video-streams-producer-sdk-cpp/open-source/local/libopenssl/build/tmp/project_libopenssl-gitclone.cmake:62 (message): [cmake] Failed to update submodules in: [cmake] 'C:/work/amazon-kinesis-video-streams-producer-sdk-cpp/open-source/local/libopenssl/build/src/project_libopenssl' [cmake] [cmake] [cmake] C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(245,5): error MSB8066: 'C:\work\amazon-kinesis-video-streams-producer-sdk-cpp\open-source\local\libopenssl\CMakeFiles\7d73df03addd27d4e3a32da39a47bd01\project_libopenssl-mkdir.rule;C:\work\amazon-kinesis-video-streams-producer-sdk-cpp\open-source\local\libopenssl\CMakeFiles\7d73df03addd27d4e3a32da39a47bd01\project_libopenssl-download.rule;C:\work\amazon-kinesis-video-streams-producer-sdk-cpp\open-source\local\libopenssl\CMakeFiles\7d73df03addd27d4e3a32da39a47bd01\project_libopenssl-update.rule;C:\work\amazon-kinesis-video-streams-producer-sdk-cpp\open-source\local\libopenssl\CMakeFiles\7d73df03addd27d4e3a32da39a47bd01\project_libopenssl-patch.rule;C:\work\amazon-kinesis-video-streams-producer-sdk-cpp\open-source\local\libopenssl\CMakeFiles\7d73df03addd27d4e3a32da39a47bd01\project_libopenssl-configure.rule;C:\work\amazon-kinesis-video-streams-producer-sdk-cpp\open-source\local\libopenssl\CMakeFiles\7d73df03addd27d4e3a32da39a47bd01\project_libopenssl-build.rule;C:\work\amazon-kinesis-video-streams-producer-sdk-cpp\open-source\local\libopenssl\CMakeFiles\7d73df03addd27d4e3a32da39a47bd01\project_libopenssl-install.rule;C:\work\amazon-kinesis-video-streams-producer-sdk-cpp\open-source\local\libopenssl\CMakeFiles\7d73df03addd27d4e3a32da39a47bd01\project_libopenssl-test.rule;C:\work\amazon-kinesis-video-streams-producer-sdk-cpp\open-source\local\libopenssl\CMakeFiles\7ece59a6fd6dd8c9774ced12816c4566\project_libopenssl-complete.rule;C:\work\amazon-kinesis-video-streams-producer-sdk-cpp\open-source\local\libopenssl\CMakeFiles\2a37086864d2be08c8871f1cf9c12d29\project_libopenssl.rule;C:\work\amazon-kinesis-video-streams-producer-sdk-cpp\open-source\local\libopenssl\CMakeLists.txt' のカスタム ビルドがコード 1 で終了しました。 [C:\work\amazon-kinesis-video-streams-producer-sdk-cpp\open-source\local\libopenssl\project_libopenssl.vcxproj] [cmake] CMake Error at dependency/libkvscproducer/kvscproducer-src/CMake/Utilities.cmake:93 (message): [cmake] CMake step for libopenssl failed: 1 [cmake] Call Stack (most recent call first): [cmake] dependency/libkvscproducer/kvscproducer-src/CMakeLists.txt:69 (build_dependency) [cmake] [cmake] [cmake] -- Configuring incomplete, errors occurred! [cmake] See also "C:/work/amazon-kinesis-video-streams-producer-sdk-cpp/build/CMakeFiles/CMakeOutput.log". |
boringssl を複製しようとして、エラーになっているみたい。
いろいろ検索したけど、解決策はみつからず。
コマンドプロンプトから、git clone を試してもうまくいかない。
1 2 3 4 5 6 7 |
C:\work>git clone https://boringssl.googlesource.com/boringssl Cloning into 'boringssl'... error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054 error: 15710 bytes of body are still expected fetch-pack: unexpected disconnect while reading sideband packet fatal: early EOF fatal: fetch-pack: invalid index-pack output |
「Connection was reset」ということで、コネクションがリセットされてる。
サイドバンドのパケットを読んでいる間に、予期せず切断された。
致命的:EOF(End Of Fileかな?)が早すぎる。
致命的:不正な index-pack 出力。
みたいな感じ?
パスが長すぎるわけでもなく、Git の postBuffer を増やすとか試したけど効果なし。
無念。