-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[aot] Do not put quotes around wrapped path #16792
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
[aot] Do not put quotes around wrapped path #16792
Conversation
mono/mini/aot-compiler.c
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@radekdoulik I don't think this will work.
The issue is wrap_path puts quotes around the tool_prefix like so
"c:\foo bar\ld-"
and then we append strip to it
"c:\foo bar\ld-"strip
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ignore this review, it appears that "c:\foo bar\ld-"strip does work on windows...
|
@monojenkins build failed |
|
That's weird, isn't |
lewurm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the proper fix would be to s/wrap_path(tool_prefix)/tool_prefix/
That would revert the 38ffd87. Unfortunately the information about the bug it was fixing is lost as the link https://bugzilla.xamarin.com/show_bug.cgi?id=34498 is not alive anymore. The proposed fix should work OK and still contain the above mentioned fix. |
|
It would only partially revert 38ffd87. We don't do |
|
Me neither, because the bug information is lost. OTOH we can assume that when the bug conditions would reappear, the |
Should fix: dotnet/android#3619 As it results in double quoting, which vanishes the effect and breaks AOT for XA on Windows. Let just quote the `strip` path as we do for `as` and `ld`. The actual error: [aot-compiler stdout] Stripping the binary: ""C:\Program Files (x86)\Microsoft Visual Studio\2019\Stable\MSBuild\Xamarin\Android\ndk\arm-linux-androideabi-"strip" --strip-symbol=\$a --strip-symbol=\$d obj\Release\90\aot\armeabi-v7a\libaot-Xamarin.Android.Arch.Core.Common.dll.so.tmp [aot-compiler stderr] '""C:\Program' is not recognized as an internal or external command, [aot-compiler stderr] operable program or batch file. [aot-compiler stderr] AOT of image C:\Users\peter\source\repos\App9\App9\App9.Android\obj\Release\90\android\assets\Xamarin.Android.Support.CoordinaterL ayout.dll failed.
9c933e7 to
abe4ac5
Compare
|
The correct URL to access the bug info is https://bugzilla.internalx.com/show_bug.cgi?id=34498 (it was originally private, so you need to grant access via OAUTH). From the context there, it seems like |
|
@monojenkins build Windows x64 |
|
@monojenkins build failed |
|
/azp run |
|
Commenter does not have sufficient privileges for PR 16792 in repo mono/mono |
|
the failing tests are not required, so hopefully it is OK and we don't need them to re-run |
|
@radekdoulik which branches does this need to be on, any idea? |
|
2019-08 for sure. @pjcollins might know if we need it in any earlier branch. I think the bug surfaced now because we recently changed the binutil tools location in XA as we redistribute them. so hopefully older versions are not affected. |
|
@monojenkins squash |
|
@monojenkins backport 2019-08 |
|
I believe master and 2019-08 are the only affected, this will be needed for our d16-4 branch and later. |
[2019-08] [aot] Do not put quotes around wrapped path Should fix: dotnet/android#3619 As it results in double quoting, which vanishes the effect and breaks AOT for XA on Windows. The actual error: [aot-compiler stdout] Stripping the binary: ""C:\Program Files (x86)\Microsoft Visual Studio\2019\Stable\MSBuild\Xamarin\Android\ndk\arm-linux-androideabi-"strip" --strip-symbol=\$a --strip-symbol=\$d obj\Release\90\aot\armeabi-v7a\libaot-Xamarin.Android.Arch.Core.Common.dll.so.tmp [aot-compiler stderr] '""C:\Program' is not recognized as an internal or external command, [aot-compiler stderr] operable program or batch file. [aot-compiler stderr] AOT of image C:\Users\peter\source\repos\App9\App9\App9.Android\obj\Release\90\android\assets\Xamarin.Android.Support.CoordinaterLayout.dll failed. Backport of #16792. /cc @lewurm @radekdoulik
[aot] Do not put quotes around wrapped path Should fix: dotnet/android#3619 As it results in double quoting, which vanishes the effect and breaks AOT for XA on Windows. The actual error: [aot-compiler stdout] Stripping the binary: ""C:\Program Files (x86)\Microsoft Visual Studio\2019\Stable\MSBuild\Xamarin\Android\ndk\arm-linux-androideabi-"strip" --strip-symbol=\$a --strip-symbol=\$d obj\Release\90\aot\armeabi-v7a\libaot-Xamarin.Android.Arch.Core.Common.dll.so.tmp [aot-compiler stderr] '""C:\Program' is not recognized as an internal or external command, [aot-compiler stderr] operable program or batch file. [aot-compiler stderr] AOT of image C:\Users\peter\source\repos\App9\App9\App9.Android\obj\Release\90\android\assets\Xamarin.Android.Support.CoordinaterLayout.dll failed. Commit migrated from mono/mono@131b3a9
Should fix: dotnet/android#3619
As it results in double quoting, which vanishes the effect and breaks
AOT for XA on Windows.
The actual error: