I'm not sure where the issue is but I tried with 1.9 - both locally and in Travis it passes with the same code. https://github.com/miracl/gomiracl/compare/fix-build?expand=1 - code https://travis-ci.org/miracl/gomiracl/jobs/345000314 - build
On Thursday, February 22, 2018 at 6:48:34 PM UTC+2, Ian Lance Taylor wrote: > > On Thu, Feb 22, 2018 at 8:38 AM, Владислав Митов > <vladisl...@gmail.com <javascript:>> wrote: > > > > One of my build started failing with 1.10. Basically I'm building a > wrapper > > around a C library and it fails with: > > > > # runtime/cgo > > gcc_libinit.c: In function '_cgo_try_pthread_create': > > gcc_libinit.c:97:18: error: storage size of 'ts' isn't known > > struct timespec ts; > > ^~ > > gcc_libinit.c:110:3: error: implicit declaration of function 'nanosleep' > > [-Werror=implicit-function-declaration] > > nanosleep(&ts, nil); > > ^~~~~~~~~ > > gcc_libinit.c:97:18: error: unused variable 'ts' > [-Werror=unused-variable] > > struct timespec ts; > > ^~ > > cc1: all warnings being treated as errors > > https://travis-ci.org/miracl/gomiracl/jobs/344782123 > > > > Any hint's what's causing this? > > You say this started failing with 1.10. That file > (runtime/cgo/gcc_libinit.c) hasn't changed since 1.9, so I think > something else must have changed. > > timespec and nanosleep are normally defined in <time.h>. What system > are you using? > > Ian > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.