Hi,
I am trying to build the plugin for a crosscompiler (host=x64 target=ppc).
I made some quick and dirty hacks to make it build:
1. cc -print-file-name=plugin has to use the target compiler in the Makefile
2. GCC_VERSION is used in the sources but that is taken from the host
compiler which different from the target, so i just define it on
command line -DGCC_VERSION=$TARGET_GCC_VERSION
This allows me to build the sharedlibs, but when I try to load them I
get an error:
cc1: error: cannot load plugin /xxx/python.so
/xxx/gcc-c-api/libgcc-c-api.so: undefined symbol: cfun
which is puzzling. I ran with LD_DEBUG=all and I see that it tries to
resolve cfun from the correct cc1 binary, and it _should_ succeed
since the symbol is there and it's public.
Any ideas?