{"action":"created","issue":{"url":"https://api.github.com/repos/riscv/riscv-binutils-gdb/issues/22","repository_url":"https://api.github.com/repos/riscv/riscv-binutils-gdb","labels_url":"https://api.github.com/repos/riscv/riscv-binutils-gdb/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/riscv/riscv-binutils-gdb/issues/22/comments","events_url":"https://api.github.com/repos/riscv/riscv-binutils-gdb/issues/22/events","html_url":"https://github.com/riscv/riscv-binutils-gdb/issues/22","id":176518285,"number":22,"title":"break dependency on Linux","user":{"login":"sbeamer","id":112733,"avatar_url":"https://avatars.githubusercontent.com/u/112733?v=3","gravatar_id":"","url":"https://api.github.com/users/sbeamer","html_url":"https://github.com/sbeamer","followers_url":"https://api.github.com/users/sbeamer/followers","following_url":"https://api.github.com/users/sbeamer/following{/other_user}","gists_url":"https://api.github.com/users/sbeamer/gists{/gist_id}","starred_url":"https://api.github.com/users/sbeamer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbeamer/subscriptions","organizations_url":"https://api.github.com/users/sbeamer/orgs","repos_url":"https://api.github.com/users/sbeamer/repos","events_url":"https://api.github.com/users/sbeamer/events{/privacy}","received_events_url":"https://api.github.com/users/sbeamer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-13T00:25:19Z","updated_at":"2016-09-13T00:48:34Z","closed_at":null,"body":"The riscv simulator depends on Linux's clock_gettime, which prevents this from being compiled on any other platform such as OS X, even if gcc is used. Since this repo is a dependency of riscv-gnu-toolchain, this restriction makes any other OS incapable of using riscv-gcc.\r\n\r\nclock_gettime is used to implement CSR_TIME (in sim/riscv/sim-main.c), but it seems any timing mechanism could also be used. Some possibilities include:\r\n\r\n- gettimeofday() - Yes, its time can be changed, but does this matter for simulation?\r\n- C++11 chrono library\r\n- [Hack](http://stackoverflow.com/a/17112198/2548418) just for OS X\r\n\r\nAre there are other constraints? Could one of the above suggestions work?"},"comment":{"url":"https://api.github.com/repos/riscv/riscv-binutils-gdb/issues/comments/246540431","html_url":"https://github.com/riscv/riscv-binutils-gdb/issues/22#issuecomment-246540431","issue_url":"https://api.github.com/repos/riscv/riscv-binutils-gdb/issues/22","id":246540431,"user":{"login":"aswaterman","id":1031106,"avatar_url":"https://avatars.githubusercontent.com/u/1031106?v=3","gravatar_id":"","url":"https://api.github.com/users/aswaterman","html_url":"https://github.com/aswaterman","followers_url":"https://api.github.com/users/aswaterman/followers","following_url":"https://api.github.com/users/aswaterman/following{/other_user}","gists_url":"https://api.github.com/users/aswaterman/gists{/gist_id}","starred_url":"https://api.github.com/users/aswaterman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aswaterman/subscriptions","organizations_url":"https://api.github.com/users/aswaterman/orgs","repos_url":"https://api.github.com/users/aswaterman/repos","events_url":"https://api.github.com/users/aswaterman/events{/privacy}","received_events_url":"https://api.github.com/users/aswaterman/received_events","type":"User","site_admin":false},"created_at":"2016-09-13T00:48:34Z","updated_at":"2016-09-13T00:48:34Z","body":"something like that would probably be ok"}}
{"actor":{"display_login":"aswaterman"}}