GDB error: Selected architecture i386 is not compatible with reported target architecture i386:x86-64
OK, the gdb installation on my machine was screwed. There's no chance anyone could imagine it. I moved to another machine and everything is good now.