This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/13393] Fix for bug 7926 causes broken header install on x86_64
- From: "bkoz at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Dec 2003 19:21:14 -0000
- Subject: [Bug libstdc++/13393] Fix for bug 7926 causes broken header install on x86_64
- References: <20031213073851.13393.bos@serpentine.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bkoz at redhat dot com 2003-12-13 19:21 -------
Subject: Re: New: Fix for bug 7926 causes broken
header install on x86_64
>I'm building a cross compiler for x86_64 on an x86 box. The build insists on
>picking up libstdc++-v3/config/cpu/i486/atomicity.h, which the cross version of
>binutils I'm using (2.14.90.0.5, dated around August this year) chokes on.
This is your problem: that binutils chokes on this file. This is the
correct atomicity file for your setup (x86_64).
%ld --version
GNU ld version 2.14.90 20031208
>The resulting breakage is easy to miss, since atomicity.h is not used during the
>build of libstdc++, and is rarely used by C++ programs in general. I found the
>bug while running the Perennial C++ test suite, which had multiple compile
>failures due to the assembler choking on the syntax in that include file.
Au contraire: atomicity.h is used all over the place, including when libstdc++ is built.
%grep atomicity *
ios.cc:#include <bits/atomicity.h>
ios_init.cc:#include <bits/atomicity.h>
locale.cc:#include <bits/atomicity.h>
locale_init.cc:#include <bits/atomicity.h>
misc-inst.cc:#include <bits/atomicity.h>
Also, all std::string.
There's something else wrong.
-benjamin
ps. When I get bug reports from people that can use bitkeeper and have
licenses to Perennial C++ I get a bit weepy, so sorry if this is too harsh.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13393