{"action":"created","issue":{"url":"https://api.github.com/repos/hackndev/zinc/issues/336","labels_url":"https://api.github.com/repos/hackndev/zinc/issues/336/labels{/name}","comments_url":"https://api.github.com/repos/hackndev/zinc/issues/336/comments","events_url":"https://api.github.com/repos/hackndev/zinc/issues/336/events","html_url":"https://github.com/hackndev/zinc/issues/336","id":101190189,"number":336,"title":"Failing to build example.","user":{"login":"rvlander","id":5236428,"avatar_url":"https://avatars.githubusercontent.com/u/5236428?v=3","gravatar_id":"","url":"https://api.github.com/users/rvlander","html_url":"https://github.com/rvlander","followers_url":"https://api.github.com/users/rvlander/followers","following_url":"https://api.github.com/users/rvlander/following{/other_user}","gists_url":"https://api.github.com/users/rvlander/gists{/gist_id}","starred_url":"https://api.github.com/users/rvlander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rvlander/subscriptions","organizations_url":"https://api.github.com/users/rvlander/orgs","repos_url":"https://api.github.com/users/rvlander/repos","events_url":"https://api.github.com/users/rvlander/events{/privacy}","received_events_url":"https://api.github.com/users/rvlander/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hackndev/zinc/labels/infrastructure","name":"infrastructure","color":"fad8c7"},{"url":"https://api.github.com/repos/hackndev/zinc/labels/nightly%20fallout","name":"nightly fallout","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":25,"created_at":"2015-08-15T17:04:27Z","updated_at":"2015-08-31T08:06:06Z","closed_at":null,"body":"I have tried different way to build examples but without success.\r\n\r\nThe README page seems to be outdated.\r\nI tried to directly cargo build in an example dir, but there is a compilation error when compiling core.\r\n\r\nI tried to look to travis log to find a way: I have have another compilation error."},"comment":{"url":"https://api.github.com/repos/hackndev/zinc/issues/comments/136295991","html_url":"https://github.com/hackndev/zinc/issues/336#issuecomment-136295991","issue_url":"https://api.github.com/repos/hackndev/zinc/issues/336","id":136295991,"user":{"login":"posborne","id":41714,"avatar_url":"https://avatars.githubusercontent.com/u/41714?v=3","gravatar_id":"","url":"https://api.github.com/users/posborne","html_url":"https://github.com/posborne","followers_url":"https://api.github.com/users/posborne/followers","following_url":"https://api.github.com/users/posborne/following{/other_user}","gists_url":"https://api.github.com/users/posborne/gists{/gist_id}","starred_url":"https://api.github.com/users/posborne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/posborne/subscriptions","organizations_url":"https://api.github.com/users/posborne/orgs","repos_url":"https://api.github.com/users/posborne/repos","events_url":"https://api.github.com/users/posborne/events{/privacy}","received_events_url":"https://api.github.com/users/posborne/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T08:06:06Z","updated_at":"2015-08-31T08:06:06Z","body":"@rvlander, I think I provided the info the @farcaller was asking for.  To do that, I just copied the failing link command and added `\"-Wl,-Map=failedlink.map,--cref\".  You can try the workaround in my above diff to see if that also works for you (I expect it will).\r\n\r\nThe bigger question is probably why `.text.main` references `__rustc_debug_gdb_scripts_section__`.   Looking at the compiler, it appears that a reference to this section is very intentionally inserted so that the `debug_gdb_scripts` section is not garbage collected.  What harm does including the `.debug_gdb_scripts` in the elf file have?\r\n\r\nhttps://github.com/hackndev/zinc/commit/44a291fec8da33d1edd1bd85a1a0d94be0d85736 claims that it made the binaries too big.  It will certainly increase the size of the elf file, but does this matter?  Won't this and other sections be removed before any code is loaded on a target?"}}