FS#49334 - [mingw-w64-binutils] unimplemented function libstdc++-6.dll._ZNSt8ios_base4InitC1Ev

Attached to Project: Community Packages
Opened by Michel (xantares) - Saturday, 14 May 2016, 18:33 GMT
Last edited by Jonathan Roemer (pid1) - Monday, 12 September 2016, 21:29 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Hello,

It seems I encounter exactly this bug since the update to gcc 6.0:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=814425
If I downgrade to gcc 5.3 it doesn't show up, unlike in the error report which shows 5.3, which is weird.

Debian has patches, maybe they are upstreamed.
FYI core/binutils ships a git version, some commit in the release branch, what should be done ?

Example:
#include <iostream>

int main()
{
std::cout << "Moment: " << 8.6 << std::endl;
return 0;
}

xan.
This task depends upon

Closed by  Jonathan Roemer (pid1)
Monday, 12 September 2016, 21:29 GMT
Reason for closing:  Deferred
Additional comments about closing:  See 49860
Comment by Michel (xantares) - Friday, 20 May 2016, 18:36 GMT
forgot to report it only affects i686-w64-mingw32 target,
tried with the same version as core/binutils and binutils git, no luck.
Comment by Michel (xantares) - Monday, 30 May 2016, 12:16 GMT
could someone at least confirm the bug ?
xan.
Comment by Carlos Siso (casiso) - Tuesday, 31 May 2016, 00:21 GMT
Same problem here. I had to downgrade to mingw-w64-gcc-5.3.0-1.
Comment by Michel (xantares) - Tuesday, 31 May 2016, 08:37 GMT
Thanks for confirming the issue Carlos.
Comment by Weiwen Zhao (panda-z) - Tuesday, 21 June 2016, 07:17 GMT
Confirmed here. It only affects i686-w64-mingw32 target.

It seems i686-w64-mingw32 target uses sjlj as exception handling model, while x86_64-w64-mingw32 uses seh.
Comment by Michel (xantares) - Wednesday, 29 June 2016, 08:56 GMT
I tried to build gcc 5.4 and I got the same error, maybe the error appeared between 5.3 and 5.4.
Comment by Sergej Pupykin (sergej) - Thursday, 07 July 2016, 15:27 GMT
Provided example compiles for both
$ x86_64-w64-mingw32-g++ test.cpp
$ i686-w64-mingw32-g++ test.cpp
on latest system.
Comment by Michel (xantares) - Friday, 08 July 2016, 03:19 GMT
  • Field changed: Percent Complete (100% → 0%)
well the problem still appears when I run i686 executables (the problem is not the build part)
Comment by Marius (Martchus) - Sunday, 31 July 2016, 18:15 GMT
I can reproduce it.
Trying to instantiate a std::string results in a similar error as already reported here: https://bugs.archlinux.org/task/49860
Comment by Sergej Pupykin (sergej) - Thursday, 04 August 2016, 15:01 GMT
Can it be reproduced with 2.27?
Comment by Michel (xantares) - Thursday, 04 August 2016, 16:31 GMT
yes, although the error message is not exactly the same:
Unhandled exception: unimplemented function libstdc++-6.dll._ZNSaIcEC1Ev called in 32-bit code (0x7bc53529).

$ c++filt _ZNSaIcEC1Ev
std::allocator<char>::allocator()

Loading...