Debian Bug report logs - #642916
Combination of -std=gnu++0x and -fno-rtti fails to build

version graph

Package: gcc-mingw32; Maintainer for gcc-mingw32 is (unknown);

Reported by: Max Kellermann <max@duempel.org>

Date: Sun, 25 Sep 2011 16:25:25 UTC

Severity: normal

Found in version 4.4.4-1

Done: Stephen Kitt <steve@sk2.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Stephen Kitt <steve@sk2.org>:
Bug#642916; Package gcc-mingw32. (Sun, 25 Sep 2011 16:25:28 GMT) (full text, mbox, link).


Acknowledgement sent to Max Kellermann <max@duempel.org>:
New Bug report received and forwarded. Copy sent to Stephen Kitt <steve@sk2.org>. (Sun, 25 Sep 2011 16:25:28 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Max Kellermann <max@duempel.org>
To: submit@bugs.debian.org
Subject: Combination of -std=gnu++0x and -fno-rtti fails to build
Date: Sun, 25 Sep 2011 18:15:00 +0200
Package: gcc-mingw32
Version: 4.4.4-1

$ echo '#include <memory>' |i586-mingw32msvc-gcc -x c++ -fno-rtti -std=gnu++0x -
In file included from /usr/lib/gcc/i586-mingw32msvc/4.4.4/include/c++/memory:83,
                 from <stdin>:1:
/usr/lib/gcc/i586-mingw32msvc/4.4.4/include/c++/bits/shared_ptr.h: In member function 'virtual void* std::_Sp_counted_deleter<_Ptr, _Deleter, _Alloc, _Lp>::_M_get_deleter(const std::type_info&)':
/usr/lib/gcc/i586-mingw32msvc/4.4.4/include/c++/bits/shared_ptr.h:146: error: cannot use typeid with -fno-rtti
/usr/lib/gcc/i586-mingw32msvc/4.4.4/include/c++/bits/shared_ptr.h: In member function 'virtual void* std::_Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp>::_M_get_deleter(const std::type_info&)':
/usr/lib/gcc/i586-mingw32msvc/4.4.4/include/c++/bits/shared_ptr.h:204: error: cannot use typeid with -fno-rtti
/usr/lib/gcc/i586-mingw32msvc/4.4.4/include/c++/bits/shared_ptr.h: In constructor 'std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_make_shared_tag, _Alloc, _Args&& ...)':
/usr/lib/gcc/i586-mingw32msvc/4.4.4/include/c++/bits/shared_ptr.h:861: error: cannot use typeid with -fno-rtti
/usr/lib/gcc/i586-mingw32msvc/4.4.4/include/c++/bits/shared_ptr.h: In function '_Del* std::get_deleter(const std::__shared_ptr<_Tp2, _Lp>&)':
/usr/lib/gcc/i586-mingw32msvc/4.4.4/include/c++/bits/shared_ptr.h:1005: error: cannot use typeid with -fno-rtti




Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#642916; Package gcc-mingw32. (Sun, 25 Sep 2011 21:57:38 GMT) (full text, mbox, link).


Acknowledgement sent to Stephen Kitt <steve@sk2.org>:
Extra info received and forwarded to list. (Sun, 25 Sep 2011 21:57:38 GMT) (full text, mbox, link).


Message #10 received at 642916@bugs.debian.org (full text, mbox, reply):

From: Stephen Kitt <steve@sk2.org>
To: Max Kellermann <max@duempel.org>, 642916@bugs.debian.org
Subject: Re: Bug#642916: Combination of -std=gnu++0x and -fno-rtti fails to build
Date: Sun, 25 Sep 2011 23:47:34 +0200
Hi,

Thanks for taking the time to report this bug.

On Sun, Sep 25, 2011 at 06:15:00PM +0200, Max Kellermann wrote:
> $ echo '#include <memory>' |i586-mingw32msvc-gcc -x c++ -fno-rtti -std=gnu++0x -
> In file included from /usr/lib/gcc/i586-mingw32msvc/4.4.4/include/c++/memory:83,
>                  from <stdin>:1:
[...]

I've found traces of similar bugs in gcc 4.4.4, for example
https://bugzilla.mozilla.org/show_bug.cgi?id=654493 - this doesn't
seem specific to gcc-mingw32. In fact g++-4.4 in Debian (4.4.6) still
has the same bug!

gcc-mingw32 is now in simple maintenance mode, and I intend to have it
removed once all its reverse build-dependencies have switched to
gcc-mingw-w64 (which can build 32-bit executables and DLLs). Would it
be possible for you to give gcc-mingw-w64 a try?

Regards,

Stephen




Information forwarded to debian-bugs-dist@lists.debian.org, Stephen Kitt <steve@sk2.org>:
Bug#642916; Package gcc-mingw32. (Mon, 26 Sep 2011 05:15:43 GMT) (full text, mbox, link).


Acknowledgement sent to Max Kellermann <max@duempel.org>:
Extra info received and forwarded to list. Copy sent to Stephen Kitt <steve@sk2.org>. (Mon, 26 Sep 2011 05:15:43 GMT) (full text, mbox, link).


Message #15 received at 642916@bugs.debian.org (full text, mbox, reply):

From: Max Kellermann <max@duempel.org>
To: Stephen Kitt <steve@sk2.org>
Cc: 642916@bugs.debian.org
Subject: Re: Bug#642916: Combination of -std=gnu++0x and -fno-rtti fails to build
Date: Mon, 26 Sep 2011 07:04:06 +0200
On 2011/09/25 23:47, Stephen Kitt <steve@sk2.org> wrote:
> I've found traces of similar bugs in gcc 4.4.4, for example
> https://bugzilla.mozilla.org/show_bug.cgi?id=654493 - this doesn't
> seem specific to gcc-mingw32. In fact g++-4.4 in Debian (4.4.6) still
> has the same bug!

That's right - the bug is in gcc4.4's libstdc++.  Seems to be fixed
from 4.5 on.  With mingw32, I seemed to be stuck with the old gcc4.4.

> gcc-mingw32 is now in simple maintenance mode, and I intend to have it
> removed once all its reverse build-dependencies have switched to
> gcc-mingw-w64 (which can build 32-bit executables and DLLs). Would it
> be possible for you to give gcc-mingw-w64 a try?

The bug does not occur here (it's gcc 4.6).  The binaries have
confusing names, though: "i686-w64-..." is unable to generate 64 bit
binaries, despite the "w64" name part.

If gcc-mingw-w64 is the designated full-featured successor of
gcc-mingw32, we can close this bug.




Reply sent to Stephen Kitt <steve@sk2.org>:
You have taken responsibility. (Mon, 26 Sep 2011 05:15:45 GMT) (full text, mbox, link).


Notification sent to Max Kellermann <max@duempel.org>:
Bug acknowledged by developer. (Mon, 26 Sep 2011 05:15:46 GMT) (full text, mbox, link).


Message #20 received at 642916-done@bugs.debian.org (full text, mbox, reply):

From: Stephen Kitt <steve@sk2.org>
To: Max Kellermann <max@duempel.org>
Cc: 642916-done@bugs.debian.org
Subject: Re: Bug#642916: Combination of -std=gnu++0x and -fno-rtti fails to build
Date: Mon, 26 Sep 2011 07:14:06 +0200
Hi Max,

On Mon, Sep 26, 2011 at 07:04:06AM +0200, Max Kellermann wrote:
> On 2011/09/25 23:47, Stephen Kitt <steve@sk2.org> wrote:
> > gcc-mingw32 is now in simple maintenance mode, and I intend to have it
> > removed once all its reverse build-dependencies have switched to
> > gcc-mingw-w64 (which can build 32-bit executables and DLLs). Would it
> > be possible for you to give gcc-mingw-w64 a try?
> 
> The bug does not occur here (it's gcc 4.6).  The binaries have
> confusing names, though: "i686-w64-..." is unable to generate 64 bit
> binaries, despite the "w64" name part.

Yes, they are somewhat confusing, but that's what's used upstream and
in other distributions; see http://bugs.debian.org/622276 for a
detailed explanation.

> If gcc-mingw-w64 is the designated full-featured successor of
> gcc-mingw32, we can close this bug.

OK, done!

Thanks,

Stephen




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 24 Oct 2011 07:32:43 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Tue Apr 30 23:11:23 2024; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.