Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 921773

Summary: app-admin/hcloud-1.41.0 - build failed
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Agostino Sarubbo <ago>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
app-admin:hcloud-1.41.0:20240111-104802.log
emerge-history.txt.xz
environment
etc.clang.tar.xz
etc.portage.tar.xz
qlist-info.txt.xz
temp.tar.xz

Description Toralf Förster gentoo-dev 2024-01-11 12:02:59 UTC
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-admin/hcloud-1.41.0/work/hcloud-1.41.0 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-admin/hcloud-1.41.0/work/hcloud-1.41.0 ...
internal/cmd/iso/list.go:6:2: package slices is not in GOROOT (/usr/lib/go/src/slices)
 * ERROR: app-admin/hcloud-1.41.0::gentoo failed (compile phase):
 *   build failed
 * 
 * Call stack:

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib_systemd-20240104-043505

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6
Python 3.11.7
Available Rust versions:
  [1]   rust-bin-1.74.1
  [2]   rust-1.74.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.20.1_p1 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.20.13 linux/amd64

  HEAD of ::gentoo
commit 298d71c02bde6faec7cdbb0182863aaf1438b7e4
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Jan 11 10:13:20 2024 +0000

    2024-01-11 10:13:19 UTC

emerge -qpvO app-admin/hcloud
[ebuild   R   ] app-admin/hcloud-1.41.0
Comment 1 Toralf Förster gentoo-dev 2024-01-11 12:03:00 UTC
Created attachment 881929 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-01-11 12:03:01 UTC
Created attachment 881930 [details]
app-admin:hcloud-1.41.0:20240111-104802.log
Comment 3 Toralf Förster gentoo-dev 2024-01-11 12:03:02 UTC
Created attachment 881931 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2024-01-11 12:03:03 UTC
Created attachment 881932 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-01-11 12:03:04 UTC
Created attachment 881933 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-01-11 12:03:05 UTC
Created attachment 881934 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-01-11 12:03:06 UTC
Created attachment 881935 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2024-01-11 12:03:07 UTC
Created attachment 881936 [details]
temp.tar.xz
Comment 9 Agostino Sarubbo gentoo-dev 2024-01-11 12:24:47 UTC
Thanks for the report.

Based on what the build log says, it looks like you are missing the 'slices' package that usually is provided directly by dev-lang/go (/usr/lib/go/src/slices)

I can't reproduce, and my guess is that your go install is somewhat broken.
Can you try re-emerging dev-lang/go and try again?

Also, there is a POC to check if slices works:

package main

import (
	"fmt"
	"slices"
)

func main() {
	numbers := []int{0, 42, -10, 8}
	fmt.Println(slices.Max(numbers))
}

You can put the content in a file called file.go and run "go run file.go"