{"action":"opened","issue":{"url":"https://api.github.com/repos/davidmalcolm/gcc-python-plugin/issues/84","repository_url":"https://api.github.com/repos/davidmalcolm/gcc-python-plugin","labels_url":"https://api.github.com/repos/davidmalcolm/gcc-python-plugin/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/davidmalcolm/gcc-python-plugin/issues/84/comments","events_url":"https://api.github.com/repos/davidmalcolm/gcc-python-plugin/issues/84/events","html_url":"https://github.com/davidmalcolm/gcc-python-plugin/issues/84","id":206623380,"number":84,"title":"Lots of exceptions from cpychecker","user":{"login":"davidmalcolm","id":1553248,"avatar_url":"https://avatars.githubusercontent.com/u/1553248?v=3","gravatar_id":"","url":"https://api.github.com/users/davidmalcolm","html_url":"https://github.com/davidmalcolm","followers_url":"https://api.github.com/users/davidmalcolm/followers","following_url":"https://api.github.com/users/davidmalcolm/following{/other_user}","gists_url":"https://api.github.com/users/davidmalcolm/gists{/gist_id}","starred_url":"https://api.github.com/users/davidmalcolm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidmalcolm/subscriptions","organizations_url":"https://api.github.com/users/davidmalcolm/orgs","repos_url":"https://api.github.com/users/davidmalcolm/repos","events_url":"https://api.github.com/users/davidmalcolm/events{/privacy}","received_events_url":"https://api.github.com/users/davidmalcolm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"davidmalcolm","id":1553248,"avatar_url":"https://avatars.githubusercontent.com/u/1553248?v=3","gravatar_id":"","url":"https://api.github.com/users/davidmalcolm","html_url":"https://github.com/davidmalcolm","followers_url":"https://api.github.com/users/davidmalcolm/followers","following_url":"https://api.github.com/users/davidmalcolm/following{/other_user}","gists_url":"https://api.github.com/users/davidmalcolm/gists{/gist_id}","starred_url":"https://api.github.com/users/davidmalcolm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidmalcolm/subscriptions","organizations_url":"https://api.github.com/users/davidmalcolm/orgs","repos_url":"https://api.github.com/users/davidmalcolm/repos","events_url":"https://api.github.com/users/davidmalcolm/events{/privacy}","received_events_url":"https://api.github.com/users/davidmalcolm/received_events","type":"User","site_admin":false},"assignees":[{"login":"davidmalcolm","id":1553248,"avatar_url":"https://avatars.githubusercontent.com/u/1553248?v=3","gravatar_id":"","url":"https://api.github.com/users/davidmalcolm","html_url":"https://github.com/davidmalcolm","followers_url":"https://api.github.com/users/davidmalcolm/followers","following_url":"https://api.github.com/users/davidmalcolm/following{/other_user}","gists_url":"https://api.github.com/users/davidmalcolm/gists{/gist_id}","starred_url":"https://api.github.com/users/davidmalcolm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidmalcolm/subscriptions","organizations_url":"https://api.github.com/users/davidmalcolm/orgs","repos_url":"https://api.github.com/users/davidmalcolm/repos","events_url":"https://api.github.com/users/davidmalcolm/events{/privacy}","received_events_url":"https://api.github.com/users/davidmalcolm/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2017-02-09T20:39:26Z","updated_at":"2017-02-09T20:39:26Z","closed_at":null,"body":"Having seen David Malcolm's awesome PyCon talk, I thought I'd give cpychecker a try on my own code.\r\n\r\nI'm on Fedora 18, and installed all the dependencies from packages.\r\n\r\nI checked out gcc-python-plugin from here: http://git.fedorahosted.org/cgit/gcc-python-plugin.git/ and got hash 537bbc998064 as the current master.\r\n\r\nDid `make plugin` and all seemed to build.  `make demo` gives:\r\n\r\n{{{\r\nMakefile:188: warning: overriding recipe for target `autogenerated-casts.c'\r\nMakefile:185: warning: ignoring old recipe for target `autogenerated-casts.c'\r\nLD_LIBRARY_PATH=gcc-c-api ./gcc-with-cpychecker -c -I/usr/include/python2.7 -I/usr/include/python2.7 demo.c\r\ndemo.c:1:1: error: invalid flag \"WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE\" in line directive\r\ndemo.c:1:48: warning: extra tokens at end of ## directive [enabled by default]\r\n/usr/include/stdio.h:34: confused by earlier errors, bailing out\r\nPreprocessed source stored into /tmp/ccfhbjIE.out file, please attach this to your bugreport.\r\nmake: *** [demo] Error 1\r\n}}}\r\n\r\nWent to try to run this on a project of mine, astropy, available from http://github.com/astropy/astropy.\r\n\r\nI compiled it with\r\n\r\n{{{\r\nCC=/home/mdboom/Work/builds/gcc-python-plugin/gcc-with-cpychecker python setup.py build\r\n}}}\r\n\r\nAmong what seem to be some legitimate problems it's finding in my code (hooray!), it has some unhandled exceptions that cause the compiler to fail and building halts.  I would have expected building to continue if the C code is at least compilable (which it is with the vanilla gcc compiler)."}}
{"actor":{"display_login":"davidmalcolm"}}