gcc-python-plugin icon indicating copy to clipboard operation
gcc-python-plugin copied to clipboard

won't be able to run script

Open Vishrutidesai opened this issue 6 years ago • 2 comments

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

Vishrutidesai avatar Dec 18 '18 08:12 Vishrutidesai

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.

arslankhan8 avatar Dec 26 '18 22:12 arslankhan8

@arslankhan8 this still works. Thanks.

arquicanedo avatar Jul 27 '20 18:07 arquicanedo