{"action":"created","issue":{"url":"https://api.github.com/repos/python-greenlet/greenlet/issues/20","repository_url":"https://api.github.com/repos/python-greenlet/greenlet","labels_url":"https://api.github.com/repos/python-greenlet/greenlet/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/python-greenlet/greenlet/issues/20/comments","events_url":"https://api.github.com/repos/python-greenlet/greenlet/issues/20/events","html_url":"https://github.com/python-greenlet/greenlet/issues/20","id":6764661,"number":20,"title":"Mingw32/64 support","user":{"login":"gabomdq","id":395944,"avatar_url":"https://avatars2.githubusercontent.com/u/395944?v=4","gravatar_id":"","url":"https://api.github.com/users/gabomdq","html_url":"https://github.com/gabomdq","followers_url":"https://api.github.com/users/gabomdq/followers","following_url":"https://api.github.com/users/gabomdq/following{/other_user}","gists_url":"https://api.github.com/users/gabomdq/gists{/gist_id}","starred_url":"https://api.github.com/users/gabomdq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabomdq/subscriptions","organizations_url":"https://api.github.com/users/gabomdq/orgs","repos_url":"https://api.github.com/users/gabomdq/repos","events_url":"https://api.github.com/users/gabomdq/events{/privacy}","received_events_url":"https://api.github.com/users/gabomdq/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2012-09-10T15:33:16Z","updated_at":"2018-04-14T21:37:31Z","closed_at":null,"author_association":"NONE","body":"I'm using Greenlet in my project which cross compiles from Linux to Windows using Mingw.  For Mingw in 32 bit mode it works almost out of the box, but I had to comment out the Visual Studio entries in slp_platformselect.h, so ideally a check for some MINGW flags in the first two entries would be needed, or perhaps a  ! defined(_MSC_VER)\n\nAnyway, in 32 bit mode, after commenting out the MSVC entries everything works, switch_x86_unix.h is used, and task switching is flawless AFAICT.\n\nHowever, in 64 bit mode, when switch_amd64_unix.h is selected, a compilation error is produced:\n\n/tmp/ccFWucFb.s: Assembler messages:\n/tmp/ccFWucFb.s:1937: Error: operand type mismatch for `add'\n/tmp/ccFWucFb.s:1938: Error: operand type mismatch for`add'\n\nI've also noticed that switch_x86_unix.h has special ifdef'ed WIN32 sections that are not present in switch_amd64_unix.h, I'm not sure if these are required as well.\n"},"comment":{"url":"https://api.github.com/repos/python-greenlet/greenlet/issues/comments/381362362","html_url":"https://github.com/python-greenlet/greenlet/issues/20#issuecomment-381362362","issue_url":"https://api.github.com/repos/python-greenlet/greenlet/issues/20","id":381362362,"user":{"login":"snaury","id":53117,"avatar_url":"https://avatars3.githubusercontent.com/u/53117?v=4","gravatar_id":"","url":"https://api.github.com/users/snaury","html_url":"https://github.com/snaury","followers_url":"https://api.github.com/users/snaury/followers","following_url":"https://api.github.com/users/snaury/following{/other_user}","gists_url":"https://api.github.com/users/snaury/gists{/gist_id}","starred_url":"https://api.github.com/users/snaury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snaury/subscriptions","organizations_url":"https://api.github.com/users/snaury/orgs","repos_url":"https://api.github.com/users/snaury/repos","events_url":"https://api.github.com/users/snaury/events{/privacy}","received_events_url":"https://api.github.com/users/snaury/received_events","type":"User","site_admin":false},"created_at":"2018-04-14T21:37:31Z","updated_at":"2018-04-14T21:37:31Z","author_association":"OWNER","body":"Well, greenlet does not include `sys/select.h`, I would suggest reporting it to the project that is actually responsible for that include and which could maybe help you (I would assume that is either cpython directly or whoever is responsible for msys2 port of cpython)."}}
{"actor":{"display_login":"snaury"}}