This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/80719] gcc build fails on libiberty conflicting types: CP_STATIC_IF_GLIBCPP_V3
- From: "joriswu at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 12 May 2017 07:05:45 +0000
- Subject: [Bug other/80719] gcc build fails on libiberty conflicting types: CP_STATIC_IF_GLIBCPP_V3
- Auto-submitted: auto-generated
- References: <bug-80719-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80719
--- Comment #3 from joris <joriswu at gmail dot com> ---
Further analysis shows the conflict is that the source has 'const' yet the
header has no 'const' qualifier for struct demangle_component
Unpacking binutils into the gcc source tree is what the install guide at
https://gcc.gnu.org/install/download.html suggests.
If building binutils separately, the resulting libiberty.a is not compatible
with gcc's expectations, likely related to relocatability.
P.S. the duplicate bug is because bugzilla showed a gateway timeout at submit.