GCC Plugin error cross-compile with yocto
Posted: Tue Sep 16, 2014 10:21 am
Hello,
I am trying to cross-compile a kernel with patched gr-security for the Raspberry PI within the build system Yocto . It always fails with the error message:
Makefile:686: *** Your gcc installation does not support plugins. If the necessary headers for plugin support are missing, they should be installed. On Debian, apt-get install gcc-<ver>-plugin-dev. If you choose to ignore this error and lessen the improvements provided by this patch, re-run make with the DISABLE_PAX_PLUGINS=y argument.. Stop.
So far I figured out, that the default cross-compiler on Yocto is not compiled with plugin support and I changed that.
The kernel I try to compile is the latest 3.16.y Raspberry Pi kernel with grsecurity-3.0-3.16.2-201409060014.patch
here is the output of
arm-poky-linux-gnueabi-gcc -v
arm-poky-linux-gnueabi-gcc -print-file-name=plugin
Any ideas where to look why the build is failing?
I am trying to cross-compile a kernel with patched gr-security for the Raspberry PI within the build system Yocto . It always fails with the error message:
Makefile:686: *** Your gcc installation does not support plugins. If the necessary headers for plugin support are missing, they should be installed. On Debian, apt-get install gcc-<ver>-plugin-dev. If you choose to ignore this error and lessen the improvements provided by this patch, re-run make with the DISABLE_PAX_PLUGINS=y argument.. Stop.
So far I figured out, that the default cross-compiler on Yocto is not compiled with plugin support and I changed that.
The kernel I try to compile is the latest 3.16.y Raspberry Pi kernel with grsecurity-3.0-3.16.2-201409060014.patch
here is the output of
arm-poky-linux-gnueabi-gcc -v
- Code: Select all
Using built-in specs.
COLLECT_GCC=./arm-poky-linux-gnueabi-gcc
COLLECT_LTO_WRAPPER=/home/myuser/poky-daisy-11.0.1/build/tmp/sysroots/i686-linux/usr/libexec/armv6-vfp-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.2/lto-wrapper
Target: arm-poky-linux-gnueabi
Configured with: /home/myuser/poky-daisy-11.0.1/build/tmp/work-shared/gcc-4.8.2-r0/gcc-4.8.2/configure --build=i686-linux --host=i686-linux --target=arm-poky-linux-gnueabi --prefix=/home/myuser/poky-daisy-11.0.1/build/tmp/sysroots/i686-linux/usr --exec_prefix=/home/myuser/poky-daisy-11.0.1/build/tmp/sysroots/i686-linux/usr --bindir=/home/myuser/poky-daisy-11.0.1/build/tmp/sysroots/i686-linux/usr/bin/armv6-vfp-poky-linux-gnueabi --sbindir=/home/myuser/poky-daisy-11.0.1/build/tmp/sysroots/i686-linux/usr/bin/armv6-vfp-poky-linux-gnueabi --libexecdir=/home/myuser/poky-daisy-11.0.1/build/tmp/sysroots/i686-linux/usr/libexec/armv6-vfp-poky-linux-gnueabi --datadir=/home/myuser/poky-daisy-11.0.1/build/tmp/sysroots/i686-linux/usr/share --sysconfdir=/home/myuser/poky-daisy-11.0.1/build/tmp/sysroots/i686-linux/etc --sharedstatedir=/home/myuser/poky-daisy-11.0.1/build/tmp/sysroots/i686-linux/com --localstatedir=/home/myuser/poky-daisy-11.0.1/build/tmp/sysroots/i686-linux/var --libdir=/home/myuser/poky-daisy-11.0.1/build/tmp/sysroots/i686-linux/usr/lib/armv6-vfp-poky-linux-gnueabi --includedir=/home/myuser/poky-daisy-11.0.1/build/tmp/sysroots/i686-linux/usr/include --oldincludedir=/home/myuser/poky-daisy-11.0.1/build/tmp/sysroots/i686-linux/usr/include --infodir=/home/myuser/poky-daisy-11.0.1/build/tmp/sysroots/i686-linux/usr/share/info --mandir=/home/myuser/poky-daisy-11.0.1/build/tmp/sysroots/i686-linux/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/home/myuser/poky-daisy-11.0.1/build/tmp/sysroots/i686-linux --enable-clocale=generic --with-gnu-ld --enable-shared --enable-languages=c,c++ --enable-threads=posix --disable-multilib --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=arm-poky-linux-gnueabi- --without-local-prefix --enable-target-optspace --enable-lto --enable-libssp --disable-bootstrap --disable-libmudflap --with-system-zlib --with-linker-hash-style=gnu --enable-linker-build-id --with-ppl=no --with-cloog=no --enable-checking=release --enable-cheaders=c_global --with-gxx-include-dir=/home/myuser/poky-daisy-11.0.1/build/tmp/sysroots/raspberrypi/usr/include/c++ --with-sysroot=/home/myuser/poky-daisy-11.0.1/build/tmp/sysroots/raspberrypi --with-build-sysroot=/home/myuser/poky-daisy-11.0.1/build/tmp/sysroots/raspberrypi --enable-poison-system-directories --disable-libunwind-exceptions --with-mpfr=/home/myuser/poky-daisy-11.0.1/build/tmp/sysroots/i686-linux/usr --with-system-zlib --enable-plugin --disable-nls
Thread model: posix
gcc version 4.8.2 (GCC)
arm-poky-linux-gnueabi-gcc -print-file-name=plugin
- Code: Select all
/home/myuser/poky-daisy-11.0.1/build/tmp/sysroots/i686-linux/usr/lib/armv6-vfp-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.2/plugin
Any ideas where to look why the build is failing?