Skip to content
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

python-language-server: fails to build on macOS #95664

Closed
siraben opened this issue Aug 17, 2020 · 2 comments
Closed

python-language-server: fails to build on macOS #95664

siraben opened this issue Aug 17, 2020 · 2 comments
Labels
0.kind: bug 6.topic: darwin Running or building packages on Darwin 6.topic: python

Comments

@siraben
Copy link
Member

siraben commented Aug 17, 2020

Not entirely sure what's the cause, perhaps something to do with .NET.

[/private/var/folders/s1/sm71lqk553d1_f8drd3tz_5r0000gn/T/nix-build-python-language-server-2020-06-19.drv-0/source/src/PLS.sln]
/private/var/folders/s1/sm71lqk553d1_f8drd3tz_5r0000gn/T/nix-build-python-language-server-2020-06-19.drv-0/source/src/Parsing/Test/Microsoft.Python.Parsing.Tests.csproj : warning NU1603: System.Threading.Tasks 4.0.11 depends on Microsoft.NETCore.Targets (>= 1.0.1) but Microsoft.NETCore.Targets 1.0.1 was not found. An approximate best match of Microsoft.NETCore.Targets 1.1.0 was resolved. [/private/var/folders/s1/sm71lqk553d1_f8drd3tz_5r0000gn/T/nix-build-python-language-server-2020-06-19.drv-0/source/src/PLS.sln]
/private/var/folders/s1/sm71lqk553d1_f8drd3tz_5r0000gn/T/nix-build-python-language-server-2020-06-19.drv-0/source/src/Parsing/Test/Microsoft.Python.Parsing.Tests.csproj : warning NU1603: System.Xml.XDocument 4.0.11 depends on System.Diagnostics.Tools (>= 4.0.1) but System.Diagnostics.Tools 4.0.1 was not found. An approximate best match of System.Diagnostics.Tools 4.3.0 was resolved. [/private/var/folders/s1/sm71lqk553d1_f8drd3tz_5r0000gn/T/nix-build-python-language-server-2020-06-19.drv-0/source/src/PLS.sln]
/private/var/folders/s1/sm71lqk553d1_f8drd3tz_5r0000gn/T/nix-build-python-language-server-2020-06-19.drv-0/source/src/Parsing/Test/Microsoft.Python.Parsing.Tests.csproj : warning NU1603: System.Xml.ReaderWriter 4.0.11 depends on System.IO.FileSystem (>= 4.0.1) but System.IO.FileSystem 4.0.1 was not found. An approximate best match of System.IO.FileSystem 4.3.0 was resolved. [/private/var/folders/s1/sm71lqk553d1_f8drd3tz_5r0000gn/T/nix-build-python-language-server-2020-06-19.drv-0/source/src/PLS.sln]
/private/var/folders/s1/sm71lqk553d1_f8drd3tz_5r0000gn/T/nix-build-python-language-server-2020-06-19.drv-0/source/src/Parsing/Test/Microsoft.Python.Parsing.Tests.csproj : warning NU1603: System.Xml.ReaderWriter 4.0.11 depends on System.IO.FileSystem.Primitives (>= 4.0.1) but System.IO.FileSystem.Primitives 4.0.1 was not found. An approximate best match of System.IO.FileSystem.Primitives 4.3.0 was resolved. [/private/var/folders/s1/sm71lqk553d1_f8drd3tz_5r0000gn/T/nix-build-python-language-server-2020-06-19.drv-0/source/src/PLS.sln]
/private/var/folders/s1/sm71lqk553d1_f8drd3tz_5r0000gn/T/nix-build-python-language-server-2020-06-19.drv-0/source/src/Parsing/Test/Microsoft.Python.Parsing.Tests.csproj : warning NU1603: System.Linq.Expressions 4.1.0 depends on System.Reflection.Emit.Lightweight (>= 4.0.1) but System.Reflection.Emit.Lightweight 4.0.1 was not found. An approximate best match of System.Reflection.Emit.Lightweight 4.3.0 was resolved. [/private/var/folders/s1/sm71lqk553d1_f8drd3tz_5r0000gn/T/nix-build-python-language-server-2020-06-19.drv-0/source/src/PLS.sln]
/private/var/folders/s1/sm71lqk553d1_f8drd3tz_5r0000gn/T/nix-build-python-language-server-2020-06-19.drv-0/source/src/Parsing/Test/Microsoft.Python.Parsing.Tests.csproj : warning NU1603: System.Runtime.InteropServices 4.1.0 depends on System.Runtime.Handles (>= 4.0.1) but System.Runtime.Handles 4.0.1 was not found. An approximate best match of System.Runtime.Handles 4.3.0 was resolved. [/private/var/folders/s1/sm71lqk553d1_f8drd3tz_5r0000gn/T/nix-build-python-language-server-2020-06-19.drv-0/source/src/PLS.sln]
/private/var/folders/s1/sm71lqk553d1_f8drd3tz_5r0000gn/T/nix-build-python-language-server-2020-06-19.drv-0/source/src/Parsing/Test/Microsoft.Python.Parsing.Tests.csproj : warning NU1603: System.Xml.ReaderWriter 4.0.11 depends on System.Threading.Tasks.Extensions (>= 4.0.0) but System.Threading.Tasks.Extensions 4.0.0 was not found. An approximate best match of System.Threading.Tasks.Extensions 4.3.0 was resolved. [/private/var/folders/s1/sm71lqk553d1_f8drd3tz_5r0000gn/T/nix-build-python-language-server-2020-06-19.drv-0/source/src/PLS.sln]
  Restore completed in 1.46 sec for /private/var/folders/s1/sm71lqk553d1_f8drd3tz_5r0000gn/T/nix-build-python-language-server-2020-06-19.drv-0/source/src/Parsing/Test/Microsoft.Python.Parsing.Tests.csproj.
@veprbl veprbl added 6.topic: darwin Running or building packages on Darwin 6.topic: python labels Aug 19, 2020
@mjlbach
Copy link
Contributor

mjlbach commented Aug 27, 2020

@siraben did you try: #89150

@siraben
Copy link
Member Author

siraben commented Oct 11, 2020

@mjlbach I tried it but it fails to build as well

build log
$ nix-shell -p nixpkgs-review --run "nixpkgs-review pr 89150"                    
these paths will be fetched (0.04 MiB download, 0.15 MiB unpacked):
  /nix/store/q1my4x1jgaq1w1a84kn9m5zy1jj439v3-nixpkgs-review-2.4.0
copying path '/nix/store/q1my4x1jgaq1w1a84kn9m5zy1jj439v3-nixpkgs-review-2.4.0' from 'https://cache.nixos.org'...
$ git -c fetch.prune=false fetch --force https://github.com/NixOS/nixpkgs master:refs/nixpkgs-review/0 pull/89150/head:refs/nixpkgs-review/1
remote: Enumerating objects: 55, done.
remote: Counting objects: 100% (55/55), done.
remote: Total 108 (delta 55), reused 55 (delta 55), pack-reused 53
Receiving objects: 100% (108/108), 278.81 KiB | 389.00 KiB/s, done.
Resolving deltas: 100% (69/69), completed with 28 local objects.
From https://github.com/NixOS/nixpkgs
 * [new branch]              master               -> refs/nixpkgs-review/0
 * [new ref]                 refs/pull/89150/head -> refs/nixpkgs-review/1
$ git worktree add /Users/siraben/.cache/nixpkgs-review/pr-89150-4/nixpkgs 62e614262ad4b9df3d40693350f516794e95ecda
Preparing worktree (detached HEAD 62e614262ad)
Updating files: 100% (22877/22877), done.
HEAD is now at 62e614262ad fzf: 0.23.0 -> 0.23.1
$ git merge --no-commit 99d252b18277900c11079c88eeef59cb98a83734
Auto-merging pkgs/development/dotnet-modules/python-language-server/default.nix
Automatic merge went well; stopped before committing as requested
$ nix build --no-link --keep-going --option build-use-sandbox relaxed -f /Users/siraben/.cache/nixpkgs-review/pr-89150-4/build.nix
builder for '/nix/store/5jja2bmfa57as43pwmkbswylvbw1zacg-python-language-server-2020-06-19.drv' failed with exit code 134; last 10 log lines:
     at System.String.ToLowerInvariant()
     at Microsoft.DotNet.PlatformAbstractions.RuntimeEnvironment.GetArch()
     at Microsoft.DotNet.PlatformAbstractions.RuntimeEnvironment..cctor()
     --- End of inner exception stack trace ---
     at Microsoft.DotNet.PlatformAbstractions.RuntimeEnvironment.GetRuntimeIdentifier()
     at Microsoft.DotNet.Cli.MulticoreJitProfilePathCalculator.CalculateProfileRootPath()
     at Microsoft.DotNet.Cli.MulticoreJitActivator.StartCliProfileOptimization()
     at Microsoft.DotNet.Cli.MulticoreJitActivator.TryActivateMulticoreJit()
     at Microsoft.DotNet.Cli.Program.Main(String[] args)
  /nix/store/8h5awvnjzp0rgkby7s8fgzqg011mpzh7-stdenv-darwin/setup: line 1316: 24996 Abort trap: 6           dotnet restore --source /nix/store/x5wcdnklrnd4m0mr5bxjla5swb39wdq2-python-language-server-nuget-deps-2020-06-19/lib -r osx-x64
cannot build derivation '/nix/store/fbblfhhmza0ylwmc4p3bxzdzlz4fijng-env.drv': 1 dependencies couldn't be built
[12 built (1 failed), 213 copied (742.4 MiB), 217.3 MiB DL]
error: build of '/nix/store/fbblfhhmza0ylwmc4p3bxzdzlz4fijng-env.drv' failed
https://github.com/NixOS/nixpkgs/pull/89150
1 package failed to build:
python-language-server

@siraben siraben closed this as completed Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug 6.topic: darwin Running or building packages on Darwin 6.topic: python
Projects
None yet
Development

No branches or pull requests

3 participants