Re: std::ifstream is broken on arm

2016-02-17 Thread Jonathan Gray
On Tue, Feb 16, 2016 at 08:08:13PM +, Miod Vallat wrote: > Actually, I had forgotten to disable the stack protector, and guess > what? Disabling it produces a working libstdc++, at least for that > simple use case; I have not tried to build cmake. > > Therefore I suggest the following diff

Re: std::ifstream is broken on arm

2016-02-16 Thread Miod Vallat
Actually, I had forgotten to disable the stack protector, and guess what? Disabling it produces a working libstdc++, at least for that simple use case; I have not tried to build cmake. Therefore I suggest the following diff until someone with enough love for the utter crap known as `arm' comes

Re: std::ifstream is broken on arm

2016-02-15 Thread Miod Vallat
> > The first bug was already reported three years ago: > > http://marc.info/?l=openbsd-bugs=135732012310459 > > std::ifstream has a bug when linked with libpthread: This is a compiler bug. Compiling libstdc++ with -O0 yields a working binary. And of course, compiling libstdc++ with as few

std::ifstream is broken on arm

2016-01-27 Thread David Coppa
The first bug was already reported three years ago: http://marc.info/?l=openbsd-bugs=135732012310459 std::ifstream has a bug when linked with libpthread: $ cat t1.cpp #include #include int main(void) { std::ifstream fin("/"); std::cout << (!fin ? "BUG" : "OK") << std::endl;