This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Strange problem while compiling some cpp program with g++ 3.1.
- From: Phil Edwards <phil at jaj dot com>
- To: Tim Prince <tprince at computer dot org>
- Cc: pananth at india dot hp dot com, gcc-bugs at gcc dot gnu dot org, "Arun Lakshmipathy (E-mail)" <arunl at india dot hp dot com>, "Zameer Majeed (E-mail)" <zameer at india dot hp dot com>
- Date: Fri, 26 Jul 2002 15:58:50 -0400
- Subject: Re: Strange problem while compiling some cpp program with g++ 3.1.
- References: <000001c230bf$5a018110$6d754c0f@india.hp.com> <20020721142945.53B702CD2E@inet1.ywave.com>
On Sun, Jul 21, 2002 at 07:29:45AM -0700, Tim Prince wrote:
> On Sunday 21 July 2002 07:03, Ananth Prabhu wrote:
> > I am finding following wanings/errors when compiling a cpp program with g++
> > version 3.1. I am working on a Itanium server.
> > Is this some configuration problem ?? I am not able to make out what
> > exactly the warning/error messages are pointing out?
>
> > /buildtools/include/g++-v3/bits/stl_alloc.h:479: warning: cast from `
> > char*' to `std::__default_alloc_template<true, 0>::_Obj*' increases
> > required
> > alignment of target type
>
> That is the only warning I see, and it appears justified. char* may point to
> any address. Any object which involves other than char elements
> will get you an Address Error if you have not taken care of this otherwise.
Assuming that no error messages were left out or removed from the email,
this represents /some/ kind of configuration error somewhere, because all
of the files mentioned are local to libstdc++-v3. I've never seen this
message before, and it bothers me.
Phil
--
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams