Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 923499 - dev-lang/go-1.21.6:0 -- runtime error: index out of range [0] with length 0
Summary: dev-lang/go-1.21.6:0 -- runtime error: index out of range [0] with length 0
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-01 23:38 UTC by Gary E. Miller
Modified: 2024-02-02 19:29 UTC (History)
1 user (show)

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


Attachments
build log (dev-lang:go-1.21.6:20240201-230130.log,6.62 KB, text/plain)
2024-02-01 23:39 UTC, Gary E. Miller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gary E. Miller 2024-02-01 23:38:58 UTC
Doing an "emerge @golang-rebuild" afer updating to go-1.21.6

Emerge fails to rebuild on a 32-bit Pi3.



Reproducible: Always

Steps to Reproduce:
1.emerge @golang-rebuild 
2.
3.
Actual Results:  
````
Building Go toolchain1 using /usr/lib/go.
# bootstrap/cmd/compile/internal/noder
../../../../src/cmd/compile/internal/noder/writer.go:1467: internal compiler error: '(*pkgWriter).rangeTypes': panic during expand calls while compiling (*pkgWriter).rangeTypes:

runtime error: index out of range [0] with length 0

goroutine 341 [running]:
cmd/compile/internal/ssa.Compile.func1()
	cmd/compile/internal/ssa/compile.go:49 +0x88
panic({0xa184c0, 0x3b023a0})
	runtime/panic.go:914 +0x244
cmd/compile/internal/ssa.expandCalls(0x5714410)
	cmd/compile/internal/ssa/expand_calls.go:1634 +0x2844
cmd/compile/internal/ssa.Compile(0x5714410)
	cmd/compile/internal/ssa/compile.go:97 +0xca8
cmd/compile/internal/ssagen.buildssa(0x4ec8180, 0x0)
	cmd/compile/internal/ssagen/ssa.go:568 +0x2bc0
cmd/compile/internal/ssagen.Compile(0x4ec8180, 0x0)
	cmd/compile/internal/ssagen/pgen.go:187 +0x38
cmd/compile/internal/gc.compileFunctions.func5.1(0x0)
	cmd/compile/internal/gc/compile.go:184 +0x38
cmd/compile/internal/gc.compileFunctions.func3.1()
	cmd/compile/internal/gc/compile.go:166 +0x38
created by cmd/compile/internal/gc.compileFunctions.func3 in goroutine 3
	cmd/compile/internal/gc/compile.go:165 +0x244
````

Expected Results:  
A good emerge

Note: The hostname is "pi4", but the hardware is a Pi 3B
runing 32-bit Gentoo stable

pi4 ~ # emerge -pqv '=dev-lang/go-1.21.6::gentoo'
[ebuild   R   ] dev-lang/go-1.21.6 

pi4 ~ # emerge --info '=dev-lang/go-1.21.6::gentoo'
Portage 3.0.61 (python 3.10.13-final-0, default/linux/arm/17.0, gcc-13, glibc-2.38-r9, 5.10.11-v7 armv7l)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.10.11-v7-armv7l-ARMv7_Processor_rev_4_-v7l-with-glibc2.38
KiB Mem:      995688 total,    429456 free
KiB Swap:    2097148 total,   2041852 free
Timestamp of repository gentoo: Thu, 01 Feb 2024 20:03:31 +0000
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.40 p7) 2.40.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.71-r6::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.27.9::gentoo
dev-build/libtool:         2.4.7-r1::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.0-r2::gentoo
dev-lang/perl:             5.38.2-r1::gentoo
dev-lang/python:           3.10.13::gentoo, 3.11.7::gentoo, 3.12.1::gentoo
dev-lang/rust-bin:         1.71.1::gentoo
sys-apps/baselayout:       2.14-r1::gentoo
sys-apps/openrc:           0.53::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.40-r9::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             12.3.1_p20230526::gentoo, 13.2.1_p20240113-r1::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-kernel/linux-headers:  6.6::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r9::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.namerica.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-extra-opts: --exclude ChangeLog* --delete-excluded
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 3

ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="*"
CBUILD="armv7a-unknown-linux-gnueabihf"
CFLAGS="-march=armv8-a+crc -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard -O2 -pipe"
CHOST="armv7a-unknown-linux-gnueabihf"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=armv8-a+crc -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --with-bdeps=y --backtrack=20"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2"
GENTOO_MIRRORS="https://mirror.reenigne.net/gentoo/ https://172.83.105.10/gentoo/ https://mirror.clarkson.edu/gentoo/ https://mirrors.mit.edu/gentoo-distfiles/ https://128.153.145.19/gentoo/ https://129.97.134.71/gentoo-distfiles/ https://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="en en_US"
MAKEOPTS="-j2 -l3"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude ChangeLog* --delete-excluded"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
PYTHONPATH="/usr/local/lib/python3.10/site-packages/"
SHELL="/bin/bash"
USE="acl adns aio apm arm bash-completion blake2 bzip2 caps cdp cli cpudetection crypt dane dri edp fdp fontconfig fortran gdbm gold gzip harfbuzz hddtemp http2 iconv ipv6 jpeg kmod ldns lm_sensors lz4 lzma ncurses neon nfs nfsv4 nfsv41 nginx nls openmp pam pcre png readline seccomp smp split-usr sqlite ssh ssl test-rust threads tools truetype tty-helpers udev unicode urandom usb vim-syntax wifi xattr zlib zstd" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_conn limit_req map memcached proxy referer rewrite scgi spdy split_clients ssi upstream_hash upstream_ip_hash upstream_keepalive upstream_least_conn upstream_zone userid uwsgi" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10 python3_9" RUBY_TARGETS="ruby31" VIDEO_CARDS="exynos fbdev omap dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

dev-lang/go-1.21.6::gentoo was built with the following:
USE=""
Comment 1 Gary E. Miller 2024-02-01 23:39:50 UTC
Created attachment 883969 [details]
build log

build log