https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92810

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Next error:
/bajas/pinskia/src/toolchain-10/scripts/../src/libgo/go/internal/syscall/unix/getrandom_linux.go:35:34:
error: reference to undefined name ‘randomTrap’
   35 |  r1, _, errno := syscall.Syscall(randomTrap,
      |                                  ^
make[7]: Entering directory
'/bajas/pinskia/src/toolchain-10/build-aarch64_be-marvell-linux-gnu/aarch64_be-marvell-linux-gnu/ilp32/libsanitizer'
Makefile:2826: recipe for target 'internal/syscall/unix.lo' failed
make[5]: *** [internal/syscall/unix.lo] Error 1


go/internal/syscall/unix/getrandom_linux_generic.go looks like it is not being
used.

Something like:
diff --git a/libgo/go/internal/syscall/unix/getrandom_linux_generic.go
b/libgo/go/internal/syscall/unix/getrandom_linux_generic.go
index f70ada31a98..fa41e64116a 100644
--- a/libgo/go/internal/syscall/unix/getrandom_linux_generic.go
+++ b/libgo/go/internal/syscall/unix/getrandom_linux_generic.go
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.

-// +build linux,arm64 linux,nios2 linux,riscv64
+// +build linux,arm64 linux,arm64be linux,nios2 linux,riscv64

 package unix


---- CUT ----
Testing that (and see what the next failure is)

Reply via email to