{"action":"closed","issue":{"url":"https://api.github.com/repos/constabulary/gb/issues/515","labels_url":"https://api.github.com/repos/constabulary/gb/issues/515/labels{/name}","comments_url":"https://api.github.com/repos/constabulary/gb/issues/515/comments","events_url":"https://api.github.com/repos/constabulary/gb/issues/515/events","html_url":"https://github.com/constabulary/gb/issues/515","id":124215027,"number":515,"title":"Error compile: ld: symbol(s) not found for architecture x86_64","user":{"login":"NightBlaze","id":1081461,"avatar_url":"https://avatars.githubusercontent.com/u/1081461?v=3","gravatar_id":"","url":"https://api.github.com/users/NightBlaze","html_url":"https://github.com/NightBlaze","followers_url":"https://api.github.com/users/NightBlaze/followers","following_url":"https://api.github.com/users/NightBlaze/following{/other_user}","gists_url":"https://api.github.com/users/NightBlaze/gists{/gist_id}","starred_url":"https://api.github.com/users/NightBlaze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NightBlaze/subscriptions","organizations_url":"https://api.github.com/users/NightBlaze/orgs","repos_url":"https://api.github.com/users/NightBlaze/repos","events_url":"https://api.github.com/users/NightBlaze/events{/privacy}","received_events_url":"https://api.github.com/users/NightBlaze/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-12-29T13:59:21Z","updated_at":"2015-12-29T14:52:48Z","closed_at":"2015-12-29T14:52:48Z","body":"Project structure\r\n```\r\n.\r\n└── src\r\n    └── main\r\n        └── main.go\r\n```\r\n\r\nFile main.go\r\n\r\n```\r\npackage main\r\n\r\nimport (\r\n\t\"log\"\r\n\t\"net/http\"\r\n)\r\n\r\nfunc main() {\r\n\terr := http.ListenAndServe(\":8080\", nil)\r\n\tif err != nil {\r\n\t\tlog.Fatal(\"ListenAndServe: \", err)\r\n\t} else {\r\n\t\tlog.Print(\"Server started!\")\r\n\t}\r\n}\r\n```\r\n\r\nBuild project with gb build (and gb build all) and get result\r\n\r\n```\r\ncontainer/list\r\nunicode/utf8\r\nerrors\r\nsort\r\ncrypto/subtle\r\nunicode\r\nsync/atomic\r\nUndefined symbols for architecture x86_64:\r\n  \"_crosscall_amd64\", referenced from:\r\n      _threadentry in gcc_darwin_amd64.o\r\nld: symbol(s) not found for architecture x86_64\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\n# runtime/cgo\r\nmath\r\nstrconv\r\ncrypto/rc4\r\nruntime\r\nsync\r\ninternal/singleflight\r\nio\r\nmath/rand\r\nhash\r\nencoding/base64\r\nbytes\r\ncrypto/cipher\r\ncrypto\r\ncrypto/hmac\r\nstrings\r\nhash/crc32\r\nbufio\r\npath\r\nencoding/pem\r\ncrypto/aes\r\ncrypto/md5\r\ncrypto/sha1\r\ncrypto/sha256\r\ncrypto/sha512\r\nsyscall\r\nreflect\r\nencoding/binary\r\ncrypto/des\r\ntime\r\nos\r\npath/filepath\r\nio/ioutil\r\nos/exec\r\nfmt\r\nencoding/hex\r\nlog\r\nnet/url\r\nnet/http/internal\r\nmime/quotedprintable\r\nmime\r\ncompress/flate\r\ncompress/gzip\r\nmath/big\r\ncrypto/dsa\r\ncrypto/rand\r\ncrypto/elliptic\r\nencoding/asn1\r\ncrypto/rsa\r\ncrypto/x509/pkix\r\ncrypto/ecdsa\r\nFATAL: command \"build\" failed: exit status 1\r\n```\r\n\r\nOS: Mac OS X 10.11.2\r\nGo: go version go1.5.2 darwin/amd64"}}