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

Provide MSBuild properties to use the new libc++ configuration we plan on using in our builds #101773

Merged
merged 10 commits into from
May 15, 2024
13 changes: 11 additions & 2 deletions eng/Subsets.props
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,15 @@
<UseNativeAotCoreLib Condition="'$(TestNativeAot)' == 'true' or ($(_subset.Contains('+clr.nativeaotlibs+')) and !$(_subset.Contains('+clr.native+')) and !$(_subset.Contains('+clr.runtime+')) and !$(_subset.Contains('+clr.corelib+')))">true</UseNativeAotCoreLib>
</PropertyGroup>

<PropertyGroup Condition="'$(UseContainerLibcxx)' == 'true'">
jkoritzinsky marked this conversation as resolved.
Show resolved Hide resolved
<UseContainerLibcxxProperties>CxxStandardLibrary=libc++;CxxStandardLibraryStatic=true</UseContainerLibcxxProperties>
<!--
When we are building a sanitized build using the libc++ in our containers, we'll use an instrumented libc++abi for better coverage.
When we're building the product for shipping, we'll use the system-provided libstdc++ for the ABI for size savings.
-->
<UseContainerLibcxxProperties Condition="'$(EnableNativeSanitizers)' == ''">$(UseContainerLibcxxProperties);CxxAbiLibrary=libstdc++</UseContainerLibcxxProperties>
jkoritzinsky marked this conversation as resolved.
Show resolved Hide resolved
</PropertyGroup>

<ItemGroup>
<!-- CoreClr -->
<SubsetName Include="Clr" Description="The full CoreCLR runtime. Equivalent to: $(DefaultCoreClrSubsets)" />
Expand Down Expand Up @@ -265,7 +274,7 @@
<ItemGroup Condition="'$(ClrRuntimeBuildSubsets)' != ''">
<ProjectToBuild
Include="$(CoreClrProjectRoot)runtime.proj"
AdditionalProperties="%(AdditionalProperties);$(ClrRuntimeBuildSubsets)"
AdditionalProperties="%(AdditionalProperties);$(ClrRuntimeBuildSubsets);$(UseContainerLibcxxProperties)"
Category="clr" />
</ItemGroup>

Expand Down Expand Up @@ -455,7 +464,7 @@
<!-- Host sets -->
<ItemGroup Condition="$(_subset.Contains('+host.native+'))">
<CorehostProjectToBuild Include="$(SharedNativeRoot)corehost\corehost.proj" SignPhase="Binaries" />
<ProjectToBuild Include="@(CorehostProjectToBuild)" Pack="true" Category="host" />
<ProjectToBuild Include="@(CorehostProjectToBuild)" AdditionalProperties="$(UseContainerLibcxxProperties)" Pack="true" Category="host" />
</ItemGroup>

<ItemGroup Condition="$(_subset.Contains('+host.tools+'))">
Expand Down
9 changes: 5 additions & 4 deletions eng/pipelines/common/global-build-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,11 @@ jobs:
- name: crossArg
value: '-cross'

- ${{ if ne(parameters.jobParameters.crossrootfsDir, '') }}:
# This is only required for cross builds.
- name: ROOTFS_DIR
value: ${{ parameters.jobParameters.crossrootfsDir }}
- name: UseContainerLibcxxArg
value: ''
- ${{ if eq(parameters.useContainerLibcxx, true) }}:
- name: UseContainerLibcxxArg
value: /p:UseContainerLibcxx=true

- name: _officialBuildParameter
${{ if eq(parameters.isOfficialBuild, true) }}:
Expand Down
7 changes: 7 additions & 0 deletions eng/pipelines/common/platform-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
buildConfig: ${{ parameters.buildConfig }}
helixQueueGroup: ${{ parameters.helixQueueGroup }}
crossBuild: true
useContainerLibcxx: true
${{ insert }}: ${{ parameters.jobParameters }}

# Linux armv6
Expand Down Expand Up @@ -112,6 +113,7 @@ jobs:
buildConfig: ${{ parameters.buildConfig }}
helixQueueGroup: ${{ parameters.helixQueueGroup }}
crossBuild: true
useContainerLibcxx: true
${{ insert }}: ${{ parameters.jobParameters }}

# Linux musl arm
Expand All @@ -134,6 +136,7 @@ jobs:
buildConfig: ${{ parameters.buildConfig }}
helixQueueGroup: ${{ parameters.helixQueueGroup }}
crossBuild: true
useContainerLibcxx: true
${{ insert }}: ${{ parameters.jobParameters }}

# Linux musl arm64
Expand All @@ -156,6 +159,7 @@ jobs:
buildConfig: ${{ parameters.buildConfig }}
helixQueueGroup: ${{ parameters.helixQueueGroup }}
crossBuild: true
useContainerLibcxx: true
${{ insert }}: ${{ parameters.jobParameters }}

# Linux Bionic arm
Expand Down Expand Up @@ -251,6 +255,8 @@ jobs:
buildConfig: ${{ parameters.buildConfig }}
helixQueueGroup: ${{ parameters.helixQueueGroup }}
crossBuild: true
${{ if eq(parameters.container, '') }}:
useContainerLibcxx: true
${{ insert }}: ${{ parameters.jobParameters }}

# Linux x86
Expand All @@ -272,6 +278,7 @@ jobs:
buildConfig: ${{ parameters.buildConfig }}
helixQueueGroup: ${{ parameters.helixQueueGroup }}
crossBuild: true
useContainerLibcxx: true
${{ insert }}: ${{ parameters.jobParameters }}

# Runtime-dev-innerloop build
Expand Down
3 changes: 2 additions & 1 deletion eng/pipelines/common/templates/global-build-step.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ parameters:
shouldContinueOnError: false
archParameter: $(_archParameter)
crossArg: $(crossArg)
useContainerLibcxxArg: $(useContainerLibcxxArg)
displayName: Build product
container: ''
condition: succeeded()

steps:
- script: $(Build.SourcesDirectory)$(dir)build$(scriptExt) -ci ${{ parameters.archParameter }} $(_osParameter) ${{ parameters.crossArg }} ${{ parameters.buildArgs }} $(_officialBuildParameter) $(_buildDarwinFrameworksParameter) $(_overrideTestScriptWindowsCmdParameter)
- script: $(Build.SourcesDirectory)$(dir)build$(scriptExt) -ci ${{ parameters.archParameter }} $(_osParameter) ${{ parameters.crossArg }} ${{ parameters.buildArgs }} ${{ parameters.useContainerLibcxxArg }} $(_officialBuildParameter) $(_buildDarwinFrameworksParameter) $(_overrideTestScriptWindowsCmdParameter)
displayName: ${{ parameters.displayName }}
${{ if eq(parameters.useContinueOnErrorDuringBuild, true) }}:
continueOnError: ${{ parameters.shouldContinueOnError }}
Expand Down
12 changes: 12 additions & 0 deletions src/coreclr/runtime.proj
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,18 @@
<_CoreClrBuildArg Include="-cmakeargs &quot;-DCDAC_BUILD_TOOL_BINARY_PATH=$(RuntimeBinDir)cdac-build-tool\cdac-build-tool.dll&quot;" />
</ItemGroup>

<ItemGroup Condition="'$(CxxStandardLibrary)' != ''">
<_CoreClrBuildArg Include="-cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY=libc++" />
jkoritzinsky marked this conversation as resolved.
Show resolved Hide resolved
</ItemGroup>

<ItemGroup Condition="'$(CxxStandardLibraryStatic)' == 'true'">
<_CoreClrBuildArg Include="-cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY_STATIC=ON" />
</ItemGroup>

<ItemGroup Condition="'$(CxxAbiLibrary)' != ''">
<_CoreClrBuildArg Include="-cmakeargs -DCLR_CMAKE_CXX_ABI_LIBRARY=$(CxxAbiLibrary)" />
</ItemGroup>

<ItemGroup Condition="'$(ClrFullNativeBuild)' != 'true'">
<_CoreClrBuildArg Condition="'$(ClrHostsSubset)' == 'true'" Include="-component hosts" />
<_CoreClrBuildArg Condition="'$(ClrRuntimeSubset)' == 'true'" Include="-component runtime" />
Expand Down Expand Up @@ -93,7 +105,7 @@

<!-- Use IgnoreStandardErrorWarningFormat because Arcade sets WarnAsError and there's an existing warning in the native build. -->
<Message Text="Executing &quot;$(MSBuildThisFileDirectory)$(_CoreClrBuildScript)&quot; @(_CoreClrBuildArg->'%(Identity)',' ')" Importance="High" />
<Exec Command="&quot;$(MSBuildThisFileDirectory)$(_CoreClrBuildScript)&quot; @(_CoreClrBuildArg->'%(Identity)',' ')"

Check failure on line 108 in src/coreclr/runtime.proj

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Release NativeAOT)

src/coreclr/runtime.proj#L108

src/coreclr/runtime.proj(108,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/__w/1/s/src/coreclr/build-runtime.sh" -x64 -release -ci -cross -os linux -pgodatapath "/__w/1/s/.packages/optimization.linux-x64.pgo.coreclr/1.0.0-prerelease.24223.3" -outputrid linux-x64 -cmakeargs "-DCLR_DOTNET_HOST_PATH=/__w/1/s/.dotnet/dotnet" -cmakeargs "-DCDAC_BUILD_TOOL_BINARY_PATH=/__w/1/s/artifacts/bin/coreclr/linux.x64.Release/cdac-build-tool/cdac-build-tool.dll" -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY=libc++ -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY_STATIC=ON -cmakeargs -DCLR_CMAKE_CXX_ABI_LIBRARY=libstdc++ -component alljits -component nativeaot" exited with code 2.

Check failure on line 108 in src/coreclr/runtime.proj

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug NativeAOT)

src/coreclr/runtime.proj#L108

src/coreclr/runtime.proj(108,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/__w/1/s/src/coreclr/build-runtime.sh" -x64 -debug -ci -cross -os linux -outputrid linux-x64 -cmakeargs "-DCLR_DOTNET_HOST_PATH=/__w/1/s/.dotnet/dotnet" -cmakeargs "-DCDAC_BUILD_TOOL_BINARY_PATH=/__w/1/s/artifacts/bin/coreclr/linux.x64.Debug/cdac-build-tool/cdac-build-tool.dll" -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY=libc++ -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY_STATIC=ON -cmakeargs -DCLR_CMAKE_CXX_ABI_LIBRARY=libstdc++ -component alljits -component nativeaot" exited with code 2.

Check failure on line 108 in src/coreclr/runtime.proj

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 checked CLR_Tools_Tests)

src/coreclr/runtime.proj#L108

src/coreclr/runtime.proj(108,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/__w/1/s/src/coreclr/build-runtime.sh" -x64 -checked -ci -cross -os linux -outputrid linux-x64 -cmakeargs "-DCLR_DOTNET_HOST_PATH=/__w/1/s/.dotnet/dotnet" -cmakeargs "-DCDAC_BUILD_TOOL_BINARY_PATH=/__w/1/s/artifacts/bin/coreclr/linux.x64.Checked/cdac-build-tool/cdac-build-tool.dll" -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY=libc++ -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY_STATIC=ON -cmakeargs -DCLR_CMAKE_CXX_ABI_LIBRARY=libstdc++ -component alljits -component iltools -component nativeaot" exited with code 2.

Check failure on line 108 in src/coreclr/runtime.proj

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)

src/coreclr/runtime.proj#L108

src/coreclr/runtime.proj(108,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/__w/1/s/src/coreclr/build-runtime.sh" -arm -release -ci -cross -os linux -outputrid linux-musl-arm -cmakeargs "-DCLR_DOTNET_HOST_PATH=/__w/1/s/.dotnet/dotnet" -cmakeargs "-DCDAC_BUILD_TOOL_BINARY_PATH=/__w/1/s/artifacts/bin/coreclr/linux.arm.Release/cdac-build-tool/cdac-build-tool.dll" -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY=libc++ -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY_STATIC=ON -cmakeargs -DCLR_CMAKE_CXX_ABI_LIBRARY=libstdc++" exited with code 2.

Check failure on line 108 in src/coreclr/runtime.proj

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Debug AllSubsets_CoreCLR)

src/coreclr/runtime.proj#L108

src/coreclr/runtime.proj(108,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/__w/1/s/src/coreclr/build-runtime.sh" -x64 -release -ci -cross -os linux -pgodatapath "/__w/1/s/.packages/optimization.linux-x64.pgo.coreclr/1.0.0-prerelease.24223.3" -outputrid linux-musl-x64 -cmakeargs "-DCLR_DOTNET_HOST_PATH=/__w/1/s/.dotnet/dotnet" -cmakeargs "-DCDAC_BUILD_TOOL_BINARY_PATH=/__w/1/s/artifacts/bin/coreclr/linux.x64.Release/cdac-build-tool/cdac-build-tool.dll" -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY=libc++ -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY_STATIC=ON -cmakeargs -DCLR_CMAKE_CXX_ABI_LIBRARY=libstdc++" exited with code 2.

Check failure on line 108 in src/coreclr/runtime.proj

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)

src/coreclr/runtime.proj#L108

src/coreclr/runtime.proj(108,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/__w/1/s/src/coreclr/build-runtime.sh" -arm -release -ci -cross -os linux -outputrid linux-arm -cmakeargs "-DCLR_DOTNET_HOST_PATH=/__w/1/s/.dotnet/dotnet" -cmakeargs "-DCDAC_BUILD_TOOL_BINARY_PATH=/__w/1/s/artifacts/bin/coreclr/linux.arm.Release/cdac-build-tool/cdac-build-tool.dll" -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY=libc++ -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY_STATIC=ON -cmakeargs -DCLR_CMAKE_CXX_ABI_LIBRARY=libstdc++" exited with code 2.

Check failure on line 108 in src/coreclr/runtime.proj

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm checked CoreCLR_ReleaseLibraries)

src/coreclr/runtime.proj#L108

src/coreclr/runtime.proj(108,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/__w/1/s/src/coreclr/build-runtime.sh" -arm -checked -ci -cross -os linux -outputrid linux-arm -cmakeargs "-DCLR_DOTNET_HOST_PATH=/__w/1/s/.dotnet/dotnet" -cmakeargs "-DCDAC_BUILD_TOOL_BINARY_PATH=/__w/1/s/artifacts/bin/coreclr/linux.arm.Checked/cdac-build-tool/cdac-build-tool.dll" -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY=libc++ -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY_STATIC=ON -cmakeargs -DCLR_CMAKE_CXX_ABI_LIBRARY=libstdc++" exited with code 2.

Check failure on line 108 in src/coreclr/runtime.proj

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Release AllSubsets_Mono_LLVMAot_RuntimeTests llvmaot)

src/coreclr/runtime.proj#L108

src/coreclr/runtime.proj(108,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/__w/1/s/src/coreclr/build-runtime.sh" -x64 -release -ci -cross -os linux -pgodatapath "/__w/1/s/.packages/optimization.linux-x64.pgo.coreclr/1.0.0-prerelease.24223.3" -outputrid linux-x64 -cmakeargs "-DCLR_DOTNET_HOST_PATH=/__w/1/s/.dotnet/dotnet" -cmakeargs "-DCDAC_BUILD_TOOL_BINARY_PATH=/__w/1/s/artifacts/bin/coreclr/linux.x64.Release/cdac-build-tool/cdac-build-tool.dll" -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY=libc++ -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY_STATIC=ON -cmakeargs -DCLR_CMAKE_CXX_ABI_LIBRARY=libstdc++ -component hosts -component iltools" exited with code 2.

Check failure on line 108 in src/coreclr/runtime.proj

View check run for this annotation

Azure Pipelines / runtime (Build linux-x86 checked CoreCLR_NoR2R)

src/coreclr/runtime.proj#L108

src/coreclr/runtime.proj(108,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/__w/1/s/src/coreclr/build-runtime.sh" -x86 -checked -ci -cross -os linux -outputrid linux-x86 -cmakeargs "-DCLR_DOTNET_HOST_PATH=/__w/1/s/.dotnet/dotnet" -cmakeargs "-DCDAC_BUILD_TOOL_BINARY_PATH=/__w/1/s/artifacts/bin/coreclr/linux.x86.Checked/cdac-build-tool/cdac-build-tool.dll" -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY=libc++ -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY_STATIC=ON -cmakeargs -DCLR_CMAKE_CXX_ABI_LIBRARY=libstdc++ -component runtime -component jit -component iltools -component spmi" exited with code 2.

Check failure on line 108 in src/coreclr/runtime.proj

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Debug CoreCLR_Libraries)

src/coreclr/runtime.proj#L108

src/coreclr/runtime.proj(108,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/__w/1/s/src/coreclr/build-runtime.sh" -x64 -release -ci -cross -os linux -pgodatapath "/__w/1/s/.packages/optimization.linux-x64.pgo.coreclr/1.0.0-prerelease.24223.3" -outputrid linux-musl-x64 -cmakeargs "-DCLR_DOTNET_HOST_PATH=/__w/1/s/.dotnet/dotnet" -cmakeargs "-DCDAC_BUILD_TOOL_BINARY_PATH=/__w/1/s/artifacts/bin/coreclr/linux.x64.Release/cdac-build-tool/cdac-build-tool.dll" -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY=libc++ -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY_STATIC=ON -cmakeargs -DCLR_CMAKE_CXX_ABI_LIBRARY=libstdc++" exited with code 2.

Check failure on line 108 in src/coreclr/runtime.proj

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm checked CoreCLR_ReleaseLibraries)

src/coreclr/runtime.proj#L108

src/coreclr/runtime.proj(108,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/__w/1/s/src/coreclr/build-runtime.sh" -arm -checked -ci -cross -os linux -outputrid linux-musl-arm -cmakeargs "-DCLR_DOTNET_HOST_PATH=/__w/1/s/.dotnet/dotnet" -cmakeargs "-DCDAC_BUILD_TOOL_BINARY_PATH=/__w/1/s/artifacts/bin/coreclr/linux.arm.Checked/cdac-build-tool/cdac-build-tool.dll" -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY=libc++ -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY_STATIC=ON -cmakeargs -DCLR_CMAKE_CXX_ABI_LIBRARY=libstdc++" exited with code 2.

Check failure on line 108 in src/coreclr/runtime.proj

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm64 Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)

src/coreclr/runtime.proj#L108

src/coreclr/runtime.proj(108,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/__w/1/s/src/coreclr/build-runtime.sh" -arm64 -release -ci -cross -os linux -pgodatapath "/__w/1/s/.packages/optimization.linux-arm64.pgo.coreclr/1.0.0-prerelease.24223.3" -outputrid linux-musl-arm64 -cmakeargs "-DCLR_DOTNET_HOST_PATH=/__w/1/s/.dotnet/dotnet" -cmakeargs "-DCDAC_BUILD_TOOL_BINARY_PATH=/__w/1/s/artifacts/bin/coreclr/linux.arm64.Release/cdac-build-tool/cdac-build-tool.dll" -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY=libc++ -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY_STATIC=ON -cmakeargs -DCLR_CMAKE_CXX_ABI_LIBRARY=libstdc++" exited with code 2.

Check failure on line 108 in src/coreclr/runtime.proj

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Debug Libraries_CheckedCoreCLR)

src/coreclr/runtime.proj#L108

src/coreclr/runtime.proj(108,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/__w/1/s/src/coreclr/build-runtime.sh" -x64 -checked -ci -cross -os linux -outputrid linux-musl-x64 -cmakeargs "-DCLR_DOTNET_HOST_PATH=/__w/1/s/.dotnet/dotnet" -cmakeargs "-DCDAC_BUILD_TOOL_BINARY_PATH=/__w/1/s/artifacts/bin/coreclr/linux.x64.Checked/cdac-build-tool/cdac-build-tool.dll" -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY=libc++ -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY_STATIC=ON -cmakeargs -DCLR_CMAKE_CXX_ABI_LIBRARY=libstdc++" exited with code 2.

Check failure on line 108 in src/coreclr/runtime.proj

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm64 checked CoreCLR_ReleaseLibraries)

src/coreclr/runtime.proj#L108

src/coreclr/runtime.proj(108,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/__w/1/s/src/coreclr/build-runtime.sh" -arm64 -checked -ci -cross -os linux -outputrid linux-musl-arm64 -cmakeargs "-DCLR_DOTNET_HOST_PATH=/__w/1/s/.dotnet/dotnet" -cmakeargs "-DCDAC_BUILD_TOOL_BINARY_PATH=/__w/1/s/artifacts/bin/coreclr/linux.arm64.Checked/cdac-build-tool/cdac-build-tool.dll" -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY=libc++ -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY_STATIC=ON -cmakeargs -DCLR_CMAKE_CXX_ABI_LIBRARY=libstdc++" exited with code 2.

Check failure on line 108 in src/coreclr/runtime.proj

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug CoreCLR_Libraries)

src/coreclr/runtime.proj#L108

src/coreclr/runtime.proj(108,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/__w/1/s/src/coreclr/build-runtime.sh" -x64 -release -ci -cross -os linux -pgodatapath "/__w/1/s/.packages/optimization.linux-x64.pgo.coreclr/1.0.0-prerelease.24223.3" -outputrid linux-x64 -cmakeargs "-DCLR_DOTNET_HOST_PATH=/__w/1/s/.dotnet/dotnet" -cmakeargs "-DCDAC_BUILD_TOOL_BINARY_PATH=/__w/1/s/artifacts/bin/coreclr/linux.x64.Release/cdac-build-tool/cdac-build-tool.dll" -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY=libc++ -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY_STATIC=ON -cmakeargs -DCLR_CMAKE_CXX_ABI_LIBRARY=libstdc++" exited with code 2.

Check failure on line 108 in src/coreclr/runtime.proj

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 checked CoreCLR_ReleaseLibraries)

src/coreclr/runtime.proj#L108

src/coreclr/runtime.proj(108,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/__w/1/s/src/coreclr/build-runtime.sh" -x64 -checked -ci -cross -os linux -outputrid linux-x64 -cmakeargs "-DCLR_DOTNET_HOST_PATH=/__w/1/s/.dotnet/dotnet" -cmakeargs "-DCDAC_BUILD_TOOL_BINARY_PATH=/__w/1/s/artifacts/bin/coreclr/linux.x64.Checked/cdac-build-tool/cdac-build-tool.dll" -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY=libc++ -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY_STATIC=ON -cmakeargs -DCLR_CMAKE_CXX_ABI_LIBRARY=libstdc++" exited with code 2.

Check failure on line 108 in src/coreclr/runtime.proj

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug Libraries_CheckedCoreCLR)

src/coreclr/runtime.proj#L108

src/coreclr/runtime.proj(108,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/__w/1/s/src/coreclr/build-runtime.sh" -x64 -checked -ci -cross -os linux -outputrid linux-x64 -cmakeargs "-DCLR_DOTNET_HOST_PATH=/__w/1/s/.dotnet/dotnet" -cmakeargs "-DCDAC_BUILD_TOOL_BINARY_PATH=/__w/1/s/artifacts/bin/coreclr/linux.x64.Checked/cdac-build-tool/cdac-build-tool.dll" -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY=libc++ -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY_STATIC=ON -cmakeargs -DCLR_CMAKE_CXX_ABI_LIBRARY=libstdc++" exited with code 2.

Check failure on line 108 in src/coreclr/runtime.proj

View check run for this annotation

Azure Pipelines / dotnet-linker-tests (Build linux-x64 release Runtime_Release)

src/coreclr/runtime.proj#L108

src/coreclr/runtime.proj(108,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/__w/1/s/src/coreclr/build-runtime.sh" -x64 -release -ci -cross -os linux -pgodatapath "/__w/1/s/.packages/optimization.linux-x64.pgo.coreclr/1.0.0-prerelease.24223.3" -outputrid linux-x64 -cmakeargs "-DCLR_DOTNET_HOST_PATH=/__w/1/s/.dotnet/dotnet" -cmakeargs "-DCDAC_BUILD_TOOL_BINARY_PATH=/__w/1/s/artifacts/bin/coreclr/linux.x64.Release/cdac-build-tool/cdac-build-tool.dll" -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY=libc++ -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY_STATIC=ON -cmakeargs -DCLR_CMAKE_CXX_ABI_LIBRARY=libstdc++" exited with code 2.

Check failure on line 108 in src/coreclr/runtime.proj

View check run for this annotation

Azure Pipelines / dotnet-linker-tests

src/coreclr/runtime.proj#L108

src/coreclr/runtime.proj(108,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/__w/1/s/src/coreclr/build-runtime.sh" -x64 -release -ci -cross -os linux -pgodatapath "/__w/1/s/.packages/optimization.linux-x64.pgo.coreclr/1.0.0-prerelease.24223.3" -outputrid linux-x64 -cmakeargs "-DCLR_DOTNET_HOST_PATH=/__w/1/s/.dotnet/dotnet" -cmakeargs "-DCDAC_BUILD_TOOL_BINARY_PATH=/__w/1/s/artifacts/bin/coreclr/linux.x64.Release/cdac-build-tool/cdac-build-tool.dll" -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY=libc++ -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY_STATIC=ON -cmakeargs -DCLR_CMAKE_CXX_ABI_LIBRARY=libstdc++" exited with code 2.

Check failure on line 108 in src/coreclr/runtime.proj

View check run for this annotation

Azure Pipelines / runtime

src/coreclr/runtime.proj#L108

src/coreclr/runtime.proj(108,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/__w/1/s/src/coreclr/build-runtime.sh" -arm64 -release -ci -cross -os linux -pgodatapath "/__w/1/s/.packages/optimization.linux-arm64.pgo.coreclr/1.0.0-prerelease.24223.3" -outputrid linux-musl-arm64 -cmakeargs "-DCLR_DOTNET_HOST_PATH=/__w/1/s/.dotnet/dotnet" -cmakeargs "-DCDAC_BUILD_TOOL_BINARY_PATH=/__w/1/s/artifacts/bin/coreclr/linux.arm64.Release/cdac-build-tool/cdac-build-tool.dll" -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY=libc++ -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY_STATIC=ON -cmakeargs -DCLR_CMAKE_CXX_ABI_LIBRARY=libstdc++" exited with code 2.
IgnoreStandardErrorWarningFormat="true" />
</Target>

Expand Down
14 changes: 14 additions & 0 deletions src/native/corehost/corehost.proj
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,20 @@
<_CoreHostUnixTargetOS Condition="'$(TargetsLinuxBionic)' == 'true'">linux-bionic</_CoreHostUnixTargetOS>
<BuildArgs>$(Configuration) $(TargetArchitecture) -commithash "$([MSBuild]::ValueOrDefault('$(SourceRevisionId)', 'N/A'))" -os $(_CoreHostUnixTargetOS)</BuildArgs>
<BuildArgs>$(BuildArgs) -cmakeargs "-DVERSION_FILE_PATH=$(NativeVersionFile)"</BuildArgs>
</PropertyGroup>
<PropertyGroup Condition="'$(CxxStandardLibrary)' != ''">
<BuildArgs>$(BuildArgs) -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY=libc++</BuildArgs>
jkoritzinsky marked this conversation as resolved.
Show resolved Hide resolved
</PropertyGroup>

<PropertyGroup Condition="'$(CxxStandardLibraryStatic)' != ''">
jkoritzinsky marked this conversation as resolved.
Show resolved Hide resolved
<BuildArgs>$(BuildArgs) -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY_STATIC=ON</BuildArgs>
</PropertyGroup>

<PropertyGroup Condition="'$(CxxAbiLibrary)' != ''">
<BuildArgs>$(BuildArgs) -cmakeargs -DCLR_CMAKE_CXX_ABI_LIBRARY=$(CxxAbiLibrary)</BuildArgs>
</PropertyGroup>

<PropertyGroup>
<BuildArgs Condition="'$(ConfigureOnly)' == 'true'">$(BuildArgs) -configureonly</BuildArgs>
<BuildArgs Condition="'$(PortableBuild)' != 'true'">$(BuildArgs) -portablebuild=false</BuildArgs>
<BuildArgs Condition="'$(KeepNativeSymbols)' != 'false'">$(BuildArgs) -keepnativesymbols</BuildArgs>
Expand All @@ -96,7 +110,7 @@
warning in the macOS build when dsymutil tries to strip symbols.
-->
<Message Text="&quot;$(BuildScript)&quot; $(BuildArgs)" Importance="High"/>
<Exec Command="&quot;$(BuildScript)&quot; $(BuildArgs)" IgnoreStandardErrorWarningFormat="true"/>

Check failure on line 113 in src/native/corehost/corehost.proj

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 debug Mono_Runtime)

src/native/corehost/corehost.proj#L113

src/native/corehost/corehost.proj(113,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/__w/1/s/src/native/corehost/build.sh" Debug x64 -commithash "37fc7f203a545400b90b1c584b5a2464c034eb88" -os linux -cmakeargs "-DVERSION_FILE_PATH=/__w/1/s/artifacts/obj/_version.c" -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY=libc++ -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY_STATIC=ON -cmakeargs -DCLR_CMAKE_CXX_ABI_LIBRARY=libstdc++ -cross -runtimeflavor Mono -outputrid linux-x64" exited with code 2.

Check failure on line 113 in src/native/corehost/corehost.proj

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm Debug AllSubsets_Mono)

src/native/corehost/corehost.proj#L113

src/native/corehost/corehost.proj(113,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/__w/1/s/src/native/corehost/build.sh" Debug arm -commithash "37fc7f203a545400b90b1c584b5a2464c034eb88" -os linux -cmakeargs "-DVERSION_FILE_PATH=/__w/1/s/artifacts/obj/_version.c" -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY=libc++ -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY_STATIC=ON -cmakeargs -DCLR_CMAKE_CXX_ABI_LIBRARY=libstdc++ -cross -runtimeflavor Mono -outputrid linux-arm" exited with code 2.

Check failure on line 113 in src/native/corehost/corehost.proj

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug AllSubsets_Mono_LLVMJIT)

src/native/corehost/corehost.proj#L113

src/native/corehost/corehost.proj(113,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/__w/1/s/src/native/corehost/build.sh" Debug x64 -commithash "37fc7f203a545400b90b1c584b5a2464c034eb88" -os linux -cmakeargs "-DVERSION_FILE_PATH=/__w/1/s/artifacts/obj/_version.c" -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY=libc++ -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY_STATIC=ON -cmakeargs -DCLR_CMAKE_CXX_ABI_LIBRARY=libstdc++ -cross -runtimeflavor Mono -outputrid linux-x64" exited with code 2.

Check failure on line 113 in src/native/corehost/corehost.proj

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Release AllSubsets_Mono)

src/native/corehost/corehost.proj#L113

src/native/corehost/corehost.proj(113,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/__w/1/s/src/native/corehost/build.sh" Release x64 -commithash "37fc7f203a545400b90b1c584b5a2464c034eb88" -os linux -cmakeargs "-DVERSION_FILE_PATH=/__w/1/s/artifacts/obj/_version.c" -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY=libc++ -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY_STATIC=ON -cmakeargs -DCLR_CMAKE_CXX_ABI_LIBRARY=libstdc++ -cross -runtimeflavor Mono -outputrid linux-musl-x64" exited with code 2.

Check failure on line 113 in src/native/corehost/corehost.proj

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug Mono_MiniJIT_LibrariesTests)

src/native/corehost/corehost.proj#L113

src/native/corehost/corehost.proj(113,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/__w/1/s/src/native/corehost/build.sh" Debug x64 -commithash "37fc7f203a545400b90b1c584b5a2464c034eb88" -os linux -cmakeargs "-DVERSION_FILE_PATH=/__w/1/s/artifacts/obj/_version.c" -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY=libc++ -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY_STATIC=ON -cmakeargs -DCLR_CMAKE_CXX_ABI_LIBRARY=libstdc++ -cross -runtimeflavor Mono -outputrid linux-x64" exited with code 2.

Check failure on line 113 in src/native/corehost/corehost.proj

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug Mono_Interpreter_LibrariesTests)

src/native/corehost/corehost.proj#L113

src/native/corehost/corehost.proj(113,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/__w/1/s/src/native/corehost/build.sh" Debug x64 -commithash "37fc7f203a545400b90b1c584b5a2464c034eb88" -os linux -cmakeargs "-DVERSION_FILE_PATH=/__w/1/s/artifacts/obj/_version.c" -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY=libc++ -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY_STATIC=ON -cmakeargs -DCLR_CMAKE_CXX_ABI_LIBRARY=libstdc++ -cross -runtimeflavor Mono -outputrid linux-x64" exited with code 2.

Check failure on line 113 in src/native/corehost/corehost.proj

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Release AllSubsets_Mono_LLVMAOT)

src/native/corehost/corehost.proj#L113

src/native/corehost/corehost.proj(113,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/__w/1/s/src/native/corehost/build.sh" Release x64 -commithash "37fc7f203a545400b90b1c584b5a2464c034eb88" -os linux -cmakeargs "-DVERSION_FILE_PATH=/__w/1/s/artifacts/obj/_version.c" -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY=libc++ -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY_STATIC=ON -cmakeargs -DCLR_CMAKE_CXX_ABI_LIBRARY=libstdc++ -cross -runtimeflavor Mono -outputrid linux-x64" exited with code 2.

Check failure on line 113 in src/native/corehost/corehost.proj

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 release CrossAOT_Mono crossaot)

src/native/corehost/corehost.proj#L113

src/native/corehost/corehost.proj(113,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/__w/1/s/src/native/corehost/build.sh" Release x64 -commithash "37fc7f203a545400b90b1c584b5a2464c034eb88" -os linux -cmakeargs "-DVERSION_FILE_PATH=/__w/1/s/artifacts/obj/_version.c" -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY=libc++ -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY_STATIC=ON -cmakeargs -DCLR_CMAKE_CXX_ABI_LIBRARY=libstdc++ -cross -runtimeflavor Mono -outputrid linux-musl-x64" exited with code 2.

Check failure on line 113 in src/native/corehost/corehost.proj

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm64 release CrossAOT_Mono crossaot)

src/native/corehost/corehost.proj#L113

src/native/corehost/corehost.proj(113,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/__w/1/s/src/native/corehost/build.sh" Release arm64 -commithash "37fc7f203a545400b90b1c584b5a2464c034eb88" -os linux -cmakeargs "-DVERSION_FILE_PATH=/__w/1/s/artifacts/obj/_version.c" -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY=libc++ -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY_STATIC=ON -cmakeargs -DCLR_CMAKE_CXX_ABI_LIBRARY=libstdc++ -cross -runtimeflavor Mono -outputrid linux-musl-arm64" exited with code 2.

Check failure on line 113 in src/native/corehost/corehost.proj

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 release CrossAOT_Mono crossaot)

src/native/corehost/corehost.proj#L113

src/native/corehost/corehost.proj(113,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/__w/1/s/src/native/corehost/build.sh" Release x64 -commithash "37fc7f203a545400b90b1c584b5a2464c034eb88" -os linux -cmakeargs "-DVERSION_FILE_PATH=/__w/1/s/artifacts/obj/_version.c" -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY=libc++ -cmakeargs -DCLR_CMAKE_CXX_STANDARD_LIBRARY_STATIC=ON -cmakeargs -DCLR_CMAKE_CXX_ABI_LIBRARY=libstdc++ -cross -runtimeflavor Mono -outputrid linux-x64" exited with code 2.
</Target>

<Target Name="BuildCoreHostWindows"
Expand Down
Loading