public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug go/106660] New: riscv32-linux-gnu fails to compile libgo due to having only 64bit time_t (no support for 32bit time_t)
@ 2022-08-16 23:21 pinskia at gcc dot gnu.org
  0 siblings, 0 replies; only message in thread
From: pinskia at gcc dot gnu.org @ 2022-08-16 23:21 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106660
           Summary: riscv32-linux-gnu fails to compile libgo due to having
                    only 64bit time_t (no support for 32bit time_t)
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: build
          Severity: normal
          Priority: P3
         Component: go
          Assignee: ian at airs dot com
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---
            Target: riscv32-linux-gnu

/bajas/pinskia/src/toolchain-riscv/scripts/../src/libgo/go/runtime/os_linux.go:30:30:
error: reference to undefined name ‘_SYS_futex’
   30 |         return int32(syscall(_SYS_futex, uintptr(addr), uintptr(op),
uintptr(val), uintptr(ts), uintptr(addr2), uintptr(val3)))
      |                              ^
/bajas/pinskia/src/toolchain-riscv/scripts/../src/libgo/go/runtime/os_linux.go:251:30:
error: reference to undefined name ‘_SYS_timer_settime’
  251 |         return int32(syscall(_SYS_timer_settime, uintptr(timerid),
uintptr(flags), uintptr(unsafe.Pointer(new)), uintptr(unsafe.Pointer(old)), 0,
0))
      |                              ^

This is due to _SYS_futex not existing for riscv32, only SYS_futex_time64
exists.

Same for _SYS_timer_settime, only _SYS_timer_settime64 .

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-08-16 23:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-16 23:21 [Bug go/106660] New: riscv32-linux-gnu fails to compile libgo due to having only 64bit time_t (no support for 32bit time_t) pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).