-
Notifications
You must be signed in to change notification settings - Fork 141
Closed
Description
I'm trying to build top-of-tree SG on my MBP. I did a clean checkout using the boostrap.sh script as described in the build instructions. The build script succeeded and the binary is in the expected place, but it crashes and burns immediately:
$ godeps/bin/sync_gateway
zsh: killed godeps/bin/sync_gateway
$ lldb godeps/bin/sync_gateway
(lldb) target create "godeps/bin/sync_gateway"
Current executable set to 'godeps/bin/sync_gateway' (x86_64).
(lldb) run
error: error: ::posix_spawnp ( pid => 5727, path = '/Couchbase/sync_gateway/godeps/bin/sync_gateway', file_actions = 0x7fff50f3f628, attr = 0x7fff50f3f638, argv = 0x7f8ac971bbe0, envp = 0x7f8ac972d6f0 ) err = Cannot allocate memory (0x0000000c)
(lldb) bt
error: invalid process
(lldb)
I've been developing for OS X since 2000 and I've never seen anything like that! It looks like the binary is broken enough that it can't even be launched into a process.
@tleyden suggested I build and run sgload
, just to make sure my Go toolchain works. I did, and it starts up, so that doesn't seem to be the problem.
- MacBook Pro
- macOS 10.12.4 beta (16E192b)
- go version go1.8 darwin/amd64 (installed today via homebrew)
- Xcode 8.3;
clang -v
reports "Apple LLVM version 8.1.0 (clang-802.0.38)"