{"action":"created","issue":{"url":"https://api.github.com/repos/Noctem/pycrypt/issues/2","repository_url":"https://api.github.com/repos/Noctem/pycrypt","labels_url":"https://api.github.com/repos/Noctem/pycrypt/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Noctem/pycrypt/issues/2/comments","events_url":"https://api.github.com/repos/Noctem/pycrypt/issues/2/events","html_url":"https://github.com/Noctem/pycrypt/issues/2","id":226962274,"number":2,"title":"Error installing pycrypt on Raspberry Pi 3","user":{"login":"johnforeland","id":6638390,"avatar_url":"https://avatars1.githubusercontent.com/u/6638390?v=3","gravatar_id":"","url":"https://api.github.com/users/johnforeland","html_url":"https://github.com/johnforeland","followers_url":"https://api.github.com/users/johnforeland/followers","following_url":"https://api.github.com/users/johnforeland/following{/other_user}","gists_url":"https://api.github.com/users/johnforeland/gists{/gist_id}","starred_url":"https://api.github.com/users/johnforeland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnforeland/subscriptions","organizations_url":"https://api.github.com/users/johnforeland/orgs","repos_url":"https://api.github.com/users/johnforeland/repos","events_url":"https://api.github.com/users/johnforeland/events{/privacy}","received_events_url":"https://api.github.com/users/johnforeland/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-05-08T07:34:00Z","updated_at":"2017-05-10T00:42:50Z","closed_at":null,"body":"So after the latest commit, the -march=native argument when compiling with gcc is causing an error on Raspberry Pi 3 due to cpu auto-detection not working there (see https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=139091&p=922980)\r\n\r\nIt says I could update gcc to gcc6, but then the gcc6 command must be used, as gcc will still be the old one. It also says this fix is backborted to gcc4, but raspbian has not updated it yet.\r\n\r\nWould it be possible to check if using a Raspberry PI 2/3 after setup.py:11, then instead of adding \"**-march=native**\", add \"**-march=armv8-a**\" for RPi3 only or \"**-march=armv6**\" (or just remove -march=native option) to build for all RPis. (copy pasted from url above)\r\n\r\nError when installing:\r\n```\r\n  building 'pycrypt' extension\r\n  creating build\r\n  creating build/temp.linux-armv7l-2.7\r\n  gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/lib/python2.7.13/include/python2.7 -c pycrypt.c -o build/temp.linux-armv7l-2.7/pycrypt.o -O3 -march=native\r\n  error: command 'gcc' terminated by signal 6\r\n  \r\n  ----------------------------------------\r\n  Failed building wheel for pycrypt\r\n  Running setup.py clean for pycrypt\r\nFailed to build pycrypt\r\nInstalling collected packages: pycrypt\r\n  Running setup.py install for pycrypt ... -*** Error in `gcc': double free or corruption (top): 0x00807fb0 ***\r\nerror\r\n    Complete output from command /home/pi/pogo/RocketMap/venv/bin/python -u -c \"import setuptools, tokenize;__file__='/tmp/pip-build-U_cb5L/pycrypt/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))\" install --record /tmp/pip-njl2Lb-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/pogo/RocketMap/venv/include/site/python2.7/pycrypt:\r\n    running install\r\n    running build\r\n    running build_ext\r\n    building 'pycrypt' extension\r\n    creating build\r\n    creating build/temp.linux-armv7l-2.7\r\n    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/lib/python2.7.13/include/python2.7 -c pycrypt.c -o build/temp.linux-armv7l-2.7/pycrypt.o -O3 -march=native\r\n    error: command 'gcc' terminated by signal 6\r\n    \r\n    ----------------------------------------\r\nCommand \"/home/pi/pogo/RocketMap/venv/bin/python -u -c \"import setuptools, tokenize;__file__='/tmp/pip-build-U_cb5L/pycrypt/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))\" install --record /tmp/pip-njl2Lb-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/pogo/RocketMap/venv/include/site/python2.7/pycrypt\" failed with error code 1 in /tmp/pip-build-U_cb5L/pycrypt/\r\n```"},"comment":{"url":"https://api.github.com/repos/Noctem/pycrypt/issues/comments/300340939","html_url":"https://github.com/Noctem/pycrypt/issues/2#issuecomment-300340939","issue_url":"https://api.github.com/repos/Noctem/pycrypt/issues/2","id":300340939,"user":{"login":"Noctem","id":1787524,"avatar_url":"https://avatars0.githubusercontent.com/u/1787524?v=3","gravatar_id":"","url":"https://api.github.com/users/Noctem","html_url":"https://github.com/Noctem","followers_url":"https://api.github.com/users/Noctem/followers","following_url":"https://api.github.com/users/Noctem/following{/other_user}","gists_url":"https://api.github.com/users/Noctem/gists{/gist_id}","starred_url":"https://api.github.com/users/Noctem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Noctem/subscriptions","organizations_url":"https://api.github.com/users/Noctem/orgs","repos_url":"https://api.github.com/users/Noctem/repos","events_url":"https://api.github.com/users/Noctem/events{/privacy}","received_events_url":"https://api.github.com/users/Noctem/received_events","type":"User","site_admin":false},"created_at":"2017-05-10T00:42:50Z","updated_at":"2017-05-10T00:42:50Z","body":"You can work around this by setting `TRAVIS` in your environment before installing if your compiler can't handle `march=native` properly:\r\n```bash\r\nexport TRAVIS=1\r\n```"}}
{"actor":{"display_login":"Noctem"}}