cgo test error on os x 10.9.4: implicit declaration of function

116 views
Skip to first unread message

Faried Nawaz

unread,
Jul 1, 2014, 11:53:26 AM7/1/14
to golan...@googlegroups.com
When I build go from tip on OS X 10.9.4 (gcc -v says Apple LLVM version 5.1), I get this:

[...]
ok      unicode/utf16    0.026s
ok      unicode/utf8    0.053s
?       unsafe    [no test files]

real    1m59.972s
user    1m47.287s
sys    0m28.983s

# GOMAXPROCS=2 runtime -cpu=1,2,4
ok      runtime    32.315s

# sync -cpu=10
ok      sync    0.083s

# Testing race detector.
ok      runtime/race    4.452s
ok      flag    1.421s

# ../misc/cgo/stdio

# ../misc/cgo/life

# ../misc/cgo/test
# _/Users/fn/go/misc/cgo/test
./cthread_unix.c:17:3: error: implicit declaration of function 'Add' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
FAIL    _/Users/fn/go/misc/cgo/test [build failed]
$


I'm not sure what causes this, and stuff I compile seems to work fine.  I searched for the above error in the list archives but didn't find anything.


Faried.

Ian Lance Taylor

unread,
Jul 1, 2014, 12:54:14 PM7/1/14
to Faried Nawaz, golang-nuts
I assume this is repeatable. Please open an issue at
http://golang.org/issue/new. Thanks.

Note that your Go installation is complete and usable at this point
and pretty much all of the tests have passed. This error clearly has
nothing to do with Go. You can use your Go build safely.

Ian
Reply all
Reply to author
Forward
0 new messages