{"action":"created","issue":{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1882","repository_url":"https://api.github.com/repos/pyinstaller/pyinstaller","labels_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1882/labels{/name}","comments_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1882/comments","events_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1882/events","html_url":"https://github.com/pyinstaller/pyinstaller/issues/1882","id":140422425,"number":1882,"title":"OSX, bootloader compilation error with clang","user":{"login":"nekopep","id":2825997,"avatar_url":"https://avatars.githubusercontent.com/u/2825997?v=3","gravatar_id":"","url":"https://api.github.com/users/nekopep","html_url":"https://github.com/nekopep","followers_url":"https://api.github.com/users/nekopep/followers","following_url":"https://api.github.com/users/nekopep/following{/other_user}","gists_url":"https://api.github.com/users/nekopep/gists{/gist_id}","starred_url":"https://api.github.com/users/nekopep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nekopep/subscriptions","organizations_url":"https://api.github.com/users/nekopep/orgs","repos_url":"https://api.github.com/users/nekopep/repos","events_url":"https://api.github.com/users/nekopep/events{/privacy}","received_events_url":"https://api.github.com/users/nekopep/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/labels/@medium","name":"@medium","color":"FFD07D"},{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/labels/bootloader","name":"bootloader","color":"fef2c0"},{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/labels/develop","name":"develop","color":"ededed"},{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/labels/OS%20X","name":"OS X","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-12T22:27:17Z","updated_at":"2016-03-13T23:06:22Z","closed_at":null,"body":"Hello,\r\nAfter trying to resolve bug #1879 I needed to recompile the bootloader under osx. Sadly if failed:\r\n```\r\n[10/13] Compiling src/pyi_utils.c\r\n../../src/pyi_launch.c:368:54: error: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Werror,-Wpointer-sign]\r\ncode = PI_PyMarshal_ReadObjectFromString(data, ntohl(ptoc->ulen));\r\n(relates to data)\r\n1 error generated.\r\nWaf: Leaving directory `/pyinstaller-develop/bootloader/build/debug'\r\nBuild failed\r\n-> task in 'run_d' failed (exit status 1):\r\n{task 4403223184: c pyi_launch.c -> pyi_launch.c.1.o}\r\n['/usr/bin/clang', '-arch', 'x86_64', '-O2', '-Wdeclaration-after-statement', '-Wimplicit-function-declaration', '-Werror', '-mmacosx-version-min=10.7', '-I/pyinstaller-develop/bootloader/build/debug/src', '-I/pyinstaller-develop/bootloader/src', '-D_POSIX_C_SOURCE=200112L', '-D_XOPEN_SOURCE=600', '-D_REENTRANT', '-D_BSD_SOURCE', '-D_DARWIN_C_SOURCE', '-DHAVE_UNSETENV=1', '-DLAUNCH_DEBUG', '-DNDEBUG', '../../src/pyi_launch.c', '-c', '-o', '/pyinstaller-develop/bootloader/build/debug/src/pyi_launch.c.1.o']\r\n```\r\nI needed to change pyi_launch.c:368 by:\r\n`code = PI_PyMarshal_ReadObjectFromString((const char*)data, ntohl(ptoc->ulen));`"},"comment":{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/comments/196078615","html_url":"https://github.com/pyinstaller/pyinstaller/issues/1882#issuecomment-196078615","issue_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1882","id":196078615,"user":{"login":"codewarrior0","id":307683,"avatar_url":"https://avatars.githubusercontent.com/u/307683?v=3","gravatar_id":"","url":"https://api.github.com/users/codewarrior0","html_url":"https://github.com/codewarrior0","followers_url":"https://api.github.com/users/codewarrior0/followers","following_url":"https://api.github.com/users/codewarrior0/following{/other_user}","gists_url":"https://api.github.com/users/codewarrior0/gists{/gist_id}","starred_url":"https://api.github.com/users/codewarrior0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codewarrior0/subscriptions","organizations_url":"https://api.github.com/users/codewarrior0/orgs","repos_url":"https://api.github.com/users/codewarrior0/repos","events_url":"https://api.github.com/users/codewarrior0/events{/privacy}","received_events_url":"https://api.github.com/users/codewarrior0/received_events","type":"User","site_admin":false},"created_at":"2016-03-13T23:06:22Z","updated_at":"2016-03-13T23:06:22Z","body":"@htgoebel The compiler error is about dropping the \"unsigned\" qualifier, not the \"const\". This is because `pyi_arch_extract` returns an unsigned char pointer.\r\n\r\nI don't see any problem with the fix @nekopep suggests. The alternative is to change `pyi_arch_extract` to return a non-unsigned char pointer, which is a somewhat larger change."}}