{"action":"created","issue":{"url":"https://api.github.com/repos/gsingh93/llvm/issues/1","labels_url":"https://api.github.com/repos/gsingh93/llvm/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/gsingh93/llvm/issues/1/comments","events_url":"https://api.github.com/repos/gsingh93/llvm/issues/1/events","html_url":"https://github.com/gsingh93/llvm/issues/1","id":98045598,"number":1,"title":"\"MAJ.MIN.PATCHsvn\" used for LLVM local builds confuses get_llvm_config","user":{"login":"pnkfelix","id":173127,"avatar_url":"https://avatars.githubusercontent.com/u/173127?v=3","gravatar_id":"","url":"https://api.github.com/users/pnkfelix","html_url":"https://github.com/pnkfelix","followers_url":"https://api.github.com/users/pnkfelix/followers","following_url":"https://api.github.com/users/pnkfelix/following{/other_user}","gists_url":"https://api.github.com/users/pnkfelix/gists{/gist_id}","starred_url":"https://api.github.com/users/pnkfelix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnkfelix/subscriptions","organizations_url":"https://api.github.com/users/pnkfelix/orgs","repos_url":"https://api.github.com/users/pnkfelix/repos","events_url":"https://api.github.com/users/pnkfelix/events{/privacy}","received_events_url":"https://api.github.com/users/pnkfelix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-29T22:49:01Z","updated_at":"2015-07-30T01:51:06Z","closed_at":null,"body":"Note: I know this is a bug in `llvm_sys`, not `llvm`.  But, `llvm_sys` is hosted on bitbucket (which has no integrated issue tracker) and no link I could see to an associated issue tracker.\r\n\r\nSo I'm filing this issue here.\r\n\r\n----\r\n\r\nTrying to use `llvm` crate with a locally built LLVM resulting in this panic:\r\n\r\n```\r\nthread '<main>' panicked at 'called `Result::unwrap()` on an `Err` value: IncorrectParse(Version { major: 3, minor: 8, patch: 0, pre: [], build: [] }, \"3.8.0svn\")', ../src/libcore/result.rs:731\r\n```\r\n\r\nThe issue is that the LLVM build generates a version string of the form \"MAJ.MIN.PATCHsvn\" (in this case, \"3.8.0svn\") that is not compatible with what semver is expecting.\r\n\r\nI am currently working around this locally by changing my LLVM build to insert a dash before the \"svn\".  But it may be better to change `get_llvm_config` to, um, \"clean up\" the input string before handing it over to the semver parser."},"comment":{"url":"https://api.github.com/repos/gsingh93/llvm/issues/comments/126156491","html_url":"https://github.com/gsingh93/llvm/issues/1#issuecomment-126156491","issue_url":"https://api.github.com/repos/gsingh93/llvm/issues/1","id":126156491,"user":{"login":"tari","id":506181,"avatar_url":"https://avatars.githubusercontent.com/u/506181?v=3","gravatar_id":"","url":"https://api.github.com/users/tari","html_url":"https://github.com/tari","followers_url":"https://api.github.com/users/tari/followers","following_url":"https://api.github.com/users/tari/following{/other_user}","gists_url":"https://api.github.com/users/tari/gists{/gist_id}","starred_url":"https://api.github.com/users/tari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tari/subscriptions","organizations_url":"https://api.github.com/users/tari/orgs","repos_url":"https://api.github.com/users/tari/repos","events_url":"https://api.github.com/users/tari/events{/privacy}","received_events_url":"https://api.github.com/users/tari/received_events","type":"User","site_admin":false},"created_at":"2015-07-30T01:51:06Z","updated_at":"2015-07-30T01:51:06Z","body":"Thanks for the ping; I apparently never enabled the issue tracker on bitbucket before, but I have now.\r\n\r\nIssue at https://bitbucket.org/tari/llvm-sys.rs/issues/2"}}