http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51280
--- Comment #5 from Aldy Hernandez <aldyh at gcc dot gnu.org> 2012-01-16 13:20:56 UTC --- Ok, reproduced as below. -flto was missing from the link line. houston:/build/t2/gcc$ ./xgcc -B./ -c -fgnu-tm -flto -c a.c -o a.ohouston:/build/t2/gcc$ ./xgcc -B./ a.o -flto -L ../x86_64-unknown-linux-gnu/libitm/.libs/ -litm lto1: internal compiler error: in streamer_get_builtin_tree, at tree-streamer-in.c:1077 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. lto-wrapper: ./xgcc returned 1 exit status /usr/bin/ld: lto-wrapper failed collect2: error: ld returned 1 exit status houston:/build/t2/gcc$