[Bug go/52557] New: Timex undefined on arm-linux-gnueabi

doko at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Mar 11 17:33:00 GMT 2012


             Bug #: 52557
           Summary: Timex undefined on arm-linux-gnueabi
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: go
        AssignedTo: ian@airs.com
        ReportedBy: doko@gcc.gnu.org

libgo r185183 fails to build on arm-linux-gnueabi,

libcalls.go:1662:22: error: use of undefined type 'Timex'
make[6]: *** [syscall/syscall.lo] Error 1

build/arm-linux-gnueabi/libgo/gen-sysinfo.go has:

// type _timex struct { modes uint32; offset int32; freq int32; maxerror int32;
esterror int32; status int32; constant int32; precision int32; tolerance int32;
time _timeval; tick int32; ppsfreq int32; jitter int32; shift int32; stabil
int32; jitcnt int32; calcnt int32; errcnt int32; stbcnt int32; tai int32;
Godump_0 INVALID-bit-field; Godump_1 INVALID-bit-field; Godump_2
INVALID-bit-field; Godump_3 INVALID-bit-field; Godump_4 INVALID-bit-field;
Godump_5 INVALID-bit-field; Godump_6 INVALID-bit-field; Godump_7
INVALID-bit-field; Godump_8 INVALID-bit-field; Godump_9 INVALID-bit-field;
Godump_10 INVALID-bit-field; }

the invalid fields correspond to bits/timex.h in the timex struct:

  int tai;              /* TAI offset (ro) */

  /* ??? */
  int  :32; int  :32; int  :32; int  :32;
  int  :32; int  :32; int  :32; int  :32;
  int  :32; int  :32; int  :32;

More information about the Gcc-bugs mailing list