{"action":"created","issue":{"url":"https://api.github.com/repos/crystal-lang/crystal/issues/2332","repository_url":"https://api.github.com/repos/crystal-lang/crystal","labels_url":"https://api.github.com/repos/crystal-lang/crystal/issues/2332/labels{/name}","comments_url":"https://api.github.com/repos/crystal-lang/crystal/issues/2332/comments","events_url":"https://api.github.com/repos/crystal-lang/crystal/issues/2332/events","html_url":"https://github.com/crystal-lang/crystal/issues/2332","id":142159129,"number":2332,"title":"Getting Started / spec errors","user":{"login":"miketheman","id":529516,"avatar_url":"https://avatars.githubusercontent.com/u/529516?v=3","gravatar_id":"","url":"https://api.github.com/users/miketheman","html_url":"https://github.com/miketheman","followers_url":"https://api.github.com/users/miketheman/followers","following_url":"https://api.github.com/users/miketheman/following{/other_user}","gists_url":"https://api.github.com/users/miketheman/gists{/gist_id}","starred_url":"https://api.github.com/users/miketheman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miketheman/subscriptions","organizations_url":"https://api.github.com/users/miketheman/orgs","repos_url":"https://api.github.com/users/miketheman/repos","events_url":"https://api.github.com/users/miketheman/events{/privacy}","received_events_url":"https://api.github.com/users/miketheman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-20T12:32:21Z","updated_at":"2016-03-20T12:41:10Z","closed_at":null,"body":"Hi there!\r\n\r\nI've tried a few times over the past month or so to \"get started\" on OSX, with either running the compiler, testing the stdlib - both have never passed, making the experience somewhat frustrating.\r\n\r\nIn attempts to try and understand how to do this, I read through the Contributing.md docs, then followed a link to the wiki for the required libraries, then read through some of the open/closed issues with compiling, llvm versions, etc.\r\n\r\nWhen attempting to \"do the minimum\" - checkout code, run `make libcrystal` and test the build - I get:\r\n```shellsession\r\n$ bin/crystal spec/all_spec.cr\r\nInvalid memory access (signal 11) at address 0x10000001f\r\n[4387032720] __crystal_sigfault_handler +64\r\n[140735500416298] _sigtramp +26\r\n[4390894111] *Process#initialize<Process, String, Array(String), Nil, Bool, Bool, Bool, Bool, Bool, Nil>:Nil +1039\r\n[4390892173] *Crystal::Compiler#system<Crystal::Compiler, String, Array(String)>:Nil +221\r\n[4390874442] *Crystal::Compiler#codegen<Crystal::Compiler, Array(Crystal::Compiler::CompilationUnit), String, String>:Nil +5594\r\n[4389349342] *Crystal::Compiler#compile<Crystal::Compiler, Array(Crystal::Compiler::Source), String>:Crystal::Compiler::Result +19054\r\n[4393915537] *Crystal::Command#run_command<Crystal::Command>:Nil +145\r\n[4393732497] *Crystal::Command#run<Crystal::Command>:(Nil | Bool | Array(Crystal::ImplementationTrace) | Array(String) | IO::FileDescriptor+ | Crystal::Compiler::Result | Array(Crystal::Init::View+:Class)) +9233\r\n[4387026097] __crystal_main +23905\r\n[4393722123] main +43\r\nError: execution of command failed with code: 11: `cc -o \"/Users/miketheman/Dropbox/code/github/miketheman/crystal/.crystal/crystal-run-all_spec.tmp\" \"${@}\"  -rdynamic  -lxml2 -lreadline -lgmp -lyaml -lz -lssl -lcrypto /Users/miketheman/Dropbox/code/github/miketheman/crystal/src/llvm/ext/llvm_ext.o `(llvm-config-3.6 --libs --system-libs --ldflags 2> /dev/null) || (llvm-config-3.5 --libs --system-libs --ldflags 2> /dev/null) || (llvm-config --libs --system-libs --ldflags 2>/dev/null)` -lstdc++ /Users/miketheman/Dropbox/code/github/miketheman/crystal/src/ext/libcrystal.a -levent -lpcre -liconv -lgc -lpthread -ldl`\r\n```\r\nThis uses llvm 3.6.2 from Homebrew, as suggested in the wiki. Switching to llvm 3.5.1 produces the same error.\r\n\r\nLooking at [travis builds, I can see that llvm 3.5.0 is installed and used](https://travis-ci.org/crystal-lang/crystal/jobs/117203640#L2535), and following similar steps, I still get failures:\r\n```shellsession\r\n$ ./bin/crystal build  -o .build/all_spec spec/all_spec.cr\r\nUsing compiled compiler at .build/crystal\r\nError: execution of command failed with code: 127: `cc -o \".build/all_spec\" \"${@}\"  -rdynamic  -lxml2 -lreadline -lgmp -lyaml -lz -lssl -lcrypto /Users/miketheman/Dropbox/code/github/miketheman/crystal/src/llvm/ext/llvm_ext.o `(llvm-config-3.6 --libs --system-libs --ldflags 2> /dev/null) || (llvm-config-3.5 --libs --system-libs --ldflags 2> /dev/null) || (llvm-config --libs --system-libs --ldflags 2>/dev/null)` -lstdc++ /Users/miketheman/Dropbox/code/github/miketheman/crystal/src/ext/libcrystal.a -levent -lpcre -liconv -lgc -lpthread -ldl`\r\n```\r\n\r\n- Do I need to match llvm 3.5.0 explicitly?\r\n- Is there some other problem in my setup?\r\n- What else can I look for to help debug and get this going?"},"comment":{"url":"https://api.github.com/repos/crystal-lang/crystal/issues/comments/198922211","html_url":"https://github.com/crystal-lang/crystal/issues/2332#issuecomment-198922211","issue_url":"https://api.github.com/repos/crystal-lang/crystal/issues/2332","id":198922211,"user":{"login":"asterite","id":209371,"avatar_url":"https://avatars.githubusercontent.com/u/209371?v=3","gravatar_id":"","url":"https://api.github.com/users/asterite","html_url":"https://github.com/asterite","followers_url":"https://api.github.com/users/asterite/followers","following_url":"https://api.github.com/users/asterite/following{/other_user}","gists_url":"https://api.github.com/users/asterite/gists{/gist_id}","starred_url":"https://api.github.com/users/asterite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asterite/subscriptions","organizations_url":"https://api.github.com/users/asterite/orgs","repos_url":"https://api.github.com/users/asterite/repos","events_url":"https://api.github.com/users/asterite/events{/privacy}","received_events_url":"https://api.github.com/users/asterite/received_events","type":"User","site_admin":false},"created_at":"2016-03-20T12:41:10Z","updated_at":"2016-03-20T12:41:10Z","body":"I was able to reproduce it. The problem seems to happen when you are inside a long path, like in your case:\r\n\r\n```\r\n/Users/miketheman/Dropbox/code/github/miketheman/crystal\r\n```\r\n\r\n(I also wouldn't advise coding in the Dropbox folder, because the compiler generates lots of temporary files and they will (maybe?) be synchronized by Dropbox)\r\n\r\nCan you try compiling in a less deep directory?\r\n"}}