Я пытаюсь собрать Azure Агент для rhel7.6
/ aarch64
.
Но. Net SDK построен с более высокой версией glibc
, и я получаю ошибку:
$ git clone https://github.com/microsoft/azure-pipelines-agent.git
$ cd azure-pipelines-agent
$ cd src
$ ./dev.sh layout
...
-----------------------------------------
Install .NET SDK
-----------------------------------------
Download dotnetsdk into /source-build/azure-pipelines-agent/src/../_dotnetsdk/3.1.100
dotnet_install: Warning: Unable to locate zlib. Probable prerequisite missing; install zlib.
dotnet_install: Warning: Unable to locate liblttng. Probable prerequisite missing; install libcurl.
dotnet-install: Downloading link: https://dotnetcli.azureedge.net/dotnet/Sdk/3.1.100/dotnet-sdk-3.1.100-linux-arm64.tar.gz
dotnet-install: Extracting zip from https://dotnetcli.azureedge.net/dotnet/Sdk/3.1.100/dotnet-sdk-3.1.100-linux-arm64.tar.gz
dotnet-install: Binaries of dotnet can be found in /source-build/azure-pipelines-agent/_dotnetsdk/3.1.100
dotnet-install: Installation finished successfully.
-----------------------------------------
.NET SDK to path
-----------------------------------------
Adding .NET to PATH (/source-build/azure-pipelines-agent/src/../_dotnetsdk/3.1.100)
Path = /source-build/azure-pipelines-agent/src/../_dotnetsdk/3.1.100:/usr/lib64/qt-3.3/bin:/labhome/andreyma/perl5/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/ibutils/bin:/labhome/andreyma/bin
dotnet: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by dotnet)
dotnet: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by dotnet)
.NET Version =
Далее я пытаюсь собрать . Net SDK для той же платформы. Но это также тянет. Net SDK, чтобы построить себя. L oop закончилась.
$ git clone https://github.com/dotnet/sdk.git
$ cd sdk
$ ./build.sh
Downloading 'https://dot.net/v1/dotnet-install.sh'
Trying to run 'curl https://dot.net/v1/dotnet-install.sh -sSL --retry 10 --create-dirs -o /source-build/sdk/.dotnet/dotnet-install.sh' for maximum of 5 attempts.
Ran 'curl https://dot.net/v1/dotnet-install.sh -sSL --retry 10 --create-dirs -o /source-build/sdk/.dotnet/dotnet-install.sh' successfully.
dotnet_install: Warning: Unable to locate zlib. Probable prerequisite missing; install zlib.
dotnet_install: Warning: Unable to locate liblttng. Probable prerequisite missing; install libcurl.
dotnet-install: Downloading link: https://dotnetcli.azureedge.net/dotnet/Sdk/5.0.100-preview.2.20152.7/dotnet-sdk-5.0.100-preview.2.20152.7-linux-arm64.tar.gz
dotnet-install: Extracting zip from https://dotnetcli.azureedge.net/dotnet/Sdk/5.0.100-preview.2.20152.7/dotnet-sdk-5.0.100-preview.2.20152.7-linux-arm64.tar.gz
dotnet-install: Adding to current process PATH: `/source-build/sdk/.dotnet`. Note: This change will be visible only when sourcing script.
dotnet-install: Installation finished successfully.
/source-build/sdk/.dotnet/dotnet: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /source-build/sdk/.dotnet/dotnet)
/source-build/sdk/.dotnet/dotnet: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /source-build/sdk/.dotnet/dotnet)
Build failed (exit code '1').
Я посмотрел сценарии сборки, и выглядит как . Net SDK не может быть собран без dotnet-cli
без указания c версия.
Итак, как мне собрать. Net SDK с помощью встроенных инструментов сборки? Возможно ли это?