{"action":"closed","issue":{"url":"https://api.github.com/repos/scipy/scipy/issues/1266","repository_url":"https://api.github.com/repos/scipy/scipy","labels_url":"https://api.github.com/repos/scipy/scipy/issues/1266/labels{/name}","comments_url":"https://api.github.com/repos/scipy/scipy/issues/1266/comments","events_url":"https://api.github.com/repos/scipy/scipy/issues/1266/events","html_url":"https://github.com/scipy/scipy/issues/1266","id":13649990,"number":1266,"title":"scipy.weave.converters.blitz fails with g++4.3 (Trac #739)","user":{"login":"scipy-gitbot","id":4182757,"avatar_url":"https://avatars.githubusercontent.com/u/4182757?v=3","gravatar_id":"","url":"https://api.github.com/users/scipy-gitbot","html_url":"https://github.com/scipy-gitbot","followers_url":"https://api.github.com/users/scipy-gitbot/followers","following_url":"https://api.github.com/users/scipy-gitbot/following{/other_user}","gists_url":"https://api.github.com/users/scipy-gitbot/gists{/gist_id}","starred_url":"https://api.github.com/users/scipy-gitbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scipy-gitbot/subscriptions","organizations_url":"https://api.github.com/users/scipy-gitbot/orgs","repos_url":"https://api.github.com/users/scipy-gitbot/repos","events_url":"https://api.github.com/users/scipy-gitbot/events{/privacy}","received_events_url":"https://api.github.com/users/scipy-gitbot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/scipy/scipy/labels/defect","name":"defect","color":"e11d21"},{"url":"https://api.github.com/repos/scipy/scipy/labels/Migrated%20from%20Trac","name":"Migrated from Trac","color":"aaaaaa"},{"url":"https://api.github.com/repos/scipy/scipy/labels/prio-normal","name":"prio-normal","color":"999999"},{"url":"https://api.github.com/repos/scipy/scipy/labels/scipy.weave","name":"scipy.weave","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2013-04-25T17:07:42Z","updated_at":"2016-10-19T21:11:15Z","closed_at":"2016-10-19T21:11:15Z","body":"_Original ticket http://projects.scipy.org/scipy/ticket/739 on 2008-09-18 by trac user jwolter, assigned to unknown._\n\nA script using converters.blitz in an scipy.weave.inline statement stopped working lately. \n\n\n    #!python\n    from scipy.weave import inline, converters\n    ...\n    inline(code,\n            ['hs', 'lumBlur', 'lumImg',\n             'img'],\n            type_converters = converters.blitz,\n            support_code = support,\n            libraries = ['m'],\n            verbose=0\n          )\n\n\nSuddenly I got the following error:\n\n\n    ...\n    In file included from /usr/lib/python2.5/site-packages/scipy/weave/blitz/blitz/applics.h:400,\n                     from /usr/lib/python2.5/site-packages/scipy/weave/blitz/blitz/vecexpr.h:32,\n                     from /usr/lib/python2.5/site-packages/scipy/weave/blitz/blitz/vecpick.cc:16,\n                     from /usr/lib/python2.5/site-packages/scipy/weave/blitz/blitz/vecpick.h:293,\n                     from /usr/lib/python2.5/site-packages/scipy/weave/blitz/blitz/vector.h:449,\n                     from /usr/lib/python2.5/site-packages/scipy/weave/blitz/blitz/tinyvec.h:430,\n                     from /usr/lib/python2.5/site-packages/scipy/weave/blitz/blitz/array-impl.h:44,\n                     from /usr/lib/python2.5/site-packages/scipy/weave/blitz/blitz/array.h:32,\n                     from /home/jw/.python25_compiled/sc_ef45038834ace16052d05de4cc06f8523.cpp:11:\n    /usr/lib/python2.5/site-packages/scipy/weave/blitz/blitz/mathfunc.h: In static member function 'static long int blitz::_bz_abs<long int>::apply(long int)':\n    /usr/lib/python2.5/site-packages/scipy/weave/blitz/blitz/mathfunc.h:45: error: 'labs' is not a member of 'std'\n    In file included from /usr/lib/python2.5/site-packages/scipy/weave/blitz/blitz/array/funcs.h:29,\n                     from /usr/lib/python2.5/site-packages/scipy/weave/blitz/blitz/array/newet.h:29,\n                     from /usr/lib/python2.5/site-packages/scipy/weave/blitz/blitz/array/et.h:27,\n                     from /usr/lib/python2.5/site-packages/scipy/weave/blitz/blitz/array-impl.h:2515,\n                     from /usr/lib/python2.5/site-packages/scipy/weave/blitz/blitz/array.h:32,\n                     from /home/jw/.python25_compiled/sc_ef45038834ace16052d05de4cc06f8523.cpp:11:\n    /usr/lib/python2.5/site-packages/scipy/weave/blitz/blitz/funcs.h: In static member function 'static int blitz::Fn_abs<int>::apply(int)':\n    /usr/lib/python2.5/site-packages/scipy/weave/blitz/blitz/funcs.h:509: error: call of overloaded 'abs(int&)' is ambiguous\n    /usr/include/c++/4.3/cmath:99: note: candidates are: double std::abs(double)\n    /usr/include/c++/4.3/cmath:103: note:                 float std::abs(float)\n    /usr/include/c++/4.3/cmath:107: note:                 long double std::abs(long double)\n    /usr/lib/python2.5/site-packages/scipy/weave/blitz/blitz/funcs.h: In static member function 'static long int blitz::Fn_abs<long int>::apply(long int)':\n    /usr/lib/python2.5/site-packages/scipy/weave/blitz/blitz/funcs.h:530: error: 'labs' is not a member of 'std'\n    /home/jw/.python25_compiled/sc_ef45038834ace16052d05de4cc06f8523.cpp: In function 'char* find_type(PyObject*)':\n    ...\n\n\n\nIn the Debian BTS I found a small patch which is supposed to solve this issue:\n * http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=455661\n * http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=10;filename=blitz%2B%2B.patch;att=1;bug=455661\n\nMaybe this patch should also be applied to the scipy-blitz sources.\n\nI'm using scipy 0.6.0 (Debian package 0.6.0-12) and g++4.3.1.\n\nRegards,\nJohannes Wolter"}}
{"actor":{"display_login":"person142"}}