This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc-4.4.0 libstdc++ build failed
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: M R Swami Reddy <MR dot Swami dot Reddy at nsc dot com>
- Cc: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>, libstdc++ at gcc dot gnu dot org
- Date: Fri, 15 May 2009 10:57:23 +0200
- Subject: Re: gcc-4.4.0 libstdc++ build failed
- References: <4A0D22CC.5070002@nsc.com>
M R Swami Reddy wrote:
> I am building a cross compiler using gcc-4.4.0 released sources.
> In that compiler and libgcc are built successfully, but libstdc++ build
> failed with below message:
> ===
> libstdc++-v3/src/atomic.cc:106: error: cast from 'const volatile
> void*' to 'uintptr_t' loses precision
> ===
> Could you please help to resolve the above?
As far as I can see, either you are doing something wrong in your cross
configuration, or something is broken in your target, because, per C99
7.18.1.4, that conversion must be always possible.
Paolo.