Mock Version: 3.0 Mock Version: 3.0 Mock Version: 3.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/dotnet5.0.spec'], chrootPath='/var/lib/mock/dist-oc8-dotnet-12103-2116/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/dotnet5.0.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/dotnet5.0-5.0.210-1.oc8.1.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/dotnet5.0.spec'], chrootPath='/var/lib/mock/dist-oc8-dotnet-12103-2116/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/dotnet5.0.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.4umH0s + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf dotnet-v5.0.210-SDK + /usr/bin/gzip -dc /builddir/build/SOURCES/dotnet-v5.0.210-SDK.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd dotnet-v5.0.210-SDK + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + find -iname '*.dll' -type f -delete + find -iname '*.so' -type f -delete + find -iname '*.tar.gz' -type f -delete + find -iname '*.nupkg' -type f -delete + find -iname '*.zip' -type f -delete + rm -rf .dotnet/ + rm -rf packages/source-built + mkdir -p packages/archive + ln -s /usr/lib64/dotnet/source-built-artifacts/Private.SourceBuilt.Artifacts.5.0.0-dev.tar.gz packages/archive/ + ln -s /usr/lib64/dotnet/reference-packages/Private.SourceBuild.ReferencePackages.0.tar.gz packages/archive + sed -i 's|/usr/share/dotnet|/usr/lib64/dotnet|' src/dotnet-runtime.b3afe992253738208ccaaa058e726553889928de/src/installer/corehost/cli/hostmisc/pal.unix.cpp + sed -i 's|skiptests|skiptests ignorewarnings|' repos/runtime.common.props Patch #1 (source-build-remove-test-references-from-patches.patch): + echo 'Patch #1 (source-build-remove-test-references-from-patches.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file patches/runtime/0036-Add-net46-for-some-packages-to-support-Omnisharp.patch ~/build/BUILD/dotnet-v5.0.210-SDK/src/dotnet-runtime.b3afe992253738208ccaaa058e726553889928de ~/build/BUILD/dotnet-v5.0.210-SDK ~/build/BUILD/dotnet-v5.0.210-SDK + pushd src/dotnet-runtime.b3afe992253738208ccaaa058e726553889928de + popd + pushd src/dotnet-sdk.b8cd0421a7a9e5f6bd28e446052f4d64540d0cf0 + echo 'Patch #500 (sdk-telemetry-optout.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 ~/build/BUILD/dotnet-v5.0.210-SDK/src/dotnet-sdk.b8cd0421a7a9e5f6bd28e446052f4d64540d0cf0 ~/build/BUILD/dotnet-v5.0.210-SDK Patch #500 (sdk-telemetry-optout.patch): patching file src/Cli/dotnet/Program.cs Hunk #1 succeeded at 29 (offset 1 line). ~/build/BUILD/dotnet-v5.0.210-SDK + popd + cat source-build-info.txt source-build: ae42651d0d32b60d03bf91f95d346c51d49a9b6f . (v5.0.209.1-SDK-12-gae42651) submodules: + find -iname nuget.config -exec echo '{}:' ';' -exec cat '{}' ';' -exec echo ';' ./eng/common/sdl/NuGet.config:  ./src/Newtonsoft.Json.4ab34b0461fb595805d092a46a58f35f66c84d6a/Src/NuGet.Config:  ./src/sourcelink.f175b06862f889474b689a57527e489101c774cc/eng/common/sdl/NuGet.config:  ./src/sourcelink.f175b06862f889474b689a57527e489101c774cc/NuGet.config: ./src/dotnet-runtime.b3afe992253738208ccaaa058e726553889928de/eng/common/sdl/NuGet.config:  ./src/dotnet-runtime.b3afe992253738208ccaaa058e726553889928de/eng/internal/NuGet.config: ./src/dotnet-runtime.b3afe992253738208ccaaa058e726553889928de/NuGet.config: ./src/roslyn.f8111b17631aa5e2703dc11acd671c6ea22c3af1/eng/common/sdl/NuGet.config:  ./src/roslyn.f8111b17631aa5e2703dc11acd671c6ea22c3af1/NuGet.config: ./src/roslyn.f8111b17631aa5e2703dc11acd671c6ea22c3af1/src/Workspaces/MSBuildTest/Resources/NuGet.Config:  ./src/fsharp.7ce7132f1459095e635194d09d6f73265352029a/eng/common/sdl/NuGet.config:  ./src/fsharp.7ce7132f1459095e635194d09d6f73265352029a/NuGet.config: ./src/fsharp.7ce7132f1459095e635194d09d6f73265352029a/tests/FSharp.Build.UnitTests/NuGet.Config:  ./src/fsharp.7ce7132f1459095e635194d09d6f73265352029a/tests/EndToEndBuildTests/ComboProvider/ComboProvider.Tests/NuGet.config: ./src/fsharp.7ce7132f1459095e635194d09d6f73265352029a/tests/EndToEndBuildTests/BasicProvider/BasicProvider.Tests/NuGet.config: ./src/arcade.6eec4404c2df5bfa46e5da52383c881c5cca3a9f/eng/common/sdl/NuGet.config:  ./src/arcade.6eec4404c2df5bfa46e5da52383c881c5cca3a9f/NuGet.config: ./src/symreader.f8a3ba85aed339fb8d08ca26f3876b28c32d58ee/nuget.config: ./src/dotnet-installer.3665e1a61c910fa07f98697863e0b1781704fca4/eng/common/sdl/NuGet.config:  ./src/dotnet-installer.3665e1a61c910fa07f98697863e0b1781704fca4/NuGet.config: ./src/diagnostics.47296ca69bb66180c132f3b16667f904dfc7c6c7/eng/common/sdl/NuGet.config:  ./src/diagnostics.47296ca69bb66180c132f3b16667f904dfc7c6c7/NuGet.config: ./src/ApplicationInsights-dotnet.53b80940842204f78708a538628288ff5d741a1d/NuGet.config:  ./src/Newtonsoft.Json.e5ac9a8473dfdefb8fe2cddae433a9aaa94a5b37/Src/NuGet.Config:  ./src/command-line-api.6ddde11ed45e3f4b9d80c97670f347dbfda15c3f/eng/common/sdl/NuGet.config:  ./src/command-line-api.6ddde11ed45e3f4b9d80c97670f347dbfda15c3f/NuGet.config:  ./src/roslyn-analyzers.92e6dca2e4d1966c3b7b657dd158ced2e6a2ae71/eng/common/sdl/NuGet.config:  ./src/roslyn-analyzers.92e6dca2e4d1966c3b7b657dd158ced2e6a2ae71/NuGet.config: ./src/roslyn-analyzers.92e6dca2e4d1966c3b7b657dd158ced2e6a2ae71/tools/AnalyzerCodeGenerator/template/src/.nuget/NuGet.Config:  ./src/linker.a3cca7a168d83444e833eceac61e721f97d5cfb2/eng/common/sdl/NuGet.config:  ./src/linker.a3cca7a168d83444e833eceac61e721f97d5cfb2/NuGet.config: ./src/nuget.client.d525b0e670f3b6cbd5c73a35f04730a9f658c852/NuGet.Config: ./src/nuget.client.d525b0e670f3b6cbd5c73a35f04730a9f658c852/submodules/FileSystem/NuGet.config: ./src/nuget.client.d525b0e670f3b6cbd5c73a35f04730a9f658c852/submodules/Common/NuGet.config:  ./src/test-templates.a2b05d8171915c69ad97ab5d49bbb07d2c780a67/eng/common/sdl/NuGet.config:  ./src/test-templates.a2b05d8171915c69ad97ab5d49bbb07d2c780a67/NuGet.config: ./src/xliff-tasks.d2bec3a64076f8463de4756913712badfce0a01d/eng/common/sdl/NuGet.config:  ./src/xliff-tasks.d2bec3a64076f8463de4756913712badfce0a01d/NuGet.config: ./src/dotnet-aspnetcore.55738ff96b832439076e25584cfe0eb3bace9b01/eng/common/sdl/NuGet.config:  ./src/dotnet-aspnetcore.55738ff96b832439076e25584cfe0eb3bace9b01/NuGet.config: ./src/dotnet-aspnetcore.55738ff96b832439076e25584cfe0eb3bace9b01/src/Mvc/benchmarkapps/NuGet.config: ./src/dotnet-aspnetcore.55738ff96b832439076e25584cfe0eb3bace9b01/src/Razor/test/testassets/nuget.config: ./src/dotnet-aspnetcore.55738ff96b832439076e25584cfe0eb3bace9b01/src/Components/benchmarkapps/BlazingPizza.Server/NuGet.config: ./src/dotnet-sdk.b8cd0421a7a9e5f6bd28e446052f4d64540d0cf0/eng/common/sdl/NuGet.config:  ./src/dotnet-sdk.b8cd0421a7a9e5f6bd28e446052f4d64540d0cf0/NuGet.config: ./src/dotnet-sdk.b8cd0421a7a9e5f6bd28e446052f4d64540d0cf0/src/Assets/NonRestoredTestProjects/AppThrowingException/AppDependingOnOtherAsTool/NuGet.Config: ./src/dotnet-sdk.b8cd0421a7a9e5f6bd28e446052f4d64540d0cf0/src/Assets/NonRestoredTestProjects/ToolWithRandomPackageName/AppWithDepOnTool/NuGet.Config: ./src/extensions.a0631e6115806353c03406b4fb1e0fb66b145d58/eng/common/sdl/NuGet.config:  ./src/extensions.a0631e6115806353c03406b4fb1e0fb66b145d58/NuGet.config: ./src/xdt.c01a538851a8ab1a1fbeb2e6243f391fff7587b4/NuGet.config:  ./src/msbuild.5e4b48a27efce55a613664b58d353ab4c8d1f6c1/eng/common/sdl/NuGet.config:  ./src/msbuild.5e4b48a27efce55a613664b58d353ab4c8d1f6c1/NuGet.config: ./src/CliCommandLineParser.0e89c2116ad28e404ba56c14d1c3f938caa25a01/NuGet.config: -> ./src/vstest.99b911a57a02fc5d2eeef23e9ab8cbea4505678b/test/TestAssets/NuGet.config:  ./src/vstest.99b911a57a02fc5d2eeef23e9ab8cbea4505678b/eng/common/sdl/NuGet.config:  ./src/vstest.99b911a57a02fc5d2eeef23e9ab8cbea4505678b/NuGet.config: ./src/vstest.99b911a57a02fc5d2eeef23e9ab8cbea4505678b/src/package/publish/NuGet.config: ./src/templating.5a6c095df390fbb5c3f232ab0adedda53d4e2206/eng/common/sdl/NuGet.config:  ./src/templating.5a6c095df390fbb5c3f232ab0adedda53d4e2206/NuGet.config: ./src/templating.5a6c095df390fbb5c3f232ab0adedda53d4e2206/template_feed/Microsoft.DotNet.Common.ItemTemplates/content/Nuget/nuget.config: ./src/Humanizer.b30550eed103a6970d8465fe7c5c16300b70be81/src/NuGet.config: ./tools-local/tasks/Microsoft.DotNet.SourceBuild.Tasks.LeakDetection/NuGet.Config: ./packages/text-only/microsoft.dotnet.common.itemtemplates/3.1.15/content/Nuget/nuget.config: + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.eA89Pu + umask 022 + cd /builddir/build/BUILD + cd dotnet-v5.0.210-SDK + cat /etc/os-release NAME="OpenCloudOS" VERSION="8.5" ID="rhel" ID_LIKE="rhel fedora centos" VERSION_ID="8.5" PLATFORM_ID="platform:oc8" PRETTY_NAME="OpenCloudOS 8.5" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:opencloudos:opencloudos:8" CENTOS_MANTISBT_PROJECT="CentOS-8" CENTOS_MANTISBT_PROJECT_VERSION="8" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="8" NAME_ORIG="CentOS Linux" + cp -a /usr/lib64/dotnet previously-built-dotnet + export 'CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export 'CXXFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export 'LDFLAGS=-Wl,-z,relro -Wl,-z,now ' + LDFLAGS='-Wl,-z,relro -Wl,-z,now ' ++ echo -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection ++ sed -e s/-fstack-clash-protection// + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fcf-protection' ++ echo -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection ++ sed -e s/-fstack-clash-protection// + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fcf-protection' + export 'EXTRA_CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fcf-protection' + EXTRA_CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fcf-protection' + export 'EXTRA_CXXFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fcf-protection' + EXTRA_CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fcf-protection' + export 'EXTRA_LDFLAGS=-Wl,-z,relro -Wl,-z,now ' + EXTRA_LDFLAGS='-Wl,-z,relro -Wl,-z,now ' + unset CFLAGS + unset CXXFLAGS + unset LDFLAGS + VERBOSE=1 + ./build.sh --with-sdk previously-built-dotnet -- /v:n /p:SkipPortableRuntimeBuild=true /p:LogVerbosity=n /p:MinimalConsoleLogOutput=false /p:ContinueOnPrebuiltBaselineError=true /p:CheckEolTargetFramework=false /nowarn:NU1603 /warnNotAsError:NU1603 /p:UseSystemLibunwind=false Detected '--': passing remaining parameters '/v:n /p:SkipPortableRuntimeBuild=true /p:LogVerbosity=n /p:MinimalConsoleLogOutput=false /p:ContinueOnPrebuiltBaselineError=true /p:CheckEolTargetFramework=false /nowarn:NU1603 /warnNotAsError:NU1603 /p:UseSystemLibunwind=false' as build.sh arguments. Using custom bootstrap SDK from '/builddir/build/BUILD/dotnet-v5.0.210-SDK/previously-built-dotnet', version '5.0.209' Found bootstrap SDK 5.0.209, bootstrap Arcade 5.0.0-beta.20431.1, bootstrap SourceLink 1.0.0, bootstrap DotNetHost 5.0.12 Microsoft (R) Build Engine version 16.9.0+5e4b48a27 for .NET Copyright (C) Microsoft Corporation. All rights reserved. MSBUILD : error MSB1001: Unknown switch. Switch: /warnNotAsError:NU1603 For switch syntax, type "MSBuild -help" error: Bad exit status from /var/tmp/rpm-tmp.eA89Pu (%build) Bad exit status from /var/tmp/rpm-tmp.eA89Pu (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/dotnet5.0.spec