User forums > Using Code::Blocks

[Solved]Problem with svn 12446

<< < (3/6) > >>

gd_on:
I think it's a problem in relation with the gcc version on Windows. With gcc 8.1, 64 bits, as used by Killerbot or M. Gimenez, it's OK.
I use myself gcc 10.3, in mingw64 (so 64 bits) included with msys2 distribution. I had already some problems with this (but gcc 10.2) : problem with .chm files (now solved) or problem in filent.c (patch proposed in ticket 1086, but still not integrated in official version because need some verifications with other compilers) apparently caused by a wrong length of some pointers. gcc 8.1 seems to have no problems with this (but I think there is an error), but gcc 10.3 is more strict with that may be.
I'm triing to compile C::B in different configurations to try to better understand what happens.

gd_on:
Well : here are two new RPT files.
The first one is compiled with giving -g as cb_release_type value. The second one by simply giving a space in that value (so no optimisations). My previous rpt was obtained with -O2.
Looking in those new versions, I see that the error does not seem to come from the same part of code, but from a sort.
More, in the -g version, I see a pointer to a wxIntPtr, but I'm not able to determine if it has the right length (a right click on it in newfromtemplatedlg.cpp does not give me it's declaration, though I suppose it's in wx/types.h). But those files are not recent, so I don't see why it's a problem now, and not before may 9th !

oBFusCATed:
Please use a debugger.
Also for unoptimized builds please use -g -O0. Looking at builds which doesn't have -g is a waste of time.
The I'm not 100% what are default optimization levels in GCC, so I wouldn't count on them being unoptimized/debugable.

gd_on:
I continued my investigations by triing a few compilers, particularly those found on winlibs.
The last version which gives me a working C::B version (at least for this problem), even for svn 12446, is : build version gcc-10.2.0-mingw-w64-8.0.0-r5.
Starting with build version gcc-10.2.0-mingw-w64-8.0.0-r6, I have problems, even with older svn version of C::B. So the problem does not come from squirrel update.
The only difference between these 2 versions concern Gnu Binutils : switch from 2.35.1 to 2.36.
This was also with these versions I had a previous problem (solved for me in filent.c and discussed in https://forums.codeblocks.org/index.php/topic,24363.msg166172.html#msg166172).
Problem exist also with gcc 11.1 as found on winlibs, but also with gcc 10.3 as found with msys2.
I hope this will give some clues to debug C::B by itself. But this is for C::B gurus, not for me  :(

gd_on:
I also tried the new TDM compiler version based on gcc 10.3 in 64 bits. The problem is the same. No differences if I use svn 12458.
More, the executable codeblocks.exe is considered as containing a virus by my McAfee antivirus software >:(. A false positive, surely. Though I can tell McAfee to ignore this file, it's annoying.
I also tried to debug C::B, but without success : I can't identify the real problem :-[

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version