c[ode]clap»Forums»some mingw gcc issues
2 posts
some mingw gcc issues
3 weeks, 3 days ago Edited by hiddenfrog on April 15, 2021, 3:24 p.m.
Hi, thanks for the debugger :)

There are some issues with newer versions of mingw gcc and g++ and codeclap.

Codeclap is not able to debug executables build with some newer versions of gcc and g++ under windows.

(ie. even some simple helloworld - 64bit build with debug infos)

(The mingw gdb's are working with the generated exe's)

For example:

-breakpoints not working
start with break at main - no break, it finish the program
start without break at main - stops at some address with assemblercode, message "main found in this program", when "run to main", progam ends

-no sourcecode view (ie. shift-ctrl-p main does not go to the main function - only to some address with assemblercode)

I tried the following:

Chris Wellons (nullprogram):

1.6.0 does not work
1.5.0 works

Brecht Sanders

gcc 11, 10.3, most 10.2 - not working
i found only one release working: GCC 10.2.0 + LLVM/Clang 11.0.0 + MinGW-w64 8.0.0 (release 5)

From the description the binutils are different: 2.35.x works, 2.36.x is not working with codeclap.

TDM-GCC are working, but is older, 9.2.0


installed some days ago, version 10.2.0 - does not work with codeclap

Please can you take a look at this problem, thanks.
147 posts / 1 project
some mingw gcc issues
3 weeks, 3 days ago
Thanks for collecting all these information.

Right now all the gcc/g++ tests on windows are compiled through msys2.
It is "gcc version 10.2.0" but you may have already found the problem as binutils is "mingw-w64-x86_64-binutils 2.34-3".

I don't think it is a good idea to also try to squeeze this into but after that I will definitely update everything to the newest version and see if I can reproduce this.
147 posts / 1 project
some mingw gcc issues
1 week, 5 days ago Edited by spx on April 27, 2021, 8:48 p.m.
I believe this will already be fixed with While adding the recently release clang 12 to all the tests I noticed the same problem when compiling with target x86_64-pc-windows-gnu.

Manually trying with w64devkit 1.6.0 the problem seems to be fixed as well.
2 posts
some mingw gcc issues
1 week, 1 day ago
I tried with w64devkit, winlibs and msys2 and now it works*, even with the new 11.1.0 from winlibs.

Thank you. :)


There is one problem:

with it works on my desktop pc with windows 10

but on my older netbook with windows 7 it does not work, its the same as version 0.9.7 with these newer compiler versions, only w64devkit 1.5.0 and tdm works with

Can there be some difference between win7 und 10 with your fix?
147 posts / 1 project
some mingw gcc issues
1 day, 4 hours ago
I just checked on windows 7 and the problem happens for me as well.
From what I have gathered so far it doesn't look related to the original issue. Will try to fix this for the next update.