Go version

go version go1.25-devel_a8e99ab19c Fri May 30 14:51:22 2025 -0700 linux/amd64

Output of go env in your module/workspace:

AR='ar'
CC='cc'
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_ENABLED='1'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
CXX='c++'
GCCGO='gccgo'
GO111MODULE=''
GOAMD64='v1'
GOARCH='amd64'
GOAUTH='netrc'
GOBIN=''
GOCACHE='/home/mitsuoheijo/.cache/go-build'
GOCACHEPROG=''
GODEBUG=''
GOENV='/home/mitsuoheijo/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFIPS140='off'
GOFLAGS=''
GOGCCFLAGS='-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build4154918968=/tmp/go-build -gno-record-gcc-switches'
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMOD='/home/mitsuoheijo/repos/github.com/cortexproject/cortex/go.mod'
GOMODCACHE='/home/mitsuoheijo/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/mitsuoheijo/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/home/mitsuoheijo/repos/github.com/golang/go'
GOSUMDB='sum.golang.org'
GOTELEMETRY='local'
GOTELEMETRYDIR='/home/mitsuoheijo/.config/go/telemetry'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/home/mitsuoheijo/repos/github.com/golang/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.25-devel_a8e99ab19c Fri May 30 14:51:22 2025 -0700'
GOWORK=''
PKG_CONFIG='pkg-config'

What did you do?

git clone https://github.com/cortexproject/cortex.git
cd cortex/
git checkout 0d621ff3f8ea184e3a958dc8e18aa99a64294b58
go build ./cmd/cortext

What did you see happen?

# github.com/cortexproject/cortex/cmd/cortex
panic: inlined function github.com/parquet-go/parquet-go/internal/unsafecast.Slice[uint8,go.shape.int32] missing func info

goroutine 1 [running]:
cmd/link/internal/ld.genInlTreeSym(0xc000144000, 0x4?, {0xc0000dc008, 0xc0010fec80, {0x7fe38dd3b720, 0x6c, 0x6c}, {0x3, 0x14, 0x3, ...}}, ...)
        /home/mitsuoheijo/repos/github.com/golang/go/src/cmd/link/internal/ld/pcln.go:212 +0x4b9
cmd/link/internal/ld.makeInlSyms(0xc000144000, {0xc00bbca000, 0x1a7ec, 0x1a7ec?}, 0xc005f02600)
        /home/mitsuoheijo/repos/github.com/golang/go/src/cmd/link/internal/ld/pcln.go:235 +0x21e
cmd/link/internal/ld.(*Link).pclntab(0xc000144000, {0xc006500000?, 0xc000132090?, 0x16?})
        /home/mitsuoheijo/repos/github.com/golang/go/src/cmd/link/internal/ld/pcln.go:818 +0x1ce
cmd/link/internal/ld.Main(_, {0x20, 0x20, 0x1, 0x7, 0x10, 0x0, {0xc000010481, 0x1, 0x1}, ...})
        /home/mitsuoheijo/repos/github.com/golang/go/src/cmd/link/internal/ld/main.go:430 +0x185c
main.main()
        /home/mitsuoheijo/repos/github.com/golang/go/src/cmd/link/main.go:72 +0xddb

What did you expect to see?

build succeeds

I haven't found any good simplified code for reproduction yet.

Comment From: gabyhelp

Related Issues

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

Comment From: cagedmantis

@golang/compiler

Comment From: johejo

This occurs from bfbf736564925fd91701a08395f903955cb4cbc7

Comment From: cuonglm

This occurs from bfbf736564925fd91701a08395f903955cb4cbc7

Thanks for reporting, sounds like it's the culprit.

I will take a look then.

Comment From: gopherbot

Change https://go.dev/cl/678335 mentions this issue: cmd/compile: relax reshaping condition