{"action":"created","issue":{"url":"https://api.github.com/repos/cea-sec/miasm/issues/732","repository_url":"https://api.github.com/repos/cea-sec/miasm","labels_url":"https://api.github.com/repos/cea-sec/miasm/issues/732/labels{/name}","comments_url":"https://api.github.com/repos/cea-sec/miasm/issues/732/comments","events_url":"https://api.github.com/repos/cea-sec/miasm/issues/732/events","html_url":"https://github.com/cea-sec/miasm/issues/732","id":319952677,"number":732,"title":"Can't build miasm on Windows machine","user":{"login":"RomanKeslerCB","id":23474424,"avatar_url":"https://avatars3.githubusercontent.com/u/23474424?v=4","gravatar_id":"","url":"https://api.github.com/users/RomanKeslerCB","html_url":"https://github.com/RomanKeslerCB","followers_url":"https://api.github.com/users/RomanKeslerCB/followers","following_url":"https://api.github.com/users/RomanKeslerCB/following{/other_user}","gists_url":"https://api.github.com/users/RomanKeslerCB/gists{/gist_id}","starred_url":"https://api.github.com/users/RomanKeslerCB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomanKeslerCB/subscriptions","organizations_url":"https://api.github.com/users/RomanKeslerCB/orgs","repos_url":"https://api.github.com/users/RomanKeslerCB/repos","events_url":"https://api.github.com/users/RomanKeslerCB/events{/privacy}","received_events_url":"https://api.github.com/users/RomanKeslerCB/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-03T14:46:33Z","updated_at":"2018-05-04T12:28:03Z","closed_at":null,"author_association":"NONE","body":"I've downloaded latest miasm, and I'm trying to build it on Windows machine. \r\nI'm getting the following error running `python setup.py install` :\r\n```\r\nbuilding\r\nbuild with 'all'\r\nrunning install\r\nrunning build\r\nrunning build_py\r\nrunning build_ext\r\nbuilding 'miasm2.jitter.VmMngr' extension\r\nSystemExit('error: Unable to find vcvarsall.bat',)\r\nbuild with 'notcc'\r\nrunning install\r\nrunning build\r\nrunning build_py\r\nrunning build_ext\r\nbuilding 'miasm2.jitter.VmMngr' extension\r\nSystemExit('error: Unable to find vcvarsall.bat',)\r\nTraceback (most recent call last):\r\n  File \"setup.py\", line 182, in <module>\r\n    try_build()\r\n  File \"setup.py\", line 171, in try_build\r\n    buil_all()\r\n  File \"setup.py\", line 130, in buil_all\r\n    raise ValueError('Unable to build Miasm!')\r\nValueError: Unable to build Miasm!\r\n```\r\nFollowing a [solution](https://stackoverflow.com/questions/2817869/error-unable-to-find-vcvarsall-bat?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa) by changing VS90COMNTOOLS to: `SET VS90COMNTOOLS=%VS140COMNTOOLS%` I'm getting:\r\n\r\n```\r\nbuilding\r\nbuild with 'all'\r\nrunning install\r\nrunning build\r\nrunning build_py\r\nrunning build_ext\r\nbuilding 'miasm2.jitter.VmMngr' extension\r\nC:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\\python27\\include -Ic:\\python27\\PC /Tcmiasm2/jitter/vm_mngr.c /Fobuild\\temp.win32-2.7\\Release\\miasm2/jitter/vm_mngr.obj\r\nvm_mngr.c\r\nmiasm2/jitter/vm_mngr.c(105): warning C4244: 'function': conversion from 'uint64_t' to 'std::size_t', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(120): error C2065: '__BYTE_ORDER': undeclared identifier\r\nmiasm2/jitter/vm_mngr.c(128): error C2065: '__BYTE_ORDER': undeclared identifier\r\nmiasm2/jitter/vm_mngr.c(136): error C2065: '__BYTE_ORDER': undeclared identifier\r\nmiasm2/jitter/vm_mngr.c(237): warning C4244: 'function': conversion from 'uint64_t' to 'uint16_t', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(241): warning C4244: 'function': conversion from 'uint64_t' to 'uint32_t', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(271): warning C4244: 'function': conversion from 'uint64_t' to 'uint16_t', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(274): warning C4244: 'function': conversion from 'uint64_t' to 'uint32_t', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(321): warning C4244: 'function': conversion from 'uint64_t' to 'uint16_t', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(325): warning C4244: 'function': conversion from 'uint64_t' to 'uint32_t', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(345): warning C4244: 'function': conversion from 'uint64_t' to 'uint16_t', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(348): warning C4244: 'function': conversion from 'uint64_t' to 'uint32_t', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(527): warning C4244: 'function': conversion from 'uint64_t' to 'Py_ssize_t', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(574): warning C4244: '=': conversion from 'uint64_t' to 'unsigned char', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(581): warning C4244: '=': conversion from 'uint64_t' to 'unsigned short', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(588): warning C4244: '=': conversion from 'uint64_t' to 'unsigned int', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(606): warning C4244: 'function': conversion from 'uint64_t' to 'std::size_t', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(623): error C2036: 'void *': unknown size\r\nmiasm2/jitter/vm_mngr.c(623): warning C4244: 'function': conversion from 'uint64_t' to 'std::size_t', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(646): error C2036: 'void *': unknown size\r\nmiasm2/jitter/vm_mngr.c(646): warning C4244: 'function': conversion from 'uint64_t' to 'std::size_t', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(730): warning C4244: 'return': conversion from 'int64_t' to 'int', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(737): warning C4244: 'return': conversion from 'int64_t' to 'int', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(841): warning C4244: 'return': conversion from 'uint64_t' to 'unsigned int', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(852): warning C4244: 'return': conversion from 'uint64_t' to 'unsigned int', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(1155): error C2169: 'fabs': intrinsic function, cannot be defined\r\nmiasm2/jitter/vm_mngr.c(1196): warning C4244: 'return': conversion from '__int64' to 'unsigned int', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(1331): warning C4244: '=': conversion from 'double' to 'float', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(1650): warning C4018: '<': signed/unsigned mismatch\r\nSystemExit(\"error: command 'C:\\\\\\\\Program Files (x86)\\\\\\\\Microsoft Visual Studio 14.0\\\\\\\\VC\\\\\\\\BIN\\\\\\\\cl.exe' failed with exit status 2\",)\r\nbuild with 'notcc'\r\nrunning install\r\nrunning build\r\nrunning build_py\r\nrunning build_ext\r\nbuilding 'miasm2.jitter.VmMngr' extension\r\nC:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\\python27\\include -Ic:\\python27\\PC /Tcmiasm2/jitter/vm_mngr.c /Fobuild\\temp.win32-2.7\\Release\\miasm2/jitter/vm_mngr.obj\r\nvm_mngr.c\r\nmiasm2/jitter/vm_mngr.c(105): warning C4244: 'function': conversion from 'uint64_t' to 'std::size_t', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(120): error C2065: '__BYTE_ORDER': undeclared identifier\r\nmiasm2/jitter/vm_mngr.c(128): error C2065: '__BYTE_ORDER': undeclared identifier\r\nmiasm2/jitter/vm_mngr.c(136): error C2065: '__BYTE_ORDER': undeclared identifier\r\nmiasm2/jitter/vm_mngr.c(237): warning C4244: 'function': conversion from 'uint64_t' to 'uint16_t', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(241): warning C4244: 'function': conversion from 'uint64_t' to 'uint32_t', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(271): warning C4244: 'function': conversion from 'uint64_t' to 'uint16_t', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(274): warning C4244: 'function': conversion from 'uint64_t' to 'uint32_t', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(321): warning C4244: 'function': conversion from 'uint64_t' to 'uint16_t', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(325): warning C4244: 'function': conversion from 'uint64_t' to 'uint32_t', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(345): warning C4244: 'function': conversion from 'uint64_t' to 'uint16_t', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(348): warning C4244: 'function': conversion from 'uint64_t' to 'uint32_t', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(527): warning C4244: 'function': conversion from 'uint64_t' to 'Py_ssize_t', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(574): warning C4244: '=': conversion from 'uint64_t' to 'unsigned char', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(581): warning C4244: '=': conversion from 'uint64_t' to 'unsigned short', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(588): warning C4244: '=': conversion from 'uint64_t' to 'unsigned int', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(606): warning C4244: 'function': conversion from 'uint64_t' to 'std::size_t', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(623): error C2036: 'void *': unknown size\r\nmiasm2/jitter/vm_mngr.c(623): warning C4244: 'function': conversion from 'uint64_t' to 'std::size_t', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(646): error C2036: 'void *': unknown size\r\nmiasm2/jitter/vm_mngr.c(646): warning C4244: 'function': conversion from 'uint64_t' to 'std::size_t', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(730): warning C4244: 'return': conversion from 'int64_t' to 'int', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(737): warning C4244: 'return': conversion from 'int64_t' to 'int', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(841): warning C4244: 'return': conversion from 'uint64_t' to 'unsigned int', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(852): warning C4244: 'return': conversion from 'uint64_t' to 'unsigned int', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(1155): error C2169: 'fabs': intrinsic function, cannot be defined\r\nmiasm2/jitter/vm_mngr.c(1196): warning C4244: 'return': conversion from '__int64' to 'unsigned int', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(1331): warning C4244: '=': conversion from 'double' to 'float', possible loss of data\r\nmiasm2/jitter/vm_mngr.c(1650): warning C4018: '<': signed/unsigned mismatch\r\nSystemExit(\"error: command 'C:\\\\\\\\Program Files (x86)\\\\\\\\Microsoft Visual Studio 14.0\\\\\\\\VC\\\\\\\\BIN\\\\\\\\cl.exe' failed with exit status 2\",)\r\nTraceback (most recent call last):\r\n  File \"setup.py\", line 182, in <module>\r\n    try_build()\r\n  File \"setup.py\", line 171, in try_build\r\n    buil_all()\r\n  File \"setup.py\", line 130, in buil_all\r\n    raise ValueError('Unable to build Miasm!')\r\nValueError: Unable to build Miasm!\r\n```\r\nAny idea what could be done to install it on Windows correctly?"},"comment":{"url":"https://api.github.com/repos/cea-sec/miasm/issues/comments/386586027","html_url":"https://github.com/cea-sec/miasm/issues/732#issuecomment-386586027","issue_url":"https://api.github.com/repos/cea-sec/miasm/issues/732","id":386586027,"user":{"login":"serpilliere","id":9433661,"avatar_url":"https://avatars1.githubusercontent.com/u/9433661?v=4","gravatar_id":"","url":"https://api.github.com/users/serpilliere","html_url":"https://github.com/serpilliere","followers_url":"https://api.github.com/users/serpilliere/followers","following_url":"https://api.github.com/users/serpilliere/following{/other_user}","gists_url":"https://api.github.com/users/serpilliere/gists{/gist_id}","starred_url":"https://api.github.com/users/serpilliere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serpilliere/subscriptions","organizations_url":"https://api.github.com/users/serpilliere/orgs","repos_url":"https://api.github.com/users/serpilliere/repos","events_url":"https://api.github.com/users/serpilliere/events{/privacy}","received_events_url":"https://api.github.com/users/serpilliere/received_events","type":"User","site_admin":false},"created_at":"2018-05-04T12:28:03Z","updated_at":"2018-05-04T12:28:03Z","author_association":"CONTRIBUTOR","body":"Ok: The PR #733 should fix this bug.\r\nCan you try it?"}}
{"actor":{"display_login":"serpilliere"}}