Brendan Cully firstname.lastname@example.org is bouncing. I've gotten go-lang to build on 10.9 with xcode 5.0.1. I would guess that this may only work with xcode 5, but I have not tried any xcode 4 compilers.
Fails on 10.7 with Xcode 4.6.3:
lookup_unix.go:64: cannot use _Ctype_ulong(bufSize) (type C.ulong) as type C.size_t in function argument
If I comment out the patchscript, it works. Looks like the patchscript needs to be made conditional on Xcode version (or just 10.9?)
It works on 10.8/Xcode 5. Maybe selecting based on the clang version would suffice. Here's the Xcode 5 version:
Fiona:sci hansen$ clang --version
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Thread model: posix
And here's the Xcode 4 version.
Alexanders-Mac:~ hansen$ clang --version
Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
Thread model: posix
So it'd probably suffice to parse the "clang --version" output to see if it's 5.0 or later.
While the package builds and looks like it might be okay, it doesn't work for me. I tried the hello world program without success:
go packaged through fink tries to modify files in the go language tree
Looks like updating to go 1.2 did the trick. however, after this http://code.google.com/p/go/issues/detail?id=6958 I'm just not feeling very enthused by go.
Packaging requires preserving timestamp http://code.google.com/p/go/issues/detail?id=6958
May need to depend on python - https://code.google.com/p/go/issues/detail?id=6962
Use make.bash, not all.bash to avoid tests - https://code.google.com/p/go/issues/detail?id=6961
Brendan or others,
Anyone up for testing my go 1.2 on something other than 10.9 and XCode 5? And if it works for others, I'd like to commit this.
The go-1.2 .info file fails for me on 10.7/Xcode 4.6.3.
clang: warning: argument unused during compilation: '-pthread'
clang: error: no such file or directory: 'libgcc.a'
### execution of /tmp/fink.pGfu2 failed, exit code 2
### execution of /tmp/fink.GZ3IA failed, exit code 2
It finishes building if I set CC to /usr/bin/gcc like the old 1.1.1 version.
Hanspeter, Thanks for test. Mind trying this?
CLANG_VER=clang --version | cut -d\ -f4
echo "CLANG_VER: $CLANG_VER"
dpkg --compare-versions $CLANG_VER lt 5 && export CC=gcc
echo "CC: $CC"
clang --version | cut -d\ -f4
That new go.info worked once I changed export CC=gcc to export CC=/usr/bin/gcc Otherwise, 'gcc' picks up Fink's compiler-wrapper.
go 1.2 is in.