*Hi all, I'm having a hard time trying to do what the title says.I was using yocto to create a qt4e-image and got an Internal compiler error | /home/pedro/poky/build/tmp/work-shared/gcc-4.6.3+svnr184847-r29/gcc-4_6-branch/libgcc/../gcc/libgcc2.c: In function '__negdi2':| /home/pedro/poky/build/tmp/work-shared/gcc-4.6.3+svnr184847-r29/gcc-4_6-branch/libgcc/../gcc/libgcc2.c:72:1: internal compiler error: Segmentation fault| Please submit a full bug report,* *Then i wanted to run gdb on xgcc but it didn't have debug symbols, so i added this to gcc-cross-initial.inc and gcc-cross-intermediate.inc*
*CFLAGS += "-g"* *And it actually generated the debug symbols but some variable were stripped by the -O2 optimization. * *( the error was found on line 86 on ira-conflicts, btw).* *I have not managed to remove the -O2, I've tried changing to CFLAGS += "-g -Og", but now it doesn't even generate a debug build :) So, before i mess it even more, i'd like to know what has to be done to properly create a debug-friendly xgcc. * *Thanks :)*
_______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto