error compiling c++ sample - old creepy gcc bug spotted

John Marino dragonflybsd at marino.st
Mon Aug 11 15:17:44 PDT 2014


On 8/11/2014 23:39, Volodymyr Kostyrko wrote:
> Hi all.
> 
> There goes a reduced test case that compiles smoothly on FreeBSD
> 10/CentOS 6 but fails on DragonFly 3.8.1 / master:
> 
> #include <string>
> 
> int main()
> {
>     std::to_string(0);
>     return 0;
> }
> 
> The problem is described at
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52015 and it states that
> this is due defining _GLIBCXX_HAVE_BROKEN_VSWPRINTF somewhere. But I
> can't find where it can be defined in /usr/src. Can someone help me
> debug this issue?
> 

grok.dragonflybsd.org says it's not defined in /usr/src.  I didn't see
it recursively in /usr/src/gnu either.

John



More information about the Users mailing list