Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/cgo: Build tests fail on FreeBSD with CC=clang #6292
What steps will reproduce the problem? 1. Build Go on FreeBSD with CC=clang What is the expected output? ALL TESTS PASSED What do you see instead? # ../misc/cgo/testcdefs # _/root/go/misc/cgo/testcdefs ./cdefstest.h:13 ./cdefstest.c:6 array size must be a positive constant ./cdefstest.h:15 ./cdefstest.c:6 array size must be a positive constant ./cdefstest.h:17 ./cdefstest.c:6 array size must be a positive constant Which compiler are you using (5g, 6g, 8g, gccgo)? 6g Which operating system are you using? FreeBSD Which version are you using? (run 'go version') Tip/HEAD and specific commits Please provide any additional information below. The first commit to cause the build tests to fail is "cmd/cgo: Fix issue with cgo cdefs" on 2013-07-24. The clang version is 3.1, although I encountered the same error while porting Go to DragonFly, which has clang version 3.2.
This issue was closed.