Skip to content

python.so: undefined symbol: gcc_location_get_start #178

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
CinLH opened this issue Sep 30, 2019 · 1 comment
Open

python.so: undefined symbol: gcc_location_get_start #178

CinLH opened this issue Sep 30, 2019 · 1 comment

Comments

@CinLH
Copy link

CinLH commented Sep 30, 2019

I am trying to build the plugin on Ubuntu 18.04. After I install the plugin by runing "make plugin", I trying to run the example as follow:

./gcc-with-python examples/show-docs.py test.c

This output

cc1: error: cannot load plugin /home/cin/python/temp/gcc-python-plugin/python.so
   /home/cin/python/temp/gcc-python-plugin/python.so: undefined symbol: gcc_location_get_start

Environment
Ubuntu: 18.04
GCC: 7.4
I install the dependencies by runing:

apt install gcc-7-plugin-dev python-dev python-six python-pygments graphviz
@Blealtan
Copy link

Blealtan commented Jun 30, 2020

In my case, LD_LIBRARY_PATH=gcc-c-api ./gcc-with-python ... would load the plugin correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants