tools/gcc/pax_plugin.c:19:24: fatal error: gcc-plugin.h: No such file or directory
compilation terminated.
what's your gcc version?coderx wrote:tools/gcc/pax_plugin.c:19:24: fatal error: gcc-plugin.h: No such file or directory
compilation terminated.
PaX Team wrote:what's your gcc version?coderx wrote:tools/gcc/pax_plugin.c:19:24: fatal error: gcc-plugin.h: No such file or directory
compilation terminated.
apt-get install gcc-4.5-plugin-dev libgmp-dev libmpfr-dev libmpc-dev
lokai wrote:On Debian testing, you will have to :apt-get install gcc-4.5-plugin-dev libgmp-dev libmpfr-dev libmpc-dev
since you are building a gcc-4.5 plugin.
Apparently, stable uses gcc-4.4 by default and there is no plugin support in gcc-4.4.
hmm, why does $obj point to scripts/package? did you specify it somehow? also, where was the actual plugin built?coderx wrote: HOSTCC -fPIC tools/gcc/pax_plugin.o
HOSTLLD -shared tools/gcc/pax_plugin.so
CC kernel/bounds.s
cc1: error: Cannot load plugin /usr/src/linux-2.6.39.1/scripts/package/tools/gcc/pax_plugin.so
/usr/src/linux-2.6.39.1/scripts/package/tools/gcc/pax_plugin.so: cannot open shared object file: No such file or directory
PaX Team wrote:hmm, why does $obj point to scripts/package? did you specify it somehow? also, where was the actual plugin built?coderx wrote: HOSTCC -fPIC tools/gcc/pax_plugin.o
HOSTLLD -shared tools/gcc/pax_plugin.so
CC kernel/bounds.s
cc1: error: Cannot load plugin /usr/src/linux-2.6.39.1/scripts/package/tools/gcc/pax_plugin.so
/usr/src/linux-2.6.39.1/scripts/package/tools/gcc/pax_plugin.so: cannot open shared object file: No such file or directory
ok, figured it out. in the main Makefile, can you changecoderx wrote:i didnt specified anything
the plugin is in tools/gcc/
-fplugin=$(obj)/tools/gcc/pax_plugin.so
-fplugin=$(objtree)/tools/gcc/pax_plugin.so