Make clean runs fine; here is what happens when I run make:
“
python generate-config-h.py -o autogenerated-config.h --gcc="cc"
--plugindir="plugin"
checking for gcc-plugin.h... not found
Test compilation failed with exit code 1
The command was:
gcc -c -o config-tests/00001-checking-for-gcc-plugin.h/feature-test.o
config-tests/00001-checking-for-gcc-plugin.h/feature-test.c -Iplugin/include
The source was: (in config-tests/00001-checking-for-gcc-plugin.h/feature-test.c)
#include <gcc-plugin.h>
The stderr was:
config-tests/00001-checking-for-gcc-plugin.h/feature-test.c:1:24: error: gcc-plugin.h:
No such file or directory
make: *** [autogenerated-config.h] Error 1
“
Nick
On Apr 30, 2012, at 11:51 AM, David Malcolm wrote:
On Wed, 2012-04-25 at 16:46 -0400, Nicholas Pasternack wrote:
Looks like my reply never made it to the list for some reason - I know
that fedorahosted had some issues last week. Sorry about this -
resending.
> I have a new problem:
>
> #include <gcc-plugin.h>
> The stderr was:
> config-tests/00001-checking-for-gcc-plugin.h/feature-test.c:1:24: error:
gcc-plugin.h: No such file or directory
This error is coming from configbuilder.py, run by generate-config-h.py
by the Makefile target "autogenerated-config.h".
Can you run "make clean" and then "make", and post the full output
of
the "make" please? (including the line in which genereate-config-h.py
is invoked).
> I can fix this error for the building of the plugin by putting
> gcc-plugin.h in the same directory that the file I'm compiling is in.
> This does not work for the config-tests directory as it is generated
> every time I run the makefile. Do you know of a way to bypass this
> config-tests phase, or better yet, just skip right to the building of
> the plugin?
That approach sounds fragile; better to get the config-generation to
actually work, as some things use it.
Dave
_______________________________________________
gcc-python-plugin mailing list
gcc-python-plugin(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/gcc-python-plugin