This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52922] failed to build gcc 4.7 on SL6.1
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 10 Apr 2012 07:52:39 +0000
- Subject: [Bug c++/52922] failed to build gcc 4.7 on SL6.1
- Auto-submitted: auto-generated
- References: <bug-52922-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52922
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-04-10 07:52:39 UTC ---
This implies the /usr/local/bin/gcc compiler you're using was not built on
SL6.1, or was built against an older glibc
I've had exactly this error when trying to use a compiler built on CentOS5 on
CentOS6 - the fixincluded headers assume an older glibc
Try installing gcc from SL RPMs via yum and ensuring that is earlier in your
path than /usr/local/bin/gcc