Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20190717195224.GA9014@pi3.com.pl>
Date: Wed, 17 Jul 2019 21:52:24 +0200
From: Adam Zabrocki <pi3@....com.pl>
To: lkrg-users@...ts.openwall.com
Subject: Re: cc1: error: incompatible gcc/plugin versions -
 during compilation

Hi,

You have messed up your Linux kernel build environment:

> cc1: error: incompatible gcc/plugin versions
> cc1: error: fail to initialize plugin

it looks like some ot the gcc plugins (randomize_layout_plugin, 
stackleak_plugin, structleak_plugin, latent_entropy_plugin) can't be 
initialized.

Thanks,
Adam

On Wed, Jul 17, 2019 at 08:47:41PM +0200, bryn1u85 . wrote:
> Hi guys,
> 
> I have got some weird issue during compilation from newest source from
> bitbucket.
> 
> > [root@...ton lkrg-main]# make -j8
> > make -C /lib/modules/5.1.10/build M=/root/lkrg-main modules
> > make[1]: Wej??cie do katalogu `/usr/src/kernels/5.1.10'
> >   CC [M]  /root/lkrg-main/src/modules/ksyms/p_resolve_ksym.o
> >   CC [M]  /root/lkrg-main/src/modules/hashing/p_lkrg_fast_hash.o
> >   CC [M]  /root/lkrg-main/src/modules/comm_channel/p_comm_channel.o
> >   CC [M]  /root/lkrg-main/src/modules/integrity_timer/p_integrity_timer.o
> > cc1: error: incompatible gcc/plugin versions
> > cc1: error: fail to initialize plugin
> > ./scripts/gcc-plugins/stackleak_plugin.so
> > cc1: error: incompatible gcc/plugin versions
> > cc1: error: fail to initialize plugin
> > ./scripts/gcc-plugins/structleak_plugin.so
> > cc1: error: incompatible gcc/plugin versions
> > cc1: error: fail to initialize plugin
> > ./scripts/gcc-plugins/latent_entropy_plugin.so
> > cc1: error: incompatible gcc/plugin versions
> > cc1: error: fail to initialize plugin
> > ./scripts/gcc-plugins/randomize_layout_plugin.so
> >   CC [M]  /root/lkrg-main/src/modules/kmod/p_kmod.o
> > make[3]: *** [/root/lkrg-main/src/modules/ksyms/p_resolve_ksym.o] B????d 1
> > make[3]: *** Oczekiwanie na niezako??czone zadania....
> >   CC [M]  /root/lkrg-main/src/modules/database/CPU.o
> >   CC [M]  /root/lkrg-main/src/modules/database/arch/x86/p_x86_metadata.o
> > cc1: error: incompatible gcc/plugin versions
> > cc1: error: incompatible gcc/plugin versions
> > cc1: error: fail to initialize plugin
> > ./scripts/gcc-plugins/stackleak_plugin.so
> > cc1: error: fail to initialize plugin
> > ./scripts/gcc-plugins/stackleak_plugin.so
> > cc1: error: incompatible gcc/plugin versions
> > cc1: error: incompatible gcc/plugin versions
> > cc1: error: fail to initialize plugin
> > ./scripts/gcc-plugins/structleak_plugin.so
> > cc1: error: fail to initialize plugin
> > ./scripts/gcc-plugins/structleak_plugin.so
> > cc1: error: incompatible gcc/plugin versions
> > cc1: error: incompatible gcc/plugin versions
> > cc1: error: fail to initialize plugin
> > ./scripts/gcc-plugins/latent_entropy_plugin.so
> > cc1: error: fail to initialize plugin
> > ./scripts/gcc-plugins/latent_entropy_plugin.so
> > cc1: error: incompatible gcc/plugin versions
> > cc1: error: incompatible gcc/plugin versions
> > cc1: error: fail to initialize plugin
> > ./scripts/gcc-plugins/randomize_layout_plugin.so
> > cc1: error: fail to initialize plugin
> > ./scripts/gcc-plugins/randomize_layout_plugin.so
> >   CC [M]
> >  /root/lkrg-main/src/modules/database/arch/x86/p_switch_idt/p_switch_idt.o
> > cc1: error: incompatible gcc/plugin versions
> > cc1: error: fail to initialize plugin
> > ./scripts/gcc-plugins/stackleak_plugin.so
> > cc1: error: incompatible gcc/plugin versions
> > cc1: error: fail to initialize plugin
> > ./scripts/gcc-plugins/structleak_plugin.so
> > cc1: error: incompatible gcc/plugin versions
> > cc1: error: fail to initialize plugin
> > ./scripts/gcc-plugins/latent_entropy_plugin.so
> > cc1: error: incompatible gcc/plugin versions
> > cc1: error: fail to initialize plugin
> > ./scripts/gcc-plugins/randomize_layout_plugin.so
> > make[3]: *** [/root/lkrg-main/src/modules/hashing/p_lkrg_fast_hash.o] B????d
> > 1
> > make[3]: *** [/root/lkrg-main/src/modules/comm_channel/p_comm_channel.o]
> > B????d 1
> > make[3]: ***
> > [/root/lkrg-main/src/modules/integrity_timer/p_integrity_timer.o] B????d 1
> > cc1: error: incompatible gcc/plugin versions
> > cc1: error: fail to initialize plugin
> > ./scripts/gcc-plugins/stackleak_plugin.so
> > cc1: error: incompatible gcc/plugin versions
> > cc1: error: fail to initialize plugin
> > ./scripts/gcc-plugins/structleak_plugin.so
> > cc1: error: incompatible gcc/plugin versions
> > cc1: error: fail to initialize plugin
> > ./scripts/gcc-plugins/latent_entropy_plugin.so
> > cc1: error: incompatible gcc/plugin versions
> > cc1: error: fail to initialize plugin
> > ./scripts/gcc-plugins/randomize_layout_plugin.so
> > cc1: error: incompatible gcc/plugin versions
> > cc1: error: fail to initialize plugin
> > ./scripts/gcc-plugins/stackleak_plugin.so
> > cc1: error: incompatible gcc/plugin versions
> > cc1: error: fail to initialize plugin
> > ./scripts/gcc-plugins/structleak_plugin.so
> > make[3]: *** [/root/lkrg-main/src/modules/kmod/p_kmod.o] B????d 1
> > cc1: error: incompatible gcc/plugin versions
> > cc1: error: fail to initialize plugin
> > ./scripts/gcc-plugins/latent_entropy_plugin.so
> > cc1: error: incompatible gcc/plugin versions
> > cc1: error: fail to initialize plugin
> > ./scripts/gcc-plugins/randomize_layout_plugin.so
> > make[3]: *** [/root/lkrg-main/src/modules/database/CPU.o] B????d 1
> > cc1: error: incompatible gcc/plugin versions
> > cc1: error: incompatible gcc/plugin versions
> > cc1: error: fail to initialize plugin
> > ./scripts/gcc-plugins/stackleak_plugin.so
> > cc1: error: fail to initialize plugin
> > ./scripts/gcc-plugins/stackleak_plugin.so
> > cc1: error: incompatible gcc/plugin versions
> > cc1: error: incompatible gcc/plugin versions
> > cc1: error: fail to initialize plugin
> > ./scripts/gcc-plugins/structleak_plugin.so
> > cc1: error: fail to initialize plugin
> > ./scripts/gcc-plugins/structleak_plugin.so
> > cc1: error: incompatible gcc/plugin versions
> > cc1: error: incompatible gcc/plugin versions
> > cc1: error: fail to initialize plugin
> > ./scripts/gcc-plugins/latent_entropy_plugin.so
> > cc1: error: fail to initialize plugin
> > ./scripts/gcc-plugins/latent_entropy_plugin.so
> > cc1: error: incompatible gcc/plugin versions
> > cc1: error: incompatible gcc/plugin versions
> > cc1: error: fail to initialize plugin
> > ./scripts/gcc-plugins/randomize_layout_plugin.so
> > cc1: error: fail to initialize plugin
> > ./scripts/gcc-plugins/randomize_layout_plugin.so
> > make[3]: ***
> > [/root/lkrg-main/src/modules/database/arch/x86/p_x86_metadata.o] B????d 1
> > make[3]: ***
> > [/root/lkrg-main/src/modules/database/arch/x86/p_switch_idt/p_switch_idt.o]
> > B????d 1
> > make[2]: *** [_module_/root/lkrg-main] B????d 2
> > make[1]: *** [sub-make] B????d 2
> > make[1]: Opuszczenie katalogu `/usr/src/kernels/5.1.10'
> > make: *** [all] B????d 2
> > [root@...ton lkrg-main]#
> > *[root@...ton lkrg-main]# gcc -v*
> > Using built-in specs.
> > COLLECT_GCC=gcc
> >
> > COLLECT_LTO_WRAPPER=/opt/rh/devtoolset-8/root/usr/libexec/gcc/x86_64-redhat-linux/8/lto-wrapper
> > Target: x86_64-redhat-linux
> > Configured with: ../configure --enable-bootstrap
> > --enable-languages=c,c++,fortran,lto --prefix=/opt/rh/devtoolset-8/root/usr
> > --mandir=/opt/rh/devtoolset-8/root/usr/share/man
> > --infodir=/opt/rh/devtoolset-8/root/usr/share/info --with-bugurl=
> > http://bugzilla.redhat.com/bugzilla --enable-shared
> > --enable-threads=posix --enable-checking=release --enable-multilib
> > --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions
> > --enable-gnu-unique-object --enable-linker-build-id
> > --with-gcc-major-version-only --with-linker-hash-style=gnu
> > --with-default-libstdcxx-abi=gcc4-compatible --enable-plugin
> > --enable-initfini-array
> > --with-isl=/builddir/build/BUILD/gcc-8.3.1-20190311/obj-x86_64-redhat-linux/isl-install
> > --disable-libmpx --enable-gnu-indirect-function --with-tune=generic
> > --with-arch_32=x86-64 --build=x86_64-redhat-linux
> > Thread model: posix
> > *gcc version 8.3.1 20190311 (Red Hat 8.3.1-3) (GCC) *
> > [root@...ton lkrg-main]#
> >
> >
> Before update lkrg source everything worked fine Today i just wanted to
> update to the newest version and during commpilation i got issue.
> Someone can help ?
> 
> Thanks !

-- 
pi3 (pi3ki31ny) - pi3 (at) itsec pl
http://pi3.com.pl

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.