#4378 go for 10.9 / xcode 5



Brendan Cully brendan@finkproject.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.

-kurt (goatbar)

1 Attachments


  • Hanspeter Niederstrasser

    Fails on 10.7 with Xcode 4.6.3:

    # os/user
    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?)

    • Alexander Hansen

      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)
      Target: x86_64-apple-darwin12.5.0
      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)
      Target: x86_64-apple-darwin11.4.2
      Thread model: posix

      So it'd probably suffice to parse the "clang --version" output to see if it's 5.0 or later.

  • Kurt Schwehr

    Kurt Schwehr - 2013-12-15

    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

  • Kurt Schwehr

    Kurt Schwehr - 2013-12-17

    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.

  • Hanspeter Niederstrasser

    The go-1.2 .info file fails for me on 10.7/Xcode 4.6.3.

    # runtime/cgo
    clang: warning: argument unused during compilation: '-pthread'
    # runtime/cgo
    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.

  • Kurt Schwehr

    Kurt Schwehr - 2013-12-19

    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"
    cd src

  • Hanspeter Niederstrasser

    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.

  • Kurt Schwehr

    Kurt Schwehr - 2013-12-19
    • status: open --> closed-accepted
    • assigned_to: Brendan Cully --> Kurt Schwehr
    • Group: Undergoing_Validation --> Added_to_Fink
  • Kurt Schwehr

    Kurt Schwehr - 2013-12-19

    go 1.2 is in.


Log in to post a comment.