davidmalcolm / gcc-python-plugin

GCC plugin that embeds CPython inside the compiler
GNU General Public License v3.0
197 stars 58 forks source link

won't be able to run script #153

Open Vishrutidesai opened 5 years ago

Vishrutidesai commented 5 years ago

cc1: error: cannot load plugin /home/vishruti/gcc-python-plugin-0.15/python.so /home/vishruti/gcc-python-plugin-0.15/python.so: cannot open shared object file: No such file or directory

arslankhan8 commented 5 years ago

I ran into the issue you mentioned here as well. i figured LD is not able to see this so i just preloaded the error causing shared libs, you can do this by: LD_LIBRARY_PATH=gcc-c-api gcc -fplugin=./python.so -fplugin-arg-python-command="import sys; print(sys.path)" ~/edge_cases/gimple/attr.c This hack solved the issue for me.

arquicanedo commented 4 years ago

@arslankhan8 this still works. Thanks.