Hello, I starting to use the python plugin today.
In order to build it, I had to 2 two things:
1) add -fPIC to testcpybuilder.py compile flags. (in the patch)
2) to use the plugin, I have to add a LD_PRELOAD=libpython2.7.so
I don't know if that was intended, but maybe it would be nice to add a
hint to the README.
I'm using ubuntu oneiric ocelot 64bit.
Also I got some failures in some tests:
253 successes; 4 failures; 1 skipped
Failed tests:
tests/plugin/gc/_gc_selftest
tests/plugin/gimple-walk-tree/dump-all
tests/plugin/gimple-walk-tree/exceptions
tests/plugin/gimple-walk-tree/find-one
make: *** [test-suite] Error 1
3 of them had the same reason, just some warnings:
--- Expected stderr
+++ Actual stderr
@@ -0,0 +1,3 @@
+tests/plugin/gc/_gc_selftest/input.c: In function 'main':
+tests/plugin/gc/_gc_selftest/input.c:41:9: warning: format '%i'
expects argument of type 'int', but argument 2 has type 'char *'
[-Wformat]
+tests/plugin/gc/_gc_selftest/input.c:41:9: warning: format '%s'
expects a matching 'char *' argument [-Wformat]
1 of them had this reason, with an actual error:
--- Expected stderr
+++ Actual stderr
@@ -1,4 +1,6 @@
tests/plugin/gimple-walk-tree/exceptions/input.c: In function 'main':
+tests/plugin/gimple-walk-tree/exceptions/input.c:41:9: warning:
format '%i' expects argument of type 'int', but argument 2 has type
'char *' [-Wformat]
+tests/plugin/gimple-walk-tree/exceptions/input.c:41:9: warning:
format '%s' expects a matching 'char *' argument [-Wformat]
tests/plugin/gimple-walk-tree/exceptions/input.c:35:1: error:
Unhandled Python exception raised calling 'execute' method
Traceback (most recent call last):
File "tests/plugin/gimple-walk-tree/exceptions/script.py", line 30,
in execute
tests/plugin/gimple-walk-tree/find-one: FAIL
--
Emilio Wuerges
ECL - Embedded Computing Lab
UFSC - Universidade Federal de Santa Catarina
Brasil