<div dir="ltr"><div style="font-family:courier new,monospace" class="gmail_default">Vincent --<br><br>I am running Slackware64 14.2 + Multilib on a 4.4.131 Kernel.<br><br>I've been building google-go-lang with the RUN_TEST=true option<br>since last November or so and I've been keeping up with SBo <br>Updates and RUN_TEST=true has always worked just fine for `go`<br>versions 1.8.5, 1.9.2 and 1.9.5<br><br>However with this weekend's Version 1.10.2 Update, the SlackBuild<br>failed with RUN_TEST=true on the ../misc/cgo/testsanitizers tests <br><br>Log Snippet is below ... but I can send the full log if you like.<br><br>I found a number of hits on google about the failure and this one:<br><br>   <a href="https://github.com/golang/go/issues/14602">https://github.com/golang/go/issues/14602</a><br><br>suggested setting CC=clang ( for clang .ge. 3.8 ) to get past the<br>testsanitizers fail.<br><br>A very simple patch is attached.<br><br>Setting CC=clang did work for me, but I am not sure if it is a good <br>idea to override gcc with clang ...<br><br>I've got a few test programs that I'll be running thru `go` when<br>I get a break from my work schedule.<br><br>I'll let you know if I see any issues with the compiler switch.<br><br>Thanks for the google-go-lang.SlackBuild Vincent !<br><br>-- kjh<br><br># testsanitizers fail from my SBo build log:<br># -----------------------------------------<br><br>#### ../misc/cgo/testsanitizers<br>--- FAIL: TestShared (0.02s)<br>    --- FAIL: TestShared/tsan_shared (1.61s)<br>        cshared_test.go:71: `/tmp/TestShared867470121/tsan_shared` exited with exit status 66<br>                ==================<br>                WARNING: ThreadSanitizer: data race (pid=8218)<br>                  Write of size 8 at 0x7f241f795c70 by thread T1:<br>                    #0 pthread_attr_getstacksize <null> (tsan_shared+0x00000041bcf2)<br>                    #1 x_cgo_init <null> (libtsan_shared.so+0x00000008961f)<br>                    #2 runtime.rt0_go /tmp/SBo/package-google-go-lang/usr/lib64/go1.10.2/go/src/runtime/<br>asm_amd64.s:199 (libtsan_shared.so+0x00000007fdf6)<br>                <br>                  Previous write of size 8 at 0x7f241f795c70 by main thread:<br>                    #0 <null> <null> (0x000000000001)<br>                <br>                  Location is stack of thread T1.<br>                <br>                  Thread T1 (tid=8225, running) created by main thread at:<br>                    #0 pthread_create <null> (tsan_shared+0x00000040c604)<br>                    #1 _cgo_try_pthread_create <null> (libtsan_shared.so+0x0000000894e0)<br>                    #2 x_cgo_sys_thread_create <null> (libtsan_shared.so+0x000000089282)<br>                    #3 _rt0_amd64_lib /tmp/SBo/package-google-go-lang/usr/lib64/go1.10.2/go/src/runtime/<br><br><<snip>><br><br>asm_amd64.s:56 (libtsan_shared.so+0x00000007fc26)<br>                <br>                SUMMARY: ThreadSanitizer: data race ??:0 threadentry<br>                ==================<br>                ThreadSanitizer: reported 5 warnings<br>FAIL<br>2018/05/05 07:08:40 Failed: exit status 1<br><br><br></div></div>