Closed nickodell closed 5 years ago
gcc_location_offset_column is part of gcc-c-api/gcc-location.c, so this suggests that gcc-c-api isn't being found
Adding gcc-c-api/libgcc-c-api.so to the command for building python.so fixes this. Here's a patch:
diff --git a/Makefile b/Makefile
index c87ae8d..fb8a3c6 100644
--- a/Makefile
+++ b/Makefile
@@ -152,7 +152,7 @@ $(PLUGIN_DSO): $(PLUGIN_OBJECT_FILES) $(LIBGCC_C_API_SO)
$(PLUGIN_OBJECT_FILES) \
-o $@ \
$(LIBS) \
- -lgcc-c-api -Lgcc-c-api -Wl,-rpath=$(GCCPLUGINS_DIR)
+ -lgcc-c-api -Lgcc-c-api gcc-c-api/libgcc-c-api.so -Wl,-rpath=$(GCCPLUGINS_DIR)
$(pwd)/gcc-c-api:
mkdir -p $@
I'm able to build python.so by running
make plugin
.I get this error message when I run
gcc -fplugin=python.so test2.c
:Current revision of gcc-python-plugin: 49fc210b429 gcc version:
System info: Debian 9.6
Also, some tests fail: