-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Fix build failure on "Packs" #122527
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
base: main
Are you sure you want to change the base?
Fix build failure on "Packs" #122527
Conversation
| @@ -22,6 +22,7 @@ | |||
| <PlatformManifestFileEntry Include="libhostpolicy.so" IsNative="true" /> | |||
| <PlatformManifestFileEntry Include="libhostpolicy.dylib" IsNative="true" /> | |||
| <PlatformManifestFileEntry Include="hostfxr.dll" IsNative="true" /> | |||
| <PlatformManifestFileEntry Include="clrinterpreter.dll" IsNative="true" /> | |||
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.
The interpreter dll isn't ready for shipping yet. This is not the desired fix.
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 don't believe the interpreter will ever be shipped on windows. It is a feature intended for ios/wasm.
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.
So what would be the fix? I assume clrinterpreter.dll should be excluded. How can I manage that?
| @@ -34,7 +34,13 @@ else() | |||
| add_custom_target(clrinterpreter_exports DEPENDS ${EXPORTS_FILE}) | |||
| endif() | |||
|
|
|||
| add_library_clr(clrinterpreter_objects OBJECT ${INTERPRETER_SOURCES}) | |||
| if(CLR_CMAKE_TARGET_WIN32) | |||
| set(INTERPRETER_RESOURCES Native.rc) | |||
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.
How does adding a native resource file change the build?
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.
same as #118581, after adding clrinterpreter.dll as PlatformManifestEntry,
another build error is raised, due to not setting file version on clrinterpreter.dll:
C:\Users\kg\.nuget\packages\microsoft.dotnet.sharedframework.sdk\10.0.0-beta.25406.102\targets\sharedfx.targets(527,5): error : Missing FileVersion in 1 shared framework files: [Z:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.
CoreCLR.sfxproj]
C:\Users\kg\.nuget\packages\microsoft.dotnet.sharedframework.sdk\10.0.0-beta.25406.102\targets\sharedfx.targets(527,5): error : Z:\runtime\artifacts\bin\coreclr\windows.x64.Checked\sharedFramework\clrinterpreter.dll [Z:\runtime\src\installer\pkg\sfx\Microsoft.NET
Core.App\Microsoft.NETCore.App.Runtime.CoreCLR.sfxproj]
Z:\runtime\src\installer\pkg\sfx\bundle\Microsoft.NETCore.App.Bundle.bundleproj(35,5): error MSB4181: The "MSBuild" task returned false but did not log an error.
This resource adds file version, product detail, ... to the dll and fixes the issue, then the build is fine.
|
What are the repro steps for the problem you are trying to fix? |
|
@jkotas After adding the clrinterpreter.dll to manifest, i am getting: Adding resource and version to clrinterpreter.dll solves the issue. Maybe the right way is exclude this dll from ref packs when building for windows? |
|
Why do you need to build debug version of packs? Would |
|
@jkotas Yes, building "packs" is ok on Release builds, . |
Fix #122524