Hi,

I my quest trying to get a working mingw32ce version under win32 mingw (is
someone interested by my (trivial) changes to the build-mingw32ce.sh
script?) I had a small problem.

I noticed that any program compiled with -g makes LD fail with a win32
exception dialog. The exception code is 0xC0...05 which I believe is a
segfault or null pointer access tentative. The faulting AppName is ld.exe
and the faulting ModName is msvcrt.dll.

The latest toolchain, that produces the bug, is at:
http://www.unsads.com/~squalyl/cegcc/mingw32ce-4.1-20100125.zip

Simplest test case:

#include <windows.h>
int APIENTRY WinMain(HINSTANCE inInstance, HINSTANCE inPrevInst, LPWSTR
inCmdLine, int inCmdShow)
{
    MessageBoxW(NULL, L"hello", L"hello", MB_ICONINFORMATION);
    return 0;
}

compiles fine under linux with both
arm-mingw32ce-gcc test.c -o test.exe
and
arm-mingw32ce-gcc -g test.c -o test.exe

But with my toolchain, cross compiled from linux to mingw32msvc, the second
line fails.

How can I use ./configure magic to generate a toolchain compiled with -g so
that I can run it under gdb and provide a stack trace?

Apart from that, the toolchain is quite comfortable to use, for example with
code::blocks. What could prevent it from being an official build?

I did not try gcc 4.4. Is this code stable enough to build from the current
svn? I'll try that tomorrow.

Regards
Sebastien
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to