Index: src/internal/platform/supported.go
--- src/internal/platform/supported.go.orig
+++ src/internal/platform/supported.go
@@ -86,8 +86,7 @@ func MustLinkExternal(goos, goarch string, withCgo boo
 	if withCgo {
 		switch goarch {
 		case "loong64",
-			"mips", "mipsle", "mips64", "mips64le",
-			"riscv64":
+			"mips", "mipsle", "mips64", "mips64le":
 			// Internally linking cgo is incomplete on some architectures.
 			// https://go.dev/issue/14449
 			return true
