gcc-4.4.0 libstdc++ build failed

Paolo Carlini paolo.carlini@oracle.com
Fri May 15 08:57:00 GMT 2009


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.



More information about the Gcc-help mailing list