Go version
go1.24.2
Output of go env
in your module/workspace:
CC='clang'
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_ENABLED='1'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
CXX='clang++'
GCCGO='gccgo'
GO111MODULE=''
GOARCH='riscv64'
GOAUTH='netrc'
GOBIN=''
GOCACHE='/root/.cache/go-build'
GOCACHEPROG=''
GODEBUG=''
GOENV='/root/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFIPS140='off'
GOFLAGS=''
GOGCCFLAGS='-fPIC -pthread -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmess
file-prefix-map=/tmp/go-build207065778=/tmp/go-build -gno-record-gcc-switches'
GOHOSTARCH='riscv64'
GOHOSTOS='freebsd'
GOINSECURE=''
GOMOD='/root/go-go1.24.2/src/go.mod'
GOMODCACHE='/root/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='freebsd'
GOPATH='/root/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GORISCV64='rva20u64'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTELEMETRY='local'
GOTELEMETRYDIR='/root/.config/go/telemetry'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/freebsd_riscv64'
GOVCS=''
GOVERSION='go1.24.2'
GOWORK=''
PKG_CONFIG='pkg-config'
What did you do?
run ./all.bash -v
What did you see happen?
[00:13:46.359] ##### Testing packages.
[00:14:10.093] # archive/tar.test
[00:14:10.094] loadelf: $WORK/b082/_pkg_.a(_x001.o): 170074: sym#2 ("$d.0"): ignoring symbol in section 3 (".co
mment") (type 0)
[00:14:10.097] loadelf: $WORK/b082/_pkg_.a(_x002.o): 170203: sym#128 ("$d.1"): ignoring symbol in section 4 (".
debug_loc") (type 0)
[00:14:10.099] loadelf: $WORK/b082/_pkg_.a(_x003.o): 170228: sym#24 ("$d.1"): ignoring symbol in section 4 (".d
ebug_loc") (type 0)
[00:14:10.102] loadelf: $WORK/b083/_pkg_.a(_x001.o): 170230: sym#2 ("$d.0"): ignoring symbol in section 3 (".co
mment") (type 0)
[00:14:10.104] loadelf: $WORK/b083/_pkg_.a(_x002.o): 170232: sym#2 ("$d.0"): ignoring symbol in section 3 (".co
mment") (type 0)
[00:14:10.106] loadelf: $WORK/b083/_pkg_.a(_x003.o): 170255: sym#22 ("$d.1"): ignoring symbol in section 4 (".d
ebug_loc") (type 0)
[00:14:10.109] loadelf: $WORK/b083/_pkg_.a(_x004.o): 170279: sym#22 ("$d.2"): ignoring symbol in section 5 (".d
ebug_loc") (type 0)
[00:14:10.111] loadelf: $WORK/b083/_pkg_.a(_x005.o): 170346: sym#64 ("$d.3"): ignoring symbol in section 6 (".d
ebug_loc") (type 0)
[00:14:10.114] loadelf: $WORK/b083/_pkg_.a(_x006.o): 170555: sym#206 ("$d.3"): ignoring symbol in section 6 (".
debug_loc") (type 0)
[00:14:10.116] loadelf: $WORK/b083/_pkg_.a(_x007.o): 170572: sym#16 ("$d.1"): ignoring symbol in section 4 (".d
ebug_loc") (type 0)
[00:14:10.119] loadelf: $WORK/b083/_pkg_.a(_x008.o): 170587: sym#14 ("$d.1"): ignoring symbol in section 4 (".d
ebug_loc") (type 0)
[00:14:10.121] loadelf: $WORK/b083/_pkg_.a(_x009.o): 170616: sym#26 ("$d.3"): ignoring symbol in section 6 (".d
ebug_loc") (type 0)
[00:14:10.124] loadelf: $WORK/b083/_pkg_.a(_x010.o): 170678: sym#63 ("$d.1"): ignoring symbol in section 4 (".r
iscv.attributes") (type 0)
[00:14:10.126] runtime.cgo_yield: relocation target _cgo_yield not defined
[00:14:10.128] os/user._cgo_9bef24737d87_Cfunc_mygetgrgid_r: relocation target _cgo_9bef24737d87_Cfunc_mygetgrg
id_r not defined
[00:14:10.129] os/user._cgo_9bef24737d87_Cfunc_mygetpwuid_r: relocation target _cgo_9bef24737d87_Cfunc_mygetpwu
id_r not defined
[00:14:10.131] os/user._cgo_9bef24737d87_Cfunc_sysconf: relocation target _cgo_9bef24737d87_Cfunc_sysconf not d
efined
[00:14:10.133] _cgo_init: relocation target x_cgo_init not defined
[00:14:10.133] _cgo_thread_start: relocation target x_cgo_thread_start not defined
[00:14:10.134] _cgo_notify_runtime_init_done: relocation target x_cgo_notify_runtime_init_done not defined
[00:14:10.135] _cgo_pthread_key_created: relocation target x_cgo_pthread_key_created not defined
[00:14:10.136] /root/go-go1.24.2/pkg/tool/freebsd_riscv64/link: too many errors
[00:14:10.137] FAIL archive/tar [build failed]
What did you expect to see?
test passed
Comment From: mengzhuo
cc @golang/riscv64
Comment From: gopherbot
Change https://go.dev/cl/668516 mentions this issue: cmd/link: disable loading debug symbol for riscv64
Comment From: gopherbot
Change https://go.dev/cl/669675 mentions this issue: cmd/link: ignore mapping symbols on riscv64
Comment From: clausecker
Can we get this fix back-ported to 1.24?
Comment From: mengzhuo
@gopherbot Please backport to 1.23 and 1.24, it's blocking Go building on FreeBSD
Comment From: gopherbot
Backport issue(s) opened: #74734 (for 1.23), #74735 (for 1.24).
Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://go.dev/wiki/MinorReleases.