[source-build] Bootstrapping the F# compiler fails with a "no entrypoint" warning
In the complete source-built SDK, our Linux partners will follow this procedure:
- Source-build the SDK using the Microsoft-built SDK, producing the "stage 1 SDK".
- Source-build the SDK again using the stage 1 SDK, producing the "stage 2 SDK", which is completely free of prebuilts and was not built using any prebuilt binaries.
In this process, we are seeing an issue in F#. The stage 1 SDK is produced as normal, but when attempting to compile the stage 2 SDK, the F# Proto build fails with warning: no entrypoint specified in executable binary. This warning was removed temporarily in https://github.com/dotnet/installer/pull/14564 and https://github.com/dotnet/installer/pull/14565.
@crummel what would be the easiest way of reproducing it? We also build Proto compiler with rc1 and then build product with Proto, and don't have this issue.
This was fixed by https://github.com/dotnet/fsharp/pull/13963, thanks!
What is the recommended solution for source-build in .NET 7.0? @KevinRansom
What is the recommended solution for source-build in .NET 7.0? @KevinRansom
If it's not fixed by the https://github.com/dotnet/fsharp/pull/13963, then it's fine to suppress it (or have a patch in place). It's only affecting (some of the) ref assemblies, so shouldn't be affecting the product, since we aren't shipping refassemblies.
Is https://github.com/dotnet/fsharp/pull/13963 going to flow into .NET 7.0?
Is https://github.com/dotnet/fsharp/pull/13963 going to flow into .NET 7.0?
Yes, iirc, it is a part of https://github.com/dotnet/sdk/pull/28137 insertion and should be a part of rc2.