User forums > Help

Strange error when debugging

<< < (2/3) > >>

oBFusCATed:
http://tdm-gcc.tdragon.net/

Krice:
It's some kind of gcc for Code::Blocks? Last updated 2015. Anyway, I noticed there are other versions of gcc for Windows so why not try. There is mingw-w64 which has an installer for Windows. Changed the compiler and debugger paths in Code::Blocks and it works. Well, other than a strange warning message the compiler is giving to one of its own include files:


--- Code: ---C:/Program Files (x86)/mingw-w64/i686-7.1.0-posix-dwarf-rt_v5-rev2/mingw32/i686-w64-mingw32/include/intrin.h:59:23: note: previous declaration of 'unsigned int __builtin_ia32_crc32qi(unsigned int, unsigned char)'
   extern unsigned int __builtin_ia32_crc32qi (unsigned int, unsigned char);
                       ^~~~~~~~~~~~~~~~~~~~~~
<built-in>: warning: redundant redeclaration of 'unsigned int __builtin_ia32_crc32hi(unsigned int, short unsigned int)' in same scope [-Wredundant-decls]

--- End code ---

Maybe you should use warning options in your own builds, gcc dudes.

Krice:
Also tried the official mingw package. The debugger has the I: bug, but the compiler doesn't have redundant-decl warning. First I tried to copy-paste the debugger from mingw-w64 to mingw, but it seems the w64 version is very different and it's asking for a python .dll which is missing when you move the .exe. So w64 dudes are using python in programming gcc and gdb. That's wrong in so many ways, but then I realized I can point the compiler to mingw official and debugger to w64 version.

I never realized that Windows version of gcc was in such a low state. These people don't seem to know what they are doing.

oBFusCATed:

--- Quote from: Krice on September 07, 2017, 08:17:48 am --- So w64 dudes are using python in programming gcc and gdb. That's wrong in so many ways...

--- End quote ---
Ranting without having an idea about things or without doing a quick search to educate yourself; doesn't look good in the others eyes.

https://sourceware.org/gdb/onlinedocs/gdb/Python.html#Python
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Developer_Guide/debuggingprettyprinters.html


--- Quote from: Krice on September 07, 2017, 08:17:48 am ---I never realized that Windows version of gcc was in such a low state. These people don't seem to know what they are doing.

--- End quote ---
Ranting here is a waste of time...

Krice:

--- Quote from: oBFusCATed on September 07, 2017, 09:30:41 am ---Ranting here is a waste of time...
--- End quote ---

I'm not so sure about it. After all you do have Code::Blocks version with mingw. It should be important to make sure it stays decent. There has been some reports about random people trying to take over open source projects and ruin them (possibly without bad intentions but just being bad programmers). Didn't Linus Torvalds himself go into rage mode when some people tried to do something shady to linux core? These things happen, because open source is not protected from changes. I think include files in compiler packages should be double checked for any problems whatsoever. Back like ten years ago we still had rock rolid quality in compilers and IDEs. Visual Studio 2010 was the last good version, then it started to go downhill.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version