[Bug go/81451] missing futex check - libgo/runtime/thread-linux.c:12:0 futex.h:13:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘long’
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81451 --- Comment #6 from martin --- Thanks!
[Bug go/81451] missing futex check - libgo/runtime/thread-linux.c:12:0 futex.h:13:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘long’
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81451 Ian Lance Taylor changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #5 from Ian Lance Taylor --- Should be fixed now on trunk.
[Bug go/81451] missing futex check - libgo/runtime/thread-linux.c:12:0 futex.h:13:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘long’
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81451 --- Comment #4 from ian at gcc dot gnu.org --- Author: ian Date: Tue Jul 18 23:14:29 2017 New Revision: 250326 URL: https://gcc.gnu.org/viewcvs?rev=250326=gcc=rev Log: PR go/81451 runtime: inline runtime_osinit We had two identical copies of runtime_osinit. They set runtime_ncpu, a variable that is no longer used. Removing that leaves us with two lines. Inline those two lines in the two places the function was called. This fixes GCC PR 81451. Reviewed-on: https://go-review.googlesource.com/48862 Removed: trunk/libgo/runtime/thread-linux.c trunk/libgo/runtime/thread-sema.c Modified: trunk/gcc/go/gofrontend/MERGE trunk/libgo/Makefile.am trunk/libgo/Makefile.in trunk/libgo/go/runtime/stubs.go trunk/libgo/runtime/go-libmain.c trunk/libgo/runtime/go-main.c trunk/libgo/runtime/proc.c trunk/libgo/runtime/runtime.h
[Bug go/81451] missing futex check - libgo/runtime/thread-linux.c:12:0 futex.h:13:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘long’
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81451 --- Comment #3 from martin --- >You should just remove the #include and carry on. Thanks, that worked for me.
[Bug go/81451] missing futex check - libgo/runtime/thread-linux.c:12:0 futex.h:13:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘long’
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81451 --- Comment #2 from Andreas Schwab--- That's a stone-age version from linux 2.5.70.
[Bug go/81451] missing futex check - libgo/runtime/thread-linux.c:12:0 futex.h:13:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘long’
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81451 --- Comment #1 from Ian Lance Taylor --- There does seem to be something wrong with your linux/futex.h, which is much shorter than the one on my system. But it is also true that the file where the error occurs no longer needs to #include . You should just remove the #include and carry on. I'll commit a more comprehensive fix to mainline.