Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 914292 - app-shells/pwsh-7.3.6 - Failed to run command: dotnet-bin-7.0 build --configuration Release --no-restore --no-self-contained --out
Summary: app-shells/pwsh-7.3.6 - Failed to run command: dotnet-bin-7.0 build --configu...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: dotnet project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-16 13:23 UTC by Toralf Förster
Modified: 2024-05-09 22:05 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,18.86 KB, text/plain)
2023-09-16 13:23 UTC, Toralf Förster
Details
app-shells:pwsh-7.3.6:20230916-104951.log (app-shells:pwsh-7.3.6:20230916-104951.log,11.16 KB, text/plain)
2023-09-16 13:23 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,64.77 KB, application/x-xz)
2023-09-16 13:23 UTC, Toralf Förster
Details
environment (environment,206.27 KB, text/plain)
2023-09-16 13:23 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,784 bytes, application/x-xz)
2023-09-16 13:23 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,37.98 KB, application/x-xz)
2023-09-16 13:23 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-09-16 13:23:10 UTC
/opt/dotnet-sdk-bin-7.0/sdk/7.0.203/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.GenerateAssemblyInfo.targets(209,5): error MSB4044: The "GetAssemblyVersion" task was not given a value for the required parameter "NuGetVersion". [/var/tmp/portage/app-shells/pwsh-7.3.6/work/pwsh-7.3.6/src/System.Management.Automation/System.Management.Automation.csproj]
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:02.13
 * ERROR: app-shells/pwsh-7.3.6::gentoo failed (compile phase):
 *   Failed to run command: dotnet-bin-7.0 build --configuration Release --no-restore --no-self-contained --output /var/tmp/portage/app-shells/pwsh-7.3.6/work/pwsh-7.3.6_net7.0_Release --runtime linux-x64 -maxCpuCount:5 /var/tmp/portage/app-shells/pwsh-7.3.6/work/pwsh-7.3.6/src/powershell-unix/powershell-unix.csproj -p:StripSymbols=true -p:NativeDebugSymbols=false -p:WarningLevel=1
 * 
 * Call stack:

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-20230910-050004

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 16.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/16/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/16
16.0.6
Python 3.11.5
Available Rust versions:
  [1]   rust-bin-1.72.0 *
The following VMs are available for generation-2:
1)	OpenJDK 17.0.7_p7 [openjdk-17]
2)	Eclipse Temurin JDK 17.0.7_p7 [openjdk-bin-17]
*)	Eclipse Temurin JRE 17.0.7_p7 [openjdk-jre-bin-17]
4)	Eclipse Temurin JRE 8.372_p07 [openjdk-jre-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-17 
  [2]   openjdk-bin-17 
  [3]   openjdk-jre-bin-8 
  [4]   openjdk-jre-bin-17  system-vm

php cli (if any):
go version go1.21.1 linux/amd64

  HEAD of ::gentoo
commit 4d8b851ba802a82f0dd3fc13b72c30d5047bae78
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Sep 16 09:46:41 2023 +0000

    2023-09-16 09:46:40 UTC

emerge -qpvO app-shells/pwsh
[ebuild  N    ] app-shells/pwsh-7.3.6  USE="-debug"
Comment 1 Toralf Förster gentoo-dev 2023-09-16 13:23:11 UTC
Created attachment 870734 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-09-16 13:23:12 UTC
Created attachment 870735 [details]
app-shells:pwsh-7.3.6:20230916-104951.log
Comment 3 Toralf Förster gentoo-dev 2023-09-16 13:23:13 UTC
Created attachment 870736 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2023-09-16 13:23:14 UTC
Created attachment 870737 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-09-16 13:23:15 UTC
Created attachment 870738 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-09-16 13:23:16 UTC
Created attachment 870739 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-09-16 13:23:17 UTC
The file size of ./files/temp.tar.xz is too big (498M) for an upload. For few weeks the link http://tinderbox.zwiebeltoralf.de:31560/17.1_desktop_plasma_systemd-20230910-050004/var/tmp/tb/issues/20230916-105153-app-shells_pwsh-7.3.6/files/temp.tar.xz is valid.
Comment 8 Jesse Harris 2023-10-04 03:53:26 UTC
@Tor(In reply to Toralf Förster from comment #7)
> The file size of ./files/temp.tar.xz is too big (498M) for an upload. For
> few weeks the link
> http://tinderbox.zwiebeltoralf.de:31560/17.1_desktop_plasma_systemd-20230910-
> 050004/var/tmp/tb/issues/20230916-105153-app-shells_pwsh-7.3.6/files/temp.
> tar.xz is valid.

I had a similar error but also had the following lines in the build failure logs:

      /usr/bin/sh: line 1: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
      /usr/bin/sh: line 1: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
      /usr/bin/sh: line 1: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
      /usr/bin/sh: line 1: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
      /usr/bin/sh: line 1: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
      /usr/bin/sh: line 1: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
      /usr/bin/sh: line 1: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)

I fixed it by adding 'en_US.UTF-8 UTF-8' to /etc/locale.gen and running locale-gen
Comment 9 Maciej Barć gentoo-dev 2023-10-04 15:43:28 UTC
(In reply to Jesse Harris from comment #8)
> @Tor(In reply to Toralf Förster from comment #7)
> > The file size of ./files/temp.tar.xz is too big (498M) for an upload. For
> > few weeks the link
> > http://tinderbox.zwiebeltoralf.de:31560/17.1_desktop_plasma_systemd-20230910-
> > 050004/var/tmp/tb/issues/20230916-105153-app-shells_pwsh-7.3.6/files/temp.
> > tar.xz is valid.
> 
> I had a similar error but also had the following lines in the build failure
> logs:
> 
>       /usr/bin/sh: line 1: warning: setlocale: LC_ALL: cannot change locale
> (en_US.UTF-8)
> 
> I fixed it by adding 'en_US.UTF-8 UTF-8' to /etc/locale.gen and running
> locale-gen

Did the build pass correctly after you set the locale that .NET build wanted?
Comment 10 Toralf Förster gentoo-dev 2023-10-05 17:10:20 UTC
For some reasons it seems that the tar command to collect build aretfaccs hangs for $workdir/../.. w/o any log message or so
Comment 11 Toralf Förster gentoo-dev 2023-10-06 17:45:59 UTC
(In reply to Toralf Förster from comment #10)
> For some reasons it seems that the tar command to collect build aretfaccs
> hangs for $workdir/../.. w/o any log message or so

it seems not to hang for tar if the portage temp dir is NOT a tmpfs.

FWIW I meant this tar invocation:
https://github.com/toralf/tinderbox/blob/main/bin/job.sh#L235
Comment 12 Maciej Barć gentoo-dev 2023-12-16 18:58:49 UTC
My guess is that Microsoft.NET.GenerateAssemblyInfo.targets wants to force English locale.

Similar bug report: https://gitlab.gentoo.org/dotnet/gentoo-dotnet-2023/-/issues/2
Comment 13 Larry the Git Cow gentoo-dev 2023-12-16 21:45:01 UTC
The bug has been referenced in the following commit(s):

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

commit e9606837f04d623e6d5b00d790dcb8e82b1d8e45
Author:     Maciej Barć <xgqt@gentoo.org>
AuthorDate: 2023-12-16 21:40:24 +0000
Commit:     Maciej Barć <xgqt@gentoo.org>
CommitDate: 2023-12-16 21:44:59 +0000

    app-shells/pwsh: no WarningLevel, switch to en_US, misc tweaks
    
    Bug: https://bugs.gentoo.org/914292
    Bug: https://github.com/PowerShell/PowerShell/issues/20941
    Signed-off-by: Maciej Barć <xgqt@gentoo.org>

 .../pwsh/files/pwsh-7.4.0-disable-telemetry.patch  | 47 ++++++++++++++++++++++
 app-shells/pwsh/pwsh-7.4.0.ebuild                  | 45 ++++++++++-----------
 2 files changed, 69 insertions(+), 23 deletions(-)