Skip to content

9.0.0 source build fails (EXEC : error : %s\n", symbolName, dlerror()); abort();) #4781

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

Closed
aspann opened this issue Dec 3, 2024 · 1 comment
Labels
area-upstream-fix Needs a change in a contributing repo untriaged

Comments

@aspann
Copy link

aspann commented Dec 3, 2024

Describe the Bug

Source build fails (v9.0.100) and bails out with:
[...] EXEC : error : %s\n", symbolName, dlerror()); abort(); [...]

Steps to Reproduce

  • checkout latest source (git clone --depth 1 -b v9.0.0 https://github.com/dotnet/dotnet ./dotnet-sdk-9.0.0)
  • sanitize env:
    unset DOTNET_ROOT
    unset NUGET_PACKAGES
    
    export DOTNET_CLI_TELEMETRY_OPTOUT="1"
    export DOTNET_NUGET_SIGNATURE_VERIFICATION="false"
    export DOTNET_SKIP_FIRST_TIME_EXPERIENCE="1"
    export MSBUILDDISABLENODEREUSE="1"
    export MSBUILDTERMINALLOGGER="off"
    export UseSharedCompilation="false"
  • prepare:
    ./prep-source-build.sh
  • build:
    ./build.sh --source-build \
    	--clean-while-building \
    	--with-system-libs "+brotli+libunwind+rapidjson+zlib+" \
    	--configuration "Release" \
    	-- \
    	-maxCpuCount:"1" \
    	-p:ContinueOnPrebuiltBaselineError="true" \
    	-verbosity:"minimal" \
    	-p:LogVerbosity="minimal" \
    	-p:verbosity="minimal" \
    	-p:MinimalConsoleLogOutput="false" 

result:

[...]
    /tmp/dotnet-sdk-9.0.0/src/runtime/src/native/libs/Common/pal_utilities.h(61,5): warning GFA5287A9: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] [/tmp/dotnet-sdk-9.0.0/src/runtime/src/native/libs/build-native.proj]
    EXEC : error : %s\n  "138, |    g s si_fl i(bf_nn#a#m_ep,tr  d=l=e rNrUoLrL()) ){;  frpertiunrtnf (-s1t;d e}r [/tmp/dotnet-sdk-9.0.0/src/runtime/src/native/libs/build-native.proj]
    EXEC : error : %/tmp/dotnet-sdk-9.0.0/src/runtime/src/native/libs/System.Globalization.Native/pal_icushim_internal.hs:\224n:"5,:  snote: yexpanded from macro 'FOR_ALL_ICU_FUNCTIONS'm [/tmp/dotnet-sdk-9.0.0/src/runtime/src/native/libs/build-native.proj]
    EXEC : error : %s\n",   176s | y m b o lPNEaRm_eF,U NdClTeIrOrNo_rB(L)O)C;K (aubnoorrmt2(_)i;s N}o [/tmp/dotnet-sdk-9.0.0/src/runtime/src/native/libs/build-native.proj]
    /tmp/dotnet-sdk-9.0.0/src/runtime/src/native/libs/build-native.proj(73,5): error MSB3073: The command ""/tmp/dotnet-sdk-9.0.0/src/runtime/src/native/libs/build-native.sh" x64 Release outconfig net9.0-linux-Release-x64 -os linux /p:OfficialBuildId="20241028.9" -numproc 32 -portablebuild=false -keepnativesymbols -cmakeargs " -DCLR_CMAKE_USE_SYSTEM_BROTLI=true -DCLR_CMAKE_USE_SYSTEM_LIBUNWIND=true -DCLR_CMAKE_USE_SYSTEM_RAPIDJSON=true -DCLR_CMAKE_USE_SYSTEM_ZLIB=true" " exited with code -1.
        784 Warning(s)
        4 Error(s)
    
    Time Elapsed 00:02:19.43
    Build failed with exit code 1. Check errors above.
  /tmp/dotnet-sdk-9.0.0/artifacts/source-built-sdks/Microsoft.DotNet.Arcade.Sdk/tools/SourceBuild/SourceBuildArcadeBuild.targets(130,5): error MSB3073: The command "./build.sh  --restore --build --publish --arch x64 --configuration Release --allconfigurations --verbosity minimal --nodereuse false --warnAsError false --outputrid gentoo.2.17-x64 /p:PackageOS=linux /p:ToolsOS=linux /p:AdditionalRuntimeIdentifierParent=linux-x64 /p:DotNetBuildRepo=true /p:DotNetBuildOrchestrator=true /p:OfficialBuildId=20241028.9 /p:ContinuousIntegrationBuild=true /p:PortableBuild=false /p:RestoreConfigFile=/tmp/dotnet-sdk-9.0.0/artifacts/obj/runtime/NuGet.config /p:SourceBuiltAssetsDir=/tmp/dotnet-sdk-9.0.0/artifacts/assets/Release/ /p:SourceBuiltShippingPackagesDir=/tmp/dotnet-sdk-9.0.0/artifacts/packages/Release/Shipping/runtime/ /p:SourceBuiltNonShippingPackagesDir=/tmp/dotnet-sdk-9.0.0/artifacts/packages/Release/NonShipping/runtime/ /p:SourceBuiltAssetManifestsDir=/tmp/dotnet-sdk-9.0.0/artifacts/obj/AssetManifests/runtime/ /p:SourceBuiltSymbolsDir=/tmp/dotnet-sdk-9.0.0/artifacts/obj/Symbols/runtime/ /p:GitHubRepositoryName=runtime --cmakeargs -DCLR_CMAKE_USE_SYSTEM_BROTLI=true --cmakeargs -DCLR_CMAKE_USE_SYSTEM_LIBUNWIND=true --cmakeargs -DCLR_CMAKE_USE_SYSTEM_RAPIDJSON=true --cmakeargs -DCLR_CMAKE_USE_SYSTEM_ZLIB=true /p:DotNetBuildInnerRepo=true /p:DotNetBuildSourceOnly=true /p:ArcadeInnerBuildFromSource=true /p:DotNetBuildFromSource=true /p:RepoRoot="/tmp/dotnet-sdk-9.0.0/src/runtime/" /p:ArtifactsDir="/tmp/dotnet-sdk-9.0.0/src/runtime/artifacts/" /bl:"/tmp/dotnet-sdk-9.0.0/src/runtime/artifacts/log/Release/source-inner-build.binlog" /p:ContinuousIntegrationBuild=true /p:SourceBuildOutputDir="/tmp/dotnet-sdk-9.0.0/src/runtime/artifacts/sb/" /p:DotNetPackageVersionPropsPath="/tmp/dotnet-sdk-9.0.0/artifacts/obj/PackageVersions/PackageVersions.runtime.props" /p:FullAssemblySigningSupported=false /p:DotNetPublishUsingPipelines=true /p:GitHubRepositoryName=runtime" exited with code 1. [/tmp/dotnet-sdk-9.0.0/artifacts/source-built-sdks/Microsoft.DotNet.Arcade.Sdk/tools/Build.proj]
  ##vso[task.logissue type=error;sourcepath=/tmp/dotnet-sdk-9.0.0/artifacts/source-built-sdks/Microsoft.DotNet.Arcade.Sdk/tools/SourceBuild/SourceBuildArcadeBuild.targets;linenumber=130;columnnumber=5;code=MSB3073;]The command "./build.sh  --restore --build --publish --arch x64 --configuration Release --allconfigurations --verbosity minimal --nodereuse false --warnAsError false --outputrid gentoo.2.17-x64 /p:PackageOS=linux /p:ToolsOS=linux /p:AdditionalRuntimeIdentifierParent=linux-x64 /p:DotNetBuildRepo=true /p:DotNetBuildOrchestrator=true /p:OfficialBuildId=20241028.9 /p:ContinuousIntegrationBuild=true /p:PortableBuild=false /p:RestoreConfigFile=/tmp/dotnet-sdk-9.0.0/artifacts/obj/runtime/NuGet.config /p:SourceBuiltAssetsDir=/tmp/dotnet-sdk-9.0.0/artifacts/assets/Release/ /p:SourceBuiltShippingPackagesDir=/tmp/dotnet-sdk-9.0.0/artifacts/packages/Release/Shipping/runtime/ /p:SourceBuiltNonShippingPackagesDir=/tmp/dotnet-sdk-9.0.0/artifacts/packages/Release/NonShipping/runtime/ /p:SourceBuiltAssetManifestsDir=/tmp/dotnet-sdk-9.0.0/artifacts/obj/AssetManifests/runtime/ /p:SourceBuiltSymbolsDir=/tmp/dotnet-sdk-9.0.0/artifacts/obj/Symbols/runtime/ /p:GitHubRepositoryName=runtime --cmakeargs -DCLR_CMAKE_USE_SYSTEM_BROTLI=true --cmakeargs -DCLR_CMAKE_USE_SYSTEM_LIBUNWIND=true --cmakeargs -DCLR_CMAKE_USE_SYSTEM_RAPIDJSON=true --cmakeargs -DCLR_CMAKE_USE_SYSTEM_ZLIB=true /p:DotNetBuildInnerRepo=true /p:DotNetBuildSourceOnly=true /p:ArcadeInnerBuildFromSource=true /p:DotNetBuildFromSource=true /p:RepoRoot="/tmp/dotnet-sdk-9.0.0/src/runtime/" /p:ArtifactsDir="/tmp/dotnet-sdk-9.0.0/src/runtime/artifacts/" /bl:"/tmp/dotnet-sdk-9.0.0/src/runtime/artifacts/log/Release/source-inner-build.binlog" /p:ContinuousIntegrationBuild=true /p:SourceBuildOutputDir="/tmp/dotnet-sdk-9.0.0/src/runtime/artifacts/sb/" /p:DotNetPackageVersionPropsPath="/tmp/dotnet-sdk-9.0.0/artifacts/obj/PackageVersions/PackageVersions.runtime.props" /p:FullAssemblySigningSupported=false /p:DotNetPublishUsingPipelines=true /p:GitHubRepositoryName=runtime" exited with code 1.
  
  Build FAILED.
  
  /tmp/dotnet-sdk-9.0.0/artifacts/source-built-sdks/Microsoft.DotNet.Arcade.Sdk/tools/SourceBuild/SourceBuildArcadeBuild.targets(130,5): error MSB3073: The command "./build.sh  --restore --build --publish --arch x64 --configuration Release --allconfigurations --verbosity minimal --nodereuse false --warnAsError false --outputrid gentoo.2.17-x64 /p:PackageOS=linux /p:ToolsOS=linux /p:AdditionalRuntimeIdentifierParent=linux-x64 /p:DotNetBuildRepo=true /p:DotNetBuildOrchestrator=true /p:OfficialBuildId=20241028.9 /p:ContinuousIntegrationBuild=true /p:PortableBuild=false /p:RestoreConfigFile=/tmp/dotnet-sdk-9.0.0/artifacts/obj/runtime/NuGet.config /p:SourceBuiltAssetsDir=/tmp/dotnet-sdk-9.0.0/artifacts/assets/Release/ /p:SourceBuiltShippingPackagesDir=/tmp/dotnet-sdk-9.0.0/artifacts/packages/Release/Shipping/runtime/ /p:SourceBuiltNonShippingPackagesDir=/tmp/dotnet-sdk-9.0.0/artifacts/packages/Release/NonShipping/runtime/ /p:SourceBuiltAssetManifestsDir=/tmp/dotnet-sdk-9.0.0/artifacts/obj/AssetManifests/runtime/ /p:SourceBuiltSymbolsDir=/tmp/dotnet-sdk-9.0.0/artifacts/obj/Symbols/runtime/ /p:GitHubRepositoryName=runtime --cmakeargs -DCLR_CMAKE_USE_SYSTEM_BROTLI=true --cmakeargs -DCLR_CMAKE_USE_SYSTEM_LIBUNWIND=true --cmakeargs -DCLR_CMAKE_USE_SYSTEM_RAPIDJSON=true --cmakeargs -DCLR_CMAKE_USE_SYSTEM_ZLIB=true /p:DotNetBuildInnerRepo=true /p:DotNetBuildSourceOnly=true /p:ArcadeInnerBuildFromSource=true /p:DotNetBuildFromSource=true /p:RepoRoot="/tmp/dotnet-sdk-9.0.0/src/runtime/" /p:ArtifactsDir="/tmp/dotnet-sdk-9.0.0/src/runtime/artifacts/" /bl:"/tmp/dotnet-sdk-9.0.0/src/runtime/artifacts/log/Release/source-inner-build.binlog" /p:ContinuousIntegrationBuild=true /p:SourceBuildOutputDir="/tmp/dotnet-sdk-9.0.0/src/runtime/artifacts/sb/" /p:DotNetPackageVersionPropsPath="/tmp/dotnet-sdk-9.0.0/artifacts/obj/PackageVersions/PackageVersions.runtime.props" /p:FullAssemblySigningSupported=false /p:DotNetPublishUsingPipelines=true /p:GitHubRepositoryName=runtime" exited with code 1. [/tmp/dotnet-sdk-9.0.0/artifacts/source-built-sdks/Microsoft.DotNet.Arcade.Sdk/tools/Build.proj]
      0 Warning(s)
      1 Error(s)
  
  Time Elapsed 00:02:19.68
  Build failed with exit code 1. Check errors above.
/tmp/dotnet-sdk-9.0.0/repo-projects/Directory.Build.targets(459,5): error MSB3073: The command "/tmp/dotnet-sdk-9.0.0/src/runtime/build.sh --restore --build --pack --publish --ci --configuration Release -bl /p:DotNetBuildRepo=true /p:DotNetBuildOrchestrator=true /p:RestoreConfigFile=/tmp/dotnet-sdk-9.0.0/artifacts/obj/runtime/NuGet.config /p:SourceBuiltAssetsDir=/tmp/dotnet-sdk-9.0.0/artifacts/assets/Release/ /p:SourceBuiltAssetManifestsDir=/tmp/dotnet-sdk-9.0.0/artifacts/obj/AssetManifests/runtime/ /p:SourceBuiltSymbolsDir=/tmp/dotnet-sdk-9.0.0/artifacts/obj/Symbols/runtime/ /p:ArcadeBuildFromSource=true /p:DotNetBuildSourceOnly=true /p:PreviouslySourceBuiltNupkgCacheDir="/tmp/dotnet-sdk-9.0.0/prereqs/packages/previously-source-built/" /p:ReferencePackageNupkgCacheDir="/tmp/dotnet-sdk-9.0.0/prereqs/packages/reference/" --arch x64 --os linux /p:TargetRid=gentoo.2.17-x64 /p:RuntimeOS=linux /p:BaseOS=linux-x64 /p:UseSystemLibs=+brotli+libunwind+rapidjson+zlib+ /p:PortableBuild=false /p:SourceBuildNonPortable=true /p:UsingToolMicrosoftNetCompilers=false /p:SourceBuiltShippingPackagesDir=/tmp/dotnet-sdk-9.0.0/artifacts/packages/Release/Shipping/runtime/ /p:SourceBuiltNonShippingPackagesDir=/tmp/dotnet-sdk-9.0.0/artifacts/packages/Release/NonShipping/runtime/" exited with code 1. [/tmp/dotnet-sdk-9.0.0/repo-projects/runtime.proj]

expected-result: succesful build

Other Information

It seems that this is somehow ICU related. (but I got the same issue with all available versions of it [74, 75, 76])

Complete build log: build.log.gz

@ghost ghost added area-upstream-fix Needs a change in a contributing repo untriaged labels Dec 3, 2024
@aspann
Copy link
Author

aspann commented Dec 3, 2024

... as I already pointed to ICU, it was an (my?) environmental issue, fixed by a simple:

unset CLR_ICU_VERSION_OVERRIDE

please excuse my clumsiness - closing.

@aspann aspann closed this as completed Dec 3, 2024
@github-project-automation github-project-automation bot moved this from Backlog to Done in .NET Source Build Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-upstream-fix Needs a change in a contributing repo untriaged
Projects
Archived in project
Development

No branches or pull requests

1 participant