Skip to content

[tests] enable NoSymbolsArgShouldReduceAppSize test - #6544

Merged
jonathanpeppers merged 1 commit into
dotnet:mainfrom
jonathanpeppers:tests-enable-llvm
Dec 6, 2021
Merged

jonathanpeppers merged 1 commit into
dotnet:mainfrom
jonathanpeppers:tests-enable-llvm

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

@jonathanpeppers

Copy link
Copy Markdown
Member Author

The enabled test passed:

Screen Shot 2021-12-06 at 8 00 17 AM

Going to merge this.

@jonathanpeppers
jonathanpeppers merged commit 5dcf294 into dotnet:main Dec 6, 2021
@jonathanpeppers
jonathanpeppers deleted the tests-enable-llvm branch December 6, 2021 14:01
jonpryor added a commit to jonpryor/xamarin-android that referenced this pull request Dec 9, 2021
)"

This reverts commit 5dcf294.

Context: dotnet#6520
Context: dotnet#6560
Context: 5dcf294
Context: c96d9f4

There was a "curious" interaction between 5dcf294 (PR dotnet#6544) and
commit c96d9f4 (PR dotnet#6539): they both had green PRs, but each of
their PR build ran without the other existing.  Once both were merged,
all subsequent commits, and PRs based on c96d9f4, had a unit test
failure in `NoSymbolsArgShouldReduceAppSize`:

	Task "MonoAOTCompiler" requested 6 cores, acquired 6 cores, and now holds 6 cores total.
	[System.Private.CoreLib.dll] Running: C:\Users\cloudtest\android-toolchain\dotnet\packs\Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm64\6.0.1-mauipre.1.21602.7\Sdk\..\tools\mono-aot-cross.exe --response="C:\Users\cloudtest\AppData\Local\Temp\tmp4D48.tmp"
	[System.Private.CoreLib.dll] Using working directory: C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\linked
	[System.Private.CoreLib.dll] Setting environment variables for execution:
	[System.Private.CoreLib.dll] 	MONO_PATH = C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\linked;
	[System.Private.CoreLib.dll] 	MONO_ENV_OPTIONS =
	[System.Private.CoreLib.dll] Exit code: 1
	[System.Private.CoreLib.dll] Exec (with response file contents expanded) in C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\linked: MONO_PATH=C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\linked; MONO_ENV_OPTIONS= C:\Users\cloudtest\android-toolchain\dotnet\packs\Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm64\6.0.1-mauipre.1.21602.7\Sdk\..\tools\mono-aot-cross.exe --debug --llvm "--aot=asmwriter,mtriple=aarch64-linux-android,tool-prefix=C:\Users\cloudtest\android-toolchain\dotnet\packs\Microsoft.Android.Sdk.Windows\31.0.101-preview.12.134\tools\binutils\aarch64-linux-android-,ld-name=ld.EXE,ld-flags=-LC:\Program\ Files\ (x86)\Android\android-sdk\ndk\23.1.7779620\toolchains\llvm\prebuilt\windows-x86_64\sysroot\usr\lib\aarch64-linux-android\21 C:\Program\ Files\ (x86)\Android\android-sdk\ndk\23.1.7779620\toolchains\llvm\prebuilt\windows-x86_64\sysroot\usr\lib\aarch64-linux-android\21\libc.so C:\Program\ Files\ (x86)\Android\android-sdk\ndk\23.1.7779620\toolchains\llvm\prebuilt\windows-x86_64\sysroot\usr\lib\aarch64-linux-android\21\libm.so,temp-path=C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\aot\arm64-v8a\System.Private.CoreLib,nodebug,llvm-path=C:\Users\cloudtest\android-toolchain\dotnet\packs\Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm64\6.0.1-mauipre.1.21602.7\Sdk\..\tools,outfile=C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\aot\System.Private.CoreLib.dll.so,llvm-outfile=C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\aot\System.Private.CoreLib.dll-llvm.o" "System
	C:\Users\cloudtest\android-toolchain\dotnet\packs\Microsoft.Android.Sdk.Windows\31.0.101-preview.12.134\tools\binutils\aarch64-linux-android-ld.EXE: cannot find Files\: No such file or directory
	C:\Users\cloudtest\android-toolchain\dotnet\packs\Microsoft.Android.Sdk.Windows\31.0.101-preview.12.134\tools\binutils\aarch64-linux-android-ld.EXE: cannot find (x86)\Android\android-sdk\ndk\23.1.7779620\toolchains\llvm\prebuilt\windows-x86_64\sysroot\usr\lib\aarch64-linux-android\21: No such file or directory
	C:\Users\cloudtest\android-toolchain\dotnet\packs\Microsoft.Android.Sdk.Windows\31.0.101-preview.12.134\tools\binutils\aarch64-linux-android-ld.EXE: cannot find C:\Program\: No such file or directory
	C:\Users\cloudtest\android-toolchain\dotnet\packs\Microsoft.Android.Sdk.Windows\31.0.101-preview.12.134\tools\binutils\aarch64-linux-android-ld.EXE: cannot find Files\: No such file or directory
	C:\Users\cloudtest\android-toolchain\dotnet\packs\Microsoft.Android.Sdk.Windows\31.0.101-preview.12.134\tools\binutils\aarch64-linux-android-ld.EXE: cannot find (x86)\Android\android-sdk\ndk\23.1.7779620\toolchains\llvm\prebuilt\windows-x86_64\sysroot\usr\lib\aarch64-linux-android\21\libc.so: No such file or directory
	C:\Users\cloudtest\android-toolchain\dotnet\packs\Microsoft.Android.Sdk.Windows\31.0.101-preview.12.134\tools\binutils\aarch64-linux-android-ld.EXE: cannot find C:\Program\: No such file or directory
	C:\Users\cloudtest\android-toolchain\dotnet\packs\Microsoft.Android.Sdk.Windows\31.0.101-preview.12.134\tools\binutils\aarch64-linux-android-ld.EXE: cannot find Files\: No such file or directory
	C:\Users\cloudtest\android-toolchain\dotnet\packs\Microsoft.Android.Sdk.Windows\31.0.101-preview.12.134\tools\binutils\aarch64-linux-android-ld.EXE: cannot find (x86)\Android\android-sdk\ndk\23.1.7779620\toolchains\llvm\prebuilt\windows-x86_64\sysroot\usr\lib\aarch64-linux-android\21\libm.so: No such file or directory
	AOT of image System.Private.CoreLib.dll failed.
	Mono Ahead of Time compiler - compiling assembly C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\linked\System.Private.CoreLib.dll
	AOTID EE73FF83-5340-500C-4239-56CE4D83F91B
	Executing opt: "C:\Users\cloudtest\android-toolchain\dotnet\packs\Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm64\6.0.1-mauipre.1.21602.7\Sdk\..\tools\opt" -f -O2 -disable-tail-calls -place-safepoints -spp-all-backedges -o "C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\aot\arm64-v8a\System.Private.CoreLib\temp.opt.bc" "C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\aot\arm64-v8a\System.Private.CoreLib\temp.bc"
	Executing llc: "C:\Users\cloudtest\android-toolchain\dotnet\packs\Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm64\6.0.1-mauipre.1.21602.7\Sdk\..\tools\llc"  -enable-implicit-null-checks -disable-fault-maps -march=aarch64 -asm-verbose=false -mtriple=aarch64-linux-android -disable-gnu-eh-frame -enable-mono-eh-frame -mono-eh-frame-symbol=mono_aot_corlib_eh_frame -disable-tail-calls -relocation-model=pic -filetype=obj -o "C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\aot\arm64-v8a\System.Private.CoreLib\temp-llvm.o" "C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\aot\arm64-v8a\System.Private.CoreLib\temp.opt.bc"
	Compiled: 7440/7440
	Executing the native assembler: "C:\Users\cloudtest\android-toolchain\dotnet\packs\Microsoft.Android.Sdk.Windows\31.0.101-preview.12.134\tools\binutils\aarch64-linux-android-as"   -o C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\aot\arm64-v8a\System.Private.CoreLib\temp.s.o C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\aot\arm64-v8a\System.Private.CoreLib\temp.s
	Executing the native linker: "C:\Users\cloudtest\android-toolchain\dotnet\packs\Microsoft.Android.Sdk.Windows\31.0.101-preview.12.134\tools\binutils\aarch64-linux-android-ld.EXE" -Bsymbolic -shared -o C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\aot\System.Private.CoreLib.dll.so.tmp "C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\aot\arm64-v8a\System.Private.CoreLib\temp-llvm.o" C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\aot\arm64-v8a\System.Private.CoreLib\temp.s.o -LC:\Program\ Files\ (x86)\Android\android-sdk\ndk\23.1.7779620\toolchains\llvm\prebuilt\windows-x86_64\sysroot\usr\lib\aarch64-linux-android\21 C:\Program\ Files\ (x86)\Android\android-sdk\ndk\23.1.7779620\toolchains\llvm\prebuilt\windows-x86_64\sysroot\usr\lib\aarch64-linux-android\21\libc.so C:\Program\ Files\ (x86)\Android\android-sdk\ndk\23.1.7779620\toolchains\llvm\prebuilt\windows-x86_64\sysroot\usr\lib\aarch64-linux-android\21\libm.so
	1:8>C:\Users\cloudtest\android-toolchain\dotnet\packs\Microsoft.Android.Sdk.Windows\31.0.101-preview.12.134\targets\Microsoft.Android.Sdk.Aot.targets(71,5): error : Precompiling failed for C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\linked\System.Private.CoreLib.dll [C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\UnnamedProject.csproj]

This is the same error scenario as Issue dotnet#6520.

The "curious interaction" is as follows: the
`NoSymbolsArgShouldReduceAppSize` works under .NET 6 *so long as* the
NDK toolchain is installed into a directory that doesn't have spaces.
When dotnet#6544 ran, this was the case: it used the NDK provisioned by our
build process, located in `$HOME`.

Commit c96d9f4 / PR dotnet#6539 changed this: the NDK became optional
except when LLVM is required, because NDK tools located within the
Xamarin.Android install could be used instead.  As part of this
change, `$(AndroidNdkDirectory)` was *not* always set to the NDK
provisioned by the unit tests.  When an NDK *was* required, the
system-wide / VS-provided NDK was used instead, at:

	C:\Program Files (x86)\Android\android-sdk\ndk\23.1.7779620

Once both commits 5dcf294 and c96d9f4 landed, the *now running*
`NoSymbolsArgShouldReduceAppSize` test failed, as it was trying to
use the system-wide NDK directory.

Revert commit 5dcf294, disabling the
`NoSymbolsArgShouldReduceAppSize`.  We'll re-enable it once we fix
Issue dotnet#6520.
jonpryor added a commit that referenced this pull request Dec 10, 2021
…6561)

This reverts commit 5dcf294.

Context: #6520
Context: #6560
Context: 5dcf294
Context: c96d9f4

There was a "curious" interaction between 5dcf294 (PR #6544) and
commit c96d9f4 (PR #6539): they both had green PRs, but each of
their PR builds ran without the other existing.  Once both were
merged, all subsequent commits, and PRs based on c96d9f4, had a unit
test failure in `NoSymbolsArgShouldReduceAppSize`:

	Task "MonoAOTCompiler" requested 6 cores, acquired 6 cores, and now holds 6 cores total.
	[System.Private.CoreLib.dll] Running: C:\Users\cloudtest\android-toolchain\dotnet\packs\Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm64\6.0.1-mauipre.1.21602.7\Sdk\..\tools\mono-aot-cross.exe --response="C:\Users\cloudtest\AppData\Local\Temp\tmp4D48.tmp"
	[System.Private.CoreLib.dll] Using working directory: C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\linked
	[System.Private.CoreLib.dll] Setting environment variables for execution:
	[System.Private.CoreLib.dll] 	MONO_PATH = C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\linked;
	[System.Private.CoreLib.dll] 	MONO_ENV_OPTIONS =
	[System.Private.CoreLib.dll] Exit code: 1
	[System.Private.CoreLib.dll] Exec (with response file contents expanded) in C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\linked: MONO_PATH=C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\linked; MONO_ENV_OPTIONS= C:\Users\cloudtest\android-toolchain\dotnet\packs\Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm64\6.0.1-mauipre.1.21602.7\Sdk\..\tools\mono-aot-cross.exe --debug --llvm "--aot=asmwriter,mtriple=aarch64-linux-android,tool-prefix=C:\Users\cloudtest\android-toolchain\dotnet\packs\Microsoft.Android.Sdk.Windows\31.0.101-preview.12.134\tools\binutils\aarch64-linux-android-,ld-name=ld.EXE,ld-flags=-LC:\Program\ Files\ (x86)\Android\android-sdk\ndk\23.1.7779620\toolchains\llvm\prebuilt\windows-x86_64\sysroot\usr\lib\aarch64-linux-android\21 C:\Program\ Files\ (x86)\Android\android-sdk\ndk\23.1.7779620\toolchains\llvm\prebuilt\windows-x86_64\sysroot\usr\lib\aarch64-linux-android\21\libc.so C:\Program\ Files\ (x86)\Android\android-sdk\ndk\23.1.7779620\toolchains\llvm\prebuilt\windows-x86_64\sysroot\usr\lib\aarch64-linux-android\21\libm.so,temp-path=C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\aot\arm64-v8a\System.Private.CoreLib,nodebug,llvm-path=C:\Users\cloudtest\android-toolchain\dotnet\packs\Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm64\6.0.1-mauipre.1.21602.7\Sdk\..\tools,outfile=C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\aot\System.Private.CoreLib.dll.so,llvm-outfile=C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\aot\System.Private.CoreLib.dll-llvm.o" "System
	C:\Users\cloudtest\android-toolchain\dotnet\packs\Microsoft.Android.Sdk.Windows\31.0.101-preview.12.134\tools\binutils\aarch64-linux-android-ld.EXE: cannot find Files\: No such file or directory
	C:\Users\cloudtest\android-toolchain\dotnet\packs\Microsoft.Android.Sdk.Windows\31.0.101-preview.12.134\tools\binutils\aarch64-linux-android-ld.EXE: cannot find (x86)\Android\android-sdk\ndk\23.1.7779620\toolchains\llvm\prebuilt\windows-x86_64\sysroot\usr\lib\aarch64-linux-android\21: No such file or directory
	C:\Users\cloudtest\android-toolchain\dotnet\packs\Microsoft.Android.Sdk.Windows\31.0.101-preview.12.134\tools\binutils\aarch64-linux-android-ld.EXE: cannot find C:\Program\: No such file or directory
	C:\Users\cloudtest\android-toolchain\dotnet\packs\Microsoft.Android.Sdk.Windows\31.0.101-preview.12.134\tools\binutils\aarch64-linux-android-ld.EXE: cannot find Files\: No such file or directory
	C:\Users\cloudtest\android-toolchain\dotnet\packs\Microsoft.Android.Sdk.Windows\31.0.101-preview.12.134\tools\binutils\aarch64-linux-android-ld.EXE: cannot find (x86)\Android\android-sdk\ndk\23.1.7779620\toolchains\llvm\prebuilt\windows-x86_64\sysroot\usr\lib\aarch64-linux-android\21\libc.so: No such file or directory
	C:\Users\cloudtest\android-toolchain\dotnet\packs\Microsoft.Android.Sdk.Windows\31.0.101-preview.12.134\tools\binutils\aarch64-linux-android-ld.EXE: cannot find C:\Program\: No such file or directory
	C:\Users\cloudtest\android-toolchain\dotnet\packs\Microsoft.Android.Sdk.Windows\31.0.101-preview.12.134\tools\binutils\aarch64-linux-android-ld.EXE: cannot find Files\: No such file or directory
	C:\Users\cloudtest\android-toolchain\dotnet\packs\Microsoft.Android.Sdk.Windows\31.0.101-preview.12.134\tools\binutils\aarch64-linux-android-ld.EXE: cannot find (x86)\Android\android-sdk\ndk\23.1.7779620\toolchains\llvm\prebuilt\windows-x86_64\sysroot\usr\lib\aarch64-linux-android\21\libm.so: No such file or directory
	AOT of image System.Private.CoreLib.dll failed.
	Mono Ahead of Time compiler - compiling assembly C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\linked\System.Private.CoreLib.dll
	AOTID EE73FF83-5340-500C-4239-56CE4D83F91B
	Executing opt: "C:\Users\cloudtest\android-toolchain\dotnet\packs\Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm64\6.0.1-mauipre.1.21602.7\Sdk\..\tools\opt" -f -O2 -disable-tail-calls -place-safepoints -spp-all-backedges -o "C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\aot\arm64-v8a\System.Private.CoreLib\temp.opt.bc" "C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\aot\arm64-v8a\System.Private.CoreLib\temp.bc"
	Executing llc: "C:\Users\cloudtest\android-toolchain\dotnet\packs\Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm64\6.0.1-mauipre.1.21602.7\Sdk\..\tools\llc"  -enable-implicit-null-checks -disable-fault-maps -march=aarch64 -asm-verbose=false -mtriple=aarch64-linux-android -disable-gnu-eh-frame -enable-mono-eh-frame -mono-eh-frame-symbol=mono_aot_corlib_eh_frame -disable-tail-calls -relocation-model=pic -filetype=obj -o "C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\aot\arm64-v8a\System.Private.CoreLib\temp-llvm.o" "C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\aot\arm64-v8a\System.Private.CoreLib\temp.opt.bc"
	Compiled: 7440/7440
	Executing the native assembler: "C:\Users\cloudtest\android-toolchain\dotnet\packs\Microsoft.Android.Sdk.Windows\31.0.101-preview.12.134\tools\binutils\aarch64-linux-android-as"   -o C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\aot\arm64-v8a\System.Private.CoreLib\temp.s.o C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\aot\arm64-v8a\System.Private.CoreLib\temp.s
	Executing the native linker: "C:\Users\cloudtest\android-toolchain\dotnet\packs\Microsoft.Android.Sdk.Windows\31.0.101-preview.12.134\tools\binutils\aarch64-linux-android-ld.EXE" -Bsymbolic -shared -o C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\aot\System.Private.CoreLib.dll.so.tmp "C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\aot\arm64-v8a\System.Private.CoreLib\temp-llvm.o" C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\aot\arm64-v8a\System.Private.CoreLib\temp.s.o -LC:\Program\ Files\ (x86)\Android\android-sdk\ndk\23.1.7779620\toolchains\llvm\prebuilt\windows-x86_64\sysroot\usr\lib\aarch64-linux-android\21 C:\Program\ Files\ (x86)\Android\android-sdk\ndk\23.1.7779620\toolchains\llvm\prebuilt\windows-x86_64\sysroot\usr\lib\aarch64-linux-android\21\libc.so C:\Program\ Files\ (x86)\Android\android-sdk\ndk\23.1.7779620\toolchains\llvm\prebuilt\windows-x86_64\sysroot\usr\lib\aarch64-linux-android\21\libm.so
	1:8>C:\Users\cloudtest\android-toolchain\dotnet\packs\Microsoft.Android.Sdk.Windows\31.0.101-preview.12.134\targets\Microsoft.Android.Sdk.Aot.targets(71,5): error : Precompiling failed for C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\obj\Release\android-arm64\linked\System.Private.CoreLib.dll [C:\a\_work\1\a\TestRelease\12-09_14.48.54\temp\NoSymbolsArgShouldReduceAppSize\UnnamedProject.csproj]

This is the same error scenario as Issue #6520.

The "curious interaction" is as follows: the
`NoSymbolsArgShouldReduceAppSize` works under .NET 6 *so long as* the
NDK toolchain is installed into a directory that doesn't have spaces.
When #6544 ran, this was the case: it used the NDK provisioned by our
build process, located in `$HOME`.

Commit c96d9f4 / PR #6539 changed this: the NDK became optional
except when LLVM is required, because NDK tools located within the
Xamarin.Android install could be used instead.  As part of this
change, `$(AndroidNdkDirectory)` was *not* always set to the NDK
provisioned by the unit tests.  When an NDK *was* required, the
system-wide / VS-provided NDK was used instead, at:

	C:\Program Files (x86)\Android\android-sdk\ndk\23.1.7779620

Once both commits 5dcf294 and c96d9f4 landed, the *now running*
`NoSymbolsArgShouldReduceAppSize` test failed, as it was trying to
use the system-wide NDK directory.

Revert commit 5dcf294, disabling the
`NoSymbolsArgShouldReduceAppSize`.  We'll re-enable it once we fix
Issue #6520.
@github-actions github-actions Bot locked and limited conversation to collaborators Jan 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants