[Mingw-w64-public] Segfault when -flto, -static, -O used together (GCC 4.8.1)

2013-06-26 Thread angelsl
Hi, On Windows x86_64 host, targeting x86_64, a segfault occurs when -flto, -static and any -O are used together; details are as follows. > #include > > int main() { > std::cout << std::endl; > } > D:\>g++ -flto -static -Og -g test.cpp > > D:\>gdb a > GNU gdb (GDB) 7.6 > Copyright (C) 2013

Re: [Mingw-w64-public] segfault

2013-04-04 Thread Ruben Van Boxem
Ruben > > > > > ------ > *From:* Ruben Van Boxem > *To:* mingw-w64-public@lists.sourceforge.net > *Sent:* Thursday, April 4, 2013 9:15 AM > *Subject:* Re: [Mingw-w64-public] segfault > > 2013/4/4 Ahso Aa > > Thanks Ruben. Now I se

Re: [Mingw-w64-public] segfault

2013-04-04 Thread Ahso Aa
@lists.sourceforge.net Sent: Thursday, April 4, 2013 11:43 AM Subject: Re: [Mingw-w64-public] segfault 2013/4/4 Ahso Aa Ruben thanks, rebuilt with mingw32 and 64. -32 works fine and in dependency walker I only see msvcrt.dll. (no more msvcr80.dll) Should I be fine with that to not need redist anymore? Yes

Re: [Mingw-w64-public] segfault

2013-04-04 Thread Ruben Van Boxem
l > > > > -- > *From:* Ruben Van Boxem > *To:* mingw-w64-public@lists.sourceforge.net > *Sent:* Wednesday, April 3, 2013 6:29 PM > *Subject:* Re: [Mingw-w64-public] segfault > > Op 3 apr. 2013 18:21 schreef "Ahso Aa" het volgen

Re: [Mingw-w64-public] segfault

2013-04-04 Thread Ahso Aa
bject: Re: [Mingw-w64-public] segfault 2013/4/4 Ahso Aa Thanks Ruben. Now I see in a dependency dll from curl that it uses msvcr80.dll. That's VS2008? Could I most easily resolve that by downloading VC2008 and compile my stuff with that > >and /MT flag? >Or what do you sugge

Re: [Mingw-w64-public] segfault

2013-04-04 Thread Ruben Van Boxem
e bottom there's 64-bit MinGW-w64 binaries). This might not be related to the segfault though... Ruben > Many thanks again > Michael > > > > -- > *From:* Ruben Van Boxem > *To:* mingw-w64-public@lists.sourceforge.net > *Sent:* We

Re: [Mingw-w64-public] segfault

2013-04-03 Thread Ahso Aa
chael From: Ruben Van Boxem To: mingw-w64-public@lists.sourceforge.net Sent: Wednesday, April 3, 2013 6:29 PM Subject: Re: [Mingw-w64-public] segfault Op 3 apr. 2013 18:21 schreef "Ahso Aa" het volgende: > > > > The MSVC++ DLL's are also ABI incompatible am

Re: [Mingw-w64-public] segfault

2013-04-03 Thread Ruben Van Boxem
Op 3 apr. 2013 18:21 schreef "Ahso Aa" het volgende: > > > > The MSVC++ DLL's are also ABI incompatible among versions. Even Service Packs break ABI compatibility. > > sigh...I'm a happy Linux user but need to support Windows...of course. > > How to see the toolchain? I remember to have seen (vc b

Re: [Mingw-w64-public] segfault

2013-04-03 Thread Ahso Aa
The MSVC++ DLL's are also ABI incompatible among versions. Even Service Packs break ABI compatibility. sigh...I'm a happy Linux user but need to support Windows...of course. How to see the toolchain? I remember to have seen (vc build?) in dependency walker msvcpd80.dll or alike. Would that

Re: [Mingw-w64-public] segfault

2013-04-03 Thread Ruben Van Boxem
w64-public@lists.sourceforge.net" < > mingw-w64-public@lists.sourceforge.net> > *Sent:* Wednesday, April 3, 2013 2:54 PM > *Subject:* Re: [Mingw-w64-public] segfault > > On Wed, Apr 3, 2013 at 6:08 AM, Ahso Aa wrote: > > > Can you try a 32-bit MinGW-w64, recompile ever

Re: [Mingw-w64-public] segfault

2013-04-03 Thread Ahso Aa
? From: NightStrike To: "mingw-w64-public@lists.sourceforge.net" Sent: Wednesday, April 3, 2013 2:54 PM Subject: Re: [Mingw-w64-public] segfault On Wed, Apr 3, 2013 at 6:08 AM, Ahso Aa wrote: > Can you try a 32-bit MinGW-w64, recompile everything, and see if you hit the > same

Re: [Mingw-w64-public] segfault

2013-04-03 Thread NightStrike
On Wed, Apr 3, 2013 at 6:08 AM, Ahso Aa wrote: > Can you try a 32-bit MinGW-w64, recompile everything, and see if you hit the > same problem? > > How, only add -m32 to compiler options? > Thanks That only works if you are using a multilib compiler, which you are probably not using. Instead, you

Re: [Mingw-w64-public] segfault

2013-04-03 Thread Earnie Boyd
On Wed, Apr 3, 2013 at 6:08 AM, Ahso Aa wrote: >> Are all dependencies compiled with the same toolchain? > > No I don't think so > Then this is the most likely candidate of issue. ABI differences can and will cause you problems. -- Earnie -- https://sites.google.com/site/earnieboyd

Re: [Mingw-w64-public] segfault

2013-04-03 Thread Teemu Nätkinniemi
On Wed, Apr 3, 2013 at 2:48 PM, Ahso Aa wrote: > I've recompiled with the new gdbinit but still the same. Also tried with > -m32 and 32bit libs but it says skipping incompatible libs. > Thanks > > -- > Microsoft Windows [Version 6.0.6002] > Copyright (c) 2006 Microsoft Corporation. Alle Rec

Re: [Mingw-w64-public] segfault

2013-04-03 Thread Ahso Aa
I've recompiled with the new gdbinit but still the same. Also tried with -m32 and 32bit libs but it says skipping incompatible libs. Thanks -- Microsoft Windows [Version 6.0.6002] Copyright (c) 2006 Microsoft Corporation. Alle Rechte vorbehalten.   C:\Users\michael>f:   F:\>cd X*o   F:\X-

Re: [Mingw-w64-public] segfault

2013-04-03 Thread Alexpux
03.04.2013, в 14:13, Alexpux написал(а):03.04.2013, в 14:08, Ahso Aa написал(а):Hi RubenIf you could provide a sensible backtrace (gdb command "bt") that would help.pasted belowAre all dependencies compiled with the same toolchain? No I don't think soCan you t

Re: [Mingw-w64-public] segfault

2013-04-03 Thread Alexpux
03.04.2013, в 14:08, Ahso Aa написал(а): > Hi Ruben > If you could provide a sensible backtrace (gdb command "bt") that would help. > > pasted below > > Are all dependencies compiled with the same toolchain? > > No I don't think so > > Can you try a 32-bit MinGW-w64, recompile everything, an

Re: [Mingw-w64-public] segfault

2013-04-03 Thread Ahso Aa
Hi Ruben If you could provide a sensible backtrace (gdb command "bt") that would help. pasted below Are all dependencies compiled with the same toolchain? No I don't think so Can you try a 32-bit MinGW-w64, recompile everything, and see if you hit the same problem? How, only add -m32 to co

Re: [Mingw-w64-public] segfault

2013-04-03 Thread Ruben Van Boxem
MinGW-w64, recompile everything, and see if you hit the same problem? Ruben > > > > > -- > *From:* Ruben Van Boxem > *To:* mingw-w64-public@lists.sourceforge.net > *Sent:* Wednesday, April 3, 2013 7:54 AM > *Subject:* Re: [Mingw-w64-

Re: [Mingw-w64-public] segfault

2013-04-03 Thread Ahso Aa
/MinGW-64-bit (recommended 64bit package) So anything I could try? Thanks From: Ruben Van Boxem To: mingw-w64-public@lists.sourceforge.net Sent: Wednesday, April 3, 2013 7:54 AM Subject: Re: [Mingw-w64-public] segfault Op 3 apr. 2013 07:41 schreef "Ah

Re: [Mingw-w64-public] segfault

2013-04-02 Thread Ruben Van Boxem
Op 3 apr. 2013 07:41 schreef "Ahso Aa" het volgende: > > Hi > it works with mingw32 on Vista64 or on Linux/gcc 32 and 64bit. But with mingw64 I get: > a segmentation fault at IMG_Load: > > static int LoadGLTex(char *pFileName, int TextureId) > { > SDL_Surface* image = IMG_Load(pFileName); > > Any

[Mingw-w64-public] segfault

2013-04-02 Thread Ahso Aa
Hi  it works with mingw32 on Vista64 or on Linux/gcc 32 and 64bit. But with mingw64 I get: a segmentation fault at IMG_Load: static int LoadGLTex(char *pFileName, int TextureId) { SDL_Surface* image = IMG_Load(pFileName); Any help on what to change? Many thanks Mike

[Mingw-w64-public] Segfault in legitimate (?) code

2011-02-04 Thread Ruben Van Boxem
Hi, I'm having some trouble with my personal project I develop using mingw-w64. I tried different compiler versions (sezero's 4.4 and 4.5, and the november mingw autobuild). All segfault, at the same spot in libstdc++-v3 (gdb info from sezero's 4.4 build seemed to provide the most information): P