https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62083
Bug ID: 62083 Summary: lto1: fatal error: bytecode stream generated with LTO version 2.2 instead of the expected 3.0 Product: gcc Version: 4.9.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: dilyan.palauzov at aegee dot org I have binutils-2.24 with https://sourceware.org/ml/binutils/2014-01/msg00213.html patch applied, and libtool 2.4.2.444.30-da30-dirty . export CFLAGS='-pipe -flto -O3 -Wl,-S -Wl,--hash-style=gnu -Wl,-O1 -Wl,-z,relro -Wall -Wextra -Wl,--plugin=/usr/lib/bfd-plugins/liblto_plugin.so -fno-fat-lto-objects' export CXXFLAGS=$CFLAGS When I do: git clone http://mail.aegee.org/cgit/aegee-milter cd aegee-milter autoreconf -i ./configure && make I get: lto1: fatal error: bytecode stream generated with LTO version 2.2 instead of the expected 3.0 compilation terminated. lto-wrapper: g++ returned 1 exit status /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.1/../../../../x86_64-unknown-linux-gnu/bin/ld: lto-wrapper failed collect2: error: ld returned 1 exit status What means "generated with v2.2 instead of the expected 3.0" and how can I fix this?