Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 890297 - dev-dotnet/csharp-language-server-0.5.7 - ERROR: dev-dotnet/csharp-language-server-0.5.7::gentoo failed (compile phase):
Summary: dev-dotnet/csharp-language-server-0.5.7 - ERROR: dev-dotnet/csharp-language-s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Maciej Barć
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-09 18:52 UTC by Toralf Förster
Modified: 2023-02-13 22:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.53 KB, text/plain)
2023-01-09 18:52 UTC, Toralf Förster
Details
dev-dotnet:csharp-language-server-0.5.7:20230108-234401.log (dev-dotnet:csharp-language-server-0.5.7:20230108-234401.log,14.32 KB, text/plain)
2023-01-09 18:52 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,64.82 KB, application/x-bzip)
2023-01-09 18:52 UTC, Toralf Förster
Details
environment (environment,26.42 KB, text/plain)
2023-01-09 18:52 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,651 bytes, application/x-bzip)
2023-01-09 18:52 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,11.20 KB, application/x-bzip)
2023-01-09 18:52 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,11.00 KB, application/x-bzip)
2023-01-09 18:52 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-01-09 18:52:24 UTC
/opt/dotnet-sdk-bin-6.0/sdk/6.0.404/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(176,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [/var/tmp/portage/dev-dotnet/csharp-language-server-0.5.7/work/csharp-language-server-0.5.7/src/CSharpLanguageServer/CSharpLanguageServer.fsproj]
    1 Warning(s)
    1 Error(s)

Time Elapsed 00:00:07.84
 [ !! ]
 * ERROR: dev-dotnet/csharp-language-server-0.5.7::gentoo failed (compile phase):
 *   Failed to run command: dotnet build --configuration Release --no-restore --no-self-contained --nologo --output /var/tmp/portage/dev-dotnet/csharp-language-server-0.5.7/work/csharp-language-server-0.5.7_net6.0_Release/csharp-language-server -maxCpuCount:4 -p:TargetFramework=net6.0 /var/tmp/portage/dev-dotnet/csharp-language-server-0.5.7/work/csharp-language-server-0.5.7/src
 * 

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib-j4-20230105-030026

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 15.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.6
Python 3.10.9
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.66.0 *
The following VMs are available for generation-2:
1)	OpenJDK 17.0.5_p8 [openjdk-17]
*)	Eclipse Temurin JDK 17.0.5_p8 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.352_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-17 
  [2]   openjdk-bin-8 
  [3]   openjdk-bin-17  system-vm

php cli (if any):

  HEAD of ::gentoo
commit f22e647b91dfe14859cb9e48d93f05859471193e
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Jan 8 22:32:06 2023 +0000

    2023-01-08 22:32:05 UTC

emerge -qpvO dev-dotnet/csharp-language-server
[ebuild  N    ] dev-dotnet/csharp-language-server-0.5.7  USE="-debug"
Comment 1 Toralf Förster gentoo-dev 2023-01-09 18:52:25 UTC
Created attachment 848022 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-01-09 18:52:26 UTC
Created attachment 848023 [details]
dev-dotnet:csharp-language-server-0.5.7:20230108-234401.log
Comment 3 Toralf Förster gentoo-dev 2023-01-09 18:52:28 UTC
Created attachment 848024 [details]
emerge-history.txt.bz2
Comment 4 Toralf Förster gentoo-dev 2023-01-09 18:52:29 UTC
Created attachment 848025 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-01-09 18:52:30 UTC
Created attachment 848026 [details]
etc.clang.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2023-01-09 18:52:30 UTC
Created attachment 848027 [details]
etc.portage.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2023-01-09 18:52:31 UTC
Created attachment 848028 [details]
temp.tar.bz2
Comment 8 Maciej Barć gentoo-dev 2023-01-09 19:04:52 UTC
> The process cannot access the file
> '/var/tmp/portage/[...]/CSharpLanguageServer.deps.json'
> because it is being used by another process.

This is a rare error but it does not only happen with this package.

Unfortunately I was not able to determine why sometimes `dotnet build` will fail like that for some packages, it might be caused by setting maxCpuCount, but on the other hand I had experienced failures when this was not set.
Comment 9 Larry the Git Cow gentoo-dev 2023-02-13 22:42:45 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97507709fff2f771860fce20b46bc95688d8f1e7

commit 97507709fff2f771860fce20b46bc95688d8f1e7
Author:     Maciej Barć <xgqt@gentoo.org>
AuthorDate: 2023-02-13 21:57:23 +0000
Commit:     Maciej Barć <xgqt@gentoo.org>
CommitDate: 2023-02-13 22:42:40 +0000

    dev-dotnet/csharp-language-server: disable parallel build
    
    Closes: https://bugs.gentoo.org/890297
    Signed-off-by: Maciej Barć <xgqt@gentoo.org>

 .../csharp-language-server/csharp-language-server-0.5.7.ebuild    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)