[odb-users] odb-2.4.0 fails to compile with internal compiler error

Timo Rothenpieler timo at rothenpieler.org
Wed Feb 11 08:10:34 EST 2015


Hello,

I updated the Gentoo odb overlay to the new 2.4.0 release.

While testing, i got the following error while building odb:

libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I.. 
-I/var/tmp/portage/dev-db/odb-2.4.0/work/odb-2.4.0 
-I/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/plugin/include -O2 -pipe 
-march=native -c 
/var/tmp/portage/dev-db/odb-2.4.0/work/odb-2.4.0/odb/validator.cxx 
-fPIC -DPIC -o .libs/validator.o
/var/tmp/portage/dev-db/odb-2.4.0/work/odb-2.4.0/odb/validator.cxx:1589:1: 
internal compiler error: in possible_polymorphic_call_targets, at 
ipa-devirt.c:1557
  }
  ^

A full buildlog is available here:

https://gist.github.com/BtbN/90247d2b7f12bd1b1096

I am using gcc 4.9.2, installed via portage.
I was able to track this down to the -O2 option. Building with -O1 or 
without an -O option works fine.
Building with -O2 (even without -pipe and -march=native) makes it fail 
with above error.




Timo

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
Url : http://codesynthesis.com/pipermail/odb-users/attachments/20150211/265786c6/signature.pgp


More information about the odb-users mailing list