-
Notifications
You must be signed in to change notification settings - Fork 419
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
Can't build on Ubuntu 18.04 #1202
Comments
I just created a VM and can reproduce the problem. It looks like this is due to GitTools/GitVersion#1408. There are various solutions we could employ to workaround the problem, but I think we should probably just wait until |
"There are various solutions we could employ to workaround the problem" -- could you please provide one or some of them? This would get me past this issue. Thanks. |
@DustinCampbell could you provide @hifall and I some possible workarounds? I've updated to the most recent master branch and it seems that this issue with GitVersion has yet to be fixed because I'm getting the same error. |
I have not investigated deeply enough to find any workarounds. @david-driscoll, do you have any ideas? It feels like GitVersion is dropping the ball on Linux. |
Obviously this doesn't solve the underlying problem, but if you disable the GitVersion task (https://github.com/OmniSharp/omnisharp-roslyn/blob/master/build.cake#L103), are you able to build? (cc @nickspoons ) |
Thanks @rchande, I tried removing that line but it doesn't help - on my archlinux machine the build fails before build.cake is even loaded, while "Compiling build script..." (according the the verbose output). (Note I'm using archlinux in WSL, which I realise is not exactly a clean test environment, but I get very similar logs in a proper archlinux VM) Here's what I get: Click to show output of ./build.sh
|
I managed to get GitVersion working using techniques described here:
I suspect that a build on Ubuntu would now have worked, but on Arch there is no Version, so I had to change build.cake#L51 to the following (added the var version = platform.Version?.ToString(); Following that, I can build! I need the ./build.sh --target Quick --verbosity Verbose --use-global-dotnet-sdk Success! |
@nickspoons Nice! Thanks for sharing your steps here. |
@nickspoons I tried following the steps as you mentioned above. I am using Ubuntu 18.04. Here is my LibGit2Sharp.dll.config file: <configuration>
<dllmap os="linux" cpu="x86-64" wordsize="64" dll="git2-baa87df" target="/usr/lib/x86_64-linux-gnu/libgit2.so.0" />
<dllmap os="osx" cpu="x86,x86-64" dll="git2-baa87df" target="lib/osx/libgit2-baa87df.dylib" />
</configuration> Now I am getting the following error:
|
I'm not sure sorry @akshita31, I've only got my Arch system to test on currently, but that target of yours ( An alternative might be to clone and build LibGit2Sharp.NativeBinaries and use that, as described here: GitTools/GitVersion#1097 (comment) |
Not sure GitVersion is still an issue but I was able to get past it by running |
@tadesegha Where do I need to execute this command ? |
@akshita31 That's a good question. I forget. I think I ran it within my cloned omnisharp folder. Sadly I can't reproduce the error to confirm. I'll spend some time later on digging into it. In the case that it helps, here's how I came by running the command. Running build.sh pulls in GitVersion via nuget. I tried running the GitVersion.exe pulled in and got an error. A google search on that error led to running the |
I have just tried again in a fresh clone. I tried running
I then had to go through the same steps described above to get a working build. The |
I'm unable to reproduce this. Any chance there's a docker image that displays this behavior? Here's a GitVersion issue that may be related to this. Perhaps the issue I encountered was slightly different? LibGit2Sharp.NotFoundException |
I could resolve DllNotFoundException by installing
|
Hi BisectThis error was introduced by first bad commit: [cae1738] pinned gitversion by @david-driscoll Possibles solutions
omnisharp-roslyn/scripts/common.cake Line 2 in 1cc5321
by #tool "nuget:?package=GitVersion.CommandLine" What do you think about that ? NoteI've bisected thanks:
#!/bin/bash
# -*- coding: UTF8 -*-
git branch -D bisect
git checkout -b bisect
git stash pop
./build.sh --target Quick --verbosity Verbose --use-global-dotnet-sdk
returnValue=$?
git stash
exit "$returnValue" |
@JulioJu Before that commit, our CI machines would pick up the most recent version of the GitVersion nuget package. They shipped a version with a bug and we started getting inexplicable failures in CI. @david-driscoll pinned us to a known working version. That said, @david-driscoll, it looks like the NuGet package isn't officially supported (see https://gitversion.readthedocs.io/en/latest/usage/nuget-library/). Should we be consuming this some other way? |
@rchande @david-driscoll and maybe it could cause errors described at #1363 ? |
Does anyone found any solution for this ?? |
@amarnath-mishra I got it to working by changing the path in the libgit2.config.dll to point to the correct path where the libgit2.so existed. |
Even though @akshita31 provided a fix, I hope that after upgrading to LibGit2Sharp 0.26 in GitTools/GitVersion#1713, this problem should be remedied. Please try the latest build of GitVersion and report back whether it fixes this problem or not. |
Cant build it on Manjaro linux. Im followed instruction, was checkout f45056b and changed target libgit, but still have that error: |
dotnet --info:
mono --version :
I am using the latest master (Last commit - e850717) . I followed the steps as listed to build omnisharp-roslyn and on running ./build.sh, I get the error:
Please help.
The text was updated successfully, but these errors were encountered: