http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49677
PcX <xunxun1982 at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xunxun1982 at gmail dot com --- Comment #1 from PcX <xunxun1982 at gmail dot com> 2011-08-21 15:33:07 UTC --- I can confirm the error. And I found that, if I update to a newer gcc, for example, gcc 4.6.2 (20110819), their LTO information will be not compatible. It also will cause the errors : lto1: error: bad value (generic) for -mtls-dialect= switch lto-wrapper: /usr/bin/gcc returned 1 exit status /usr/bin/ld: lto-wrapper failed collect2: ld returned 1 exit status In the end, I must recompile it using the newer gcc with LTO.