-
Notifications
You must be signed in to change notification settings - Fork 318
Can't build with mono 5.18 / msbuild 15.3 (also fails without msbuild) #889
Comments
blocker issue: fsharp/fsharp#889
Hmm, Mono has deprecated xbuild as of Mono 5, so the package being pointed to in the docs seems incorrect |
@cartermp I didn't know about that... if I install just mono there is no msbuild executable (but still xbuild?), I'm not sure, I will check that on next week... |
@cnd I'm not sure about Gentoo, but the Debian and Ubuntu packaging installs the |
@cartermp @ninjarobot I've re-checked, my mono package has |
@cnd what @ninjarobot told you is to install |
@knocte but I have no idea what is |
@cnd there isn't any intention to dissuade you from using your favorite distro, just that building the F# compiler on Linux depends on the mono distribution and the maintainers publish official packages for Debian and derivatives. I expect Gentoo will work as well, but building the compiler depends on I was able to find an overlay for msbuild, albeit for some older mono versions. It would probably be best to get to this
I personally don't have Gentoo packaging experience, but are you able to make adjustments such that the additional package for |
yes, ebuild (package) for msbuild contributed to overlay by user @ArsenShnurkov and it's not fully supported
and it will not work anymore (outside supported distributions) that's why I state on removing or reworking misleading steps for building. |
That's the repo for packaging, it's not upstream.
Maybe it's this? https://github.com/mono/msbuild but note, might not be master branch |
@knocte I see, I'm not sure why packaging repository was taken. Do you know what tag of which repository and with which flag we should build for f sharp? (I can't find 15.6.0.0 tag there) |
@directhex are you able to provide any guidance for packaging for |
@ninjarobot https://github.com/mono/linux-packaging-msbuild/blob/master/debian/rules#L11-L19 + http://download.mono-project.com/sources/msbuild/ MSBuild isn't in a state where those tarballs are "Debian grade" (they contain binary pieces, and touch the Internet, which are both forbidden), but I don't know how those rules play out for Gentoo. |
msbuild works for simple projects, but not for all, because many projects require Microsoft.NET.Sdk, which is not packaged. In this issue, the error message text is different. So, it's not the msbuild ebuild problem yet.
probably fsharp's version of FSharp.Build.dll is not built against the version of msbuild in gentoo.
gentoo should build everything from source, no binary bits are welcomed One possible solution is to build FSharp.Build.dll according to gentoo guidelines. |
some binary blobs are okay, alike nvidia-drivers for example but if source based version is available it's preferred. |
What is the difference between microsoft/msbuild and mono/linux-packaging-msbuild ? meld ~/msbuild/linux-packaging-msbuild ~/msbuild/Microsoft |
AFAIU, the former is a repository used to build .deb/.rpms. They need to contain the original sources. |
I've checked and this repo builds clean with Mono 5.18.1.3 (in a Debian 9 docker container) Note this repo is not by default "build from source" - it uses various binary packages as part of the build process. For a "build from source" option please use the .NET SDK build from source (including F#) and the "src/buildfromsource.sh" in the repository. |
@FSSF please update documentation on wiki |
tried version 10.2.1
Microsoft.FSharp.Targets(129,9): error MSB4127: The "CreateFSharpManifestResourceName" task could not be instantiated from the assembly "/var/tmp/portage/dev-lang/fsharp-10.2.1/work/fsharp-10.2.1/packages/FSharp.Compiler.Tools.4.1.27/tools/FSharp.Build.dll". Please verify the task assembly has been built using the same version of the Microsoft.Build.Framework assembly as the one installed on your computer and that your host application is not missing a binding redirect for Microsoft.Build.Framework. Specified cast is not valid. [/var/tmp/portage/dev-lang/fsharp-10.2.1/work/fsharp-10.2.1/src/fsharp/FSharp.Core/FSharp.Core.fsproj]
blocking packaging on gentoo, and instructions (https://github.com/fsharp/fsfoundation/edit/gh-pages/use/linux/index.md) on building from sources on Linux are not working for me, mono package doesn't bring msbuild, there is xbuild.
The text was updated successfully, but these errors were encountered: