{"action":"created","issue":{"url":"https://api.github.com/repos/manastech/crystal/issues/257","labels_url":"https://api.github.com/repos/manastech/crystal/issues/257/labels{/name}","comments_url":"https://api.github.com/repos/manastech/crystal/issues/257/comments","events_url":"https://api.github.com/repos/manastech/crystal/issues/257/events","html_url":"https://github.com/manastech/crystal/issues/257","id":50031399,"number":257,"title":"Building with debug info fails","user":{"login":"jtomschroeder","id":1320768,"avatar_url":"https://avatars.githubusercontent.com/u/1320768?v=3","gravatar_id":"","url":"https://api.github.com/users/jtomschroeder","html_url":"https://github.com/jtomschroeder","followers_url":"https://api.github.com/users/jtomschroeder/followers","following_url":"https://api.github.com/users/jtomschroeder/following{/other_user}","gists_url":"https://api.github.com/users/jtomschroeder/gists{/gist_id}","starred_url":"https://api.github.com/users/jtomschroeder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtomschroeder/subscriptions","organizations_url":"https://api.github.com/users/jtomschroeder/orgs","repos_url":"https://api.github.com/users/jtomschroeder/repos","events_url":"https://api.github.com/users/jtomschroeder/events{/privacy}","received_events_url":"https://api.github.com/users/jtomschroeder/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/manastech/crystal/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-11-25T14:13:05Z","updated_at":"2015-02-08T03:35:33Z","closed_at":"2015-02-08T03:32:22Z","body":"Building with `debug` turned on causes the build to fail:\r\n\r\n    $> crystal build -d samples/hello_world.cr \r\n    Assertion failed: (GV.isGlobalVariable()), function createGlobalVariableDIE, file DwarfUnit.cpp, line 1561.\r\n    Assertion failed: (GV.isGlobalVariable()), function createGlobalVariableDIE, file DwarfUnit.cpp, line 1561.\r\n    Assertion failed: (GV.isGlobalVariable()), function createGlobalVariableDIE, file DwarfUnit.cpp, line 1561.\r\n    ...\r\n    ld: file too small (length=0) file 'hello_world.cr/main.o' for architecture x86_64\r\n    clang: error: linker command failed with exit code 1 (use -v to see invocation)\r\n"},"comment":{"url":"https://api.github.com/repos/manastech/crystal/issues/comments/73395341","html_url":"https://github.com/manastech/crystal/issues/257#issuecomment-73395341","issue_url":"https://api.github.com/repos/manastech/crystal/issues/257","id":73395341,"user":{"login":"waj","id":22697,"avatar_url":"https://avatars.githubusercontent.com/u/22697?v=3","gravatar_id":"","url":"https://api.github.com/users/waj","html_url":"https://github.com/waj","followers_url":"https://api.github.com/users/waj/followers","following_url":"https://api.github.com/users/waj/following{/other_user}","gists_url":"https://api.github.com/users/waj/gists{/gist_id}","starred_url":"https://api.github.com/users/waj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waj/subscriptions","organizations_url":"https://api.github.com/users/waj/orgs","repos_url":"https://api.github.com/users/waj/repos","events_url":"https://api.github.com/users/waj/events{/privacy}","received_events_url":"https://api.github.com/users/waj/received_events","type":"User","site_admin":false},"created_at":"2015-02-08T03:35:33Z","updated_at":"2015-02-08T03:35:33Z","body":"The debug support is still really minimal and unusable. I'll start working on this soon, but at least now the \"--debug\" flag seems to work fine. Small programs seems can be run step by step using lldb."}}