> With the latest go relese build I get
>
> CGOPKGPATH= cgo -- basicsound_darwin.go
> 8g -o _go_.8 basicsound_darwin.cgo1.go _cgo_gotypes.go
> 8c -FVw -I"/Users/christian.kvalheim/coding/languages/go/src/pkg/
> runtime" _cgo_defun.c
> echo 'int main() { return 0; }' >_cgo_main.c
> gcc -m32 -g -fPIC -O2 -o _cgo_main.o -c _cgo_main.c
> gcc -m32 -g -fPIC -O2 -o basicsound_darwin.cgo2.o -c
> basicsound_darwin.cgo2.c
> gcc -m32 -g -fPIC -O2 -o _cgo1_.o _cgo_main.o basicsound_darwin.cgo2.o
> lib_darwin.o -framework Cocoa
> i686-apple-darwin10-gcc-4.2.1: lib_darwin.o: No such file or directory
> make: *** [_cgo1_.o] Error 1
I had the very same errors after your original message (with 9e27e0a), but fixing the Makefiles solved the build problem (with master at b1ff03f). I do not understand how did you get the old version though, because I sent my first email after pushing the changes. Anyway "make install" now works, but "make test" fails during linking with the aforementioned error. I tried to "hg update tip/release/default", but none of them worked.
This seems to be related to modules using -framework only, as I have no problem building the samles stdio or life in $GOROOT/misc/cgo.
I wonder if it is a know problem or I should try to find the offending changeset with hg bisect.
--
Attila
One last question :) Are you using homebrew or macports ? Could be an
issue with these from my side.
This happens if you are running a new cgo
and and old 8c.
ls -l $(which cgo 8c)
and I think you will find that there is a stale 8c on your $PATH.
Russ