-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Unable to build managed assemblies on FreeBSD 10.2 #4521
Comments
Can you post the msbuild.log file? |
@akoeplinger, sure, here we go: https://gist.github.com/jasonwilliams200OK/8c7fa3168c6a4d097374. |
@jasonwilliams200OK looks like I don't have access to that gist. |
Oh i updated the link :) Also,
|
@jasonwilliams200OK you're running into a Mono bug ( |
Oh yes! This is ditto bug as dotnet/roslyn#2844. So does this mean in past four months, FreeBSD didn't get any new Mono release? 😮 |
Turned out mono 4.0.3 is available for 2015-Q4 branch. Meanwhile, we can use "latest" repository to get mono 4.0.3 and clang37. Updated the gist guide accordingly: https://gist.github.com/jasonwilliams200OK/6efa7907e66275df2d24#install-software/. |
Sweet :) I guess the next step is running the corefx tests? |
Awesome. I'm curious about those tests too :) |
Hacking 101.. Had to make some tweaks to run the tests:
... ... aaaaaaaaand ... ... tests are failing with lots of these:
|
Nice. Obviously there's room for improvement here, but tests failing when run are much better than failing to run the tests in the first place :) |
Are there actually some tests passing or do all fail with these asserts? |
All of them are failing. Could it be because https://www.myget.org/F/dotnet-buildtools/api/v2/package/Microsoft.DotNet.CoreFx.FreeBSD.TemporaryTestHost/0.0.2-prerelease is unavailable? |
Yeah, I suppose that's connected somehow, but I don't know how the TemporaryTestHost is built. You could try just running Btw. I just saw we're in |
Yup I realized it late that I opened it in CoreCLR. Anecdotally, this particular exception ( |
@akoeplinger, I think the error is due to the fact I will try to build it from scratch once dotnet/corefx#3471 gets merged and then start logging issues on CoreFX repo. |
@jasonwilliams200OK Do you have ICU installed? System.Globalization.Native comes from the CoreCLR repo, FWIW. |
@ellismg, thanks for catching it. I actually installed it (using Regarding CoreCLR, I am in the middle of creating a similar guide: https://gist.github.com/jasonwilliams200OK/06db121ec534821fe541, but unable to finish it because I haven't been able to successfully build CoreCLR on FreeBSD locally yet. Could you (or @mmitche or @steveharter) please assist what dependency am I missing? I tried running ditto command
Here is the full build log: https://gist.github.com/jasonwilliams200OK/18d9de1f5c78ed513e47. Note that those warning coming from system libs (which don't show up on Linux) will be gone once dotnet/coreclr#1666 is merged. |
That is kind of bizarre. Same version of clang too. Have you looked at the source? Is it obvious that errno is defined someplace? |
I think the issue is with: https://github.com/dotnet/coreclr/blob/a723811/src/pal/inc/pal.h#L6127-L6137. Seems like |
Update (on CoreFX again): Reverted the latest package branch workaround (https://github.com/dotnet/coreclr/issues/1633#issuecomment-143603601) in Revision 10, since 2015-Q4 default branch for FreeBSD packages is available. https://gist.github.com/jasonwilliams200OK/6efa7907e66275df2d24. Which means running |
Pingback: The coreclr issue turned out to be https://github.com/dotnet/coreclr/issues/1091, which was later fixed by dotnet/coreclr#1739. Note that if you are on Mac and have Parallels installed, then installing FreeBSD VM from ISO is really a piece of cake! :) |
While building CoreFX managed assemblies on FreeBSD, I am encountering the following error on "Restoring all packages.." step:
/root/corefx/packages/Microsoft.Build.Mono.Debug.14.1.0.0-prerelease/lib/Microsoft.CSharp.CurrentVersion.target s(383,9): error MSB6006: "csc2.exe" exited with code 1.
for
To replicate this issue, I have prepared a guide on how to setup FreeBSD 10.2 on Windows 10 HyperV to compile CoreFX: https://gist.github.com/jasonwilliams200OK/6efa7907e66275df2d24 (@sokket, @naamunds, this guide might interest you guys)
It seems like the issue is originating from buildtools (or MSbuild) when running
<Csc>
task. I am not sure how to debug it, as I tried getting variable values on stdout using<Exec Command="echo '>> $(CscEnvironment)'"/>
,<Message Text=">> $(CscEnvironment)" />
etc. but failed to output anything../cc: @weshaggard, @akoeplinger, @ericstj, @mmitche
The text was updated successfully, but these errors were encountered: