http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54097
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-07-25 23:11:53 UTC --- (In reply to comment #2) > (In reply to comment #1) > > Simple answer don't use "-march=i686" in any of the *C*FLAGS env variables. > > Why is that? I thought -march=i686 was supposed to produce i686 compatible > code > (i.e., 32-bit). Because you have it set for the target libraries too which is incorrect in this case as you are creating a 64bit target library.