http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53879
Bug #: 53879 Summary: new glibc: sysinfo.go:5976:68: error: expected ‘{’ Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: go AssignedTo: i...@airs.com ReportedBy: jan.kratoch...@redhat.com Build: x86_64-unknown-linux-gnu Fedora 17 x86_64 builds gccgo OK but Fedora 18 (Rawhide) x86_64 does not. Tested only FSF GCC HEAD. sysinfo.go:5976:68: error: expected ‘{’ type Rusage struct { Utime Timeval; Stime Timeval; Godump_0 struct ru_maxrss int64; ; Godump_1 struct ru_ixrss int64; ; Godump_2 struct ru_idrss int64; ; Godump_3 struct ru_isrss int64; ; Godump_4 struct ru_minflt int64; ; Godump_5 struct ru_majflt int64; ; Godump_6 struct ru_nswap int64; ; Godump_7 struct ru_inblock int64; ; Godump_8 struct ru_oublock int64; ; Godump_9 struct ru_msgsnd int64; ; Godump_10 struct ru_msgrcv int64; ; Godump_11 struct ru_nsignals int64; ; Godump_12 struct ru_nvcsw int64; ; Godump_13 struct ru_nivcsw int64; ; } ^ sysinfo.go:5976:68: error: expected ‘;’ or ‘}’ or newline sysinfo.go:5976:85: error: expected field name with many similar errors. /usr/include/bits/resource.h: PASS: glibc-headers-2.15-37.fc17.x86_64 FAIL: glibc-headers-2.15.90-16.fc18.x86_64 Untested but IMO it is due to: commit 5e1a27a96de16ad0cd67a81e25741790b32e2c25 Author: H.J. Lu <hjl.to...@gmail.com> Date: Tue May 22 05:32:34 2012 -0700 Pad each field to __syscall_slong_t in struct rusage http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=5e1a27a96de16ad0cd67a81e25741790b32e2c25