Add: MACHINE = "qemux86-64" DEBUG_BUILD = "1" to conf/local.conf And (optionally) add: require conf/multilib.conf MULTILIBS = "multilib:lib32" DEFAULTTUNE_virtclass-multilib-lib32 = "x86" to local.conf $ bitbake puzzles TARNAME=\"puzzles\" -DPACKAGE_VERSION=\"rNNNN\" -DPACKAGE_STRING=\"puzzles\ rNNNN\" -DPACKAGE_BUGREPORT=\"anakin@pobox.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"puzzles\" -DVERSION=\"rNNNN\" -I. -I././ -I./icons/ -pthread -I/buildarea/lyang1/testdebug/tmp/sysroots/qemux86-64/usr/include/gtk-2.0 -I/buildarea/lyang1/testdebug/tmp/sysroots/qemux86-64/usr/lib64/gtk-2.0/include -I/buildarea/lyang1/testdebug/tmp/sysroots/qemux86-64/usr/include/pango-1.0 -I/buildarea/lyang1/testdebug/tmp/sysroots/qemux86-64/usr/include/atk-1.0 -I/buildarea/lyang1/testdebug/tmp/sysroots/qemux86-64/usr/include/cairo -I/buildarea/lyang1/testdebug/tmp/sysroots/qemux86-64/usr/include/pixman-1 -I/buildarea/lyang1/testdebug/tmp/sysroots/qemux86-64/usr/include/libpng16 -I/buildarea/lyang1/testdebug/tmp/sysroots/qemux86-64/usr/include/gdk-pixbuf-2.0 -I/buildarea/lyang1/testdebug/tmp/sysroots/qemux86-64/usr/include/libpng16 -I/buildarea/lyang1/testdebug/tmp/sysroots/qemux86-64/usr/include/pango-1.0 -I/buildarea/lyang1/testdebug/tmp/sysroots/qemux86-64/usr/include/harfbuzz -I/buildarea/lyang1/testdebug/tmp/sysroots/qemux86-64/usr/include/pango-1.0 -I/buildarea/lyang1/testdebug/tmp/sysroots/qemux86-64/usr/include/glib-2.0 -I/buildarea/lyang1/testdebug/tmp/sysroots/qemux86-64/usr/lib64/glib-2.0/include -I/buildarea/lyang1/testdebug/tmp/sysroots/qemux86-64/buildarea/lyang1/testdebug/tmp/sysroots/qemux86-64/usr/include/freetype2 -I/buildarea/lyang1/testdebug/tmp/sysroots/qemux86-64/usr/include/freetype2 -O -fno-omit-frame-pointer -g -feliminate-unused-debug-types -pipe -Wall -Werror -ansi -pedantic -c -o mines.o `test -f '././mines.c' || echo './'`././mines.c ././gtk.c: In function 'configure_area': ././gtk.c:397:2: error: 'cr' may be used uninitialized in this function [-Werror=maybe-uninitialized] cairo_set_source_rgb(cr, ^ ././gtk.c:384:14: note: 'cr' was declared here cairo_t *cr; Note, it works well without debug build.
Merged into master: commit ffb4933475e3214f103d9db98f6a71b60640b215 Author: Hongxu Jia <hongxu.jia@windriver.com> Date: Mon Aug 11 12:39:53 2014 +0800 puzzles: fix do_compile failed when DEBUG_BUILD There were compiling failure with option -g -O ... ././gtk.c: In function 'configure_area': ././gtk.c:397:2: error: 'cr' may be used uninitialized in this function [-Werror=maybe-uninitialized] cairo_set_source_rgb(cr, ^ ././gtk.c:384:14: note: 'cr' was declared here cairo_t *cr; ^ ././gtk.c: In function 'main': ././gtk.c:2911:6: error: 'error' may be used uninitialized in this function [-Werror=maybe-uninitialized] fprintf(stderr, "%s: %s\n", pname, error); ^ cc1: all warnings being treated as errors ... Initialized the pointers 'cr' and 'error' with NULL [YOCTO #6410] (From OE-Core rev: 2281180499cf3bec5c7e75cb596725dab190f72c)