On 05.11.2012 10:36, Klaus Rudolph wrote:
Unfortunately, your python is ancient too :-).


so, I tried to use python-gcc plugin on my ubuntu machine.

My advice was Fedora VM, not Ubuntu. (because main development environment for the Python plugin is Fedora, the packaged GCC version here is 4.7.2 - same as yours, and I am on Fedora too - i.e. it would be easy to reproduce your issues)


First I couldn't run the make (tests) while python-six is not available for 
newer ubuntu versions. OK, I could install python from source but for ubuntu 
there are many patches...

Check Build-time dependencies section in the docs or spec file:

http://pkgs.fedoraproject.org/cgit/gcc-python-plugin.git/tree/gcc-python-plugin.spec


But using the python.so lib with a very little script found on
https://gcc-python-plugin.readthedocs.org/en/latest/basics.html#building-the-plugin-from-source

I got:
/opt/linux-gnu_4.7.2/bin/g++ 
-fplugin=/home/krud/work/gcc-python-plugin-0.10/python.so 
-fplugin-arg-python-script=check.py main.cpp
cc1plus: error: cannot load plugin 
/home/krud/work/gcc-python-plugin-0.10/python.so
/home/krud/work/gcc-python-plugin-0.10/python.so: undefined symbol: insn_file
make: *** [check] Error 1

I can not reproduce this with the packaged GCC 4.7.2 on F17 box and fresh checkout of tag v0.10 of the plugin, compiled with

make


Hard to find an entry point :-)

insn_file is not an entry point - the plugin entry point is plugin_init in plugin.c


Any hints?


If you are certain about your non packaged GCC on Ubuntu as development environment, I will have to install an Ubuntu VM here, but please provide me with instructions how to build this /opt GCC.

Also, please use for further specific gcc-python-plugin issues the project mailing list (We are a little OT here already ;-)):

[email protected]

You also can check this thread (building on Debian):

https://lists.fedorahosted.org/pipermail/gcc-python-plugin/2012-March/000200.html

Cheers,
Alek
_______________________________________________
dev-static-analysis mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-static-analysis

Reply via email to