I need to compile glib2 including debug info to generate a backtrace about Gnome Shell crashes. The process fails, i get these errors:

tap-driver.sh: internal error getting exit status
tap-driver.sh: fatal: I/O or internal error
make[8]: *** [Makefile:4455: appinfo.log] Error 1
make[8]: Leaving directory '/home/stalker/glib2/repos/core-x86_64/src/glib/gio/tests'
make[7]: *** [Makefile:3814: check-TESTS] Error 2
make[7]: Leaving directory '/home/stalker/glib2/repos/core-x86_64/src/glib/gio/tests'
make[6]: *** [Makefile:4554: check-am] Error 2
make[6]: Leaving directory '/home/stalker/glib2/repos/core-x86_64/src/glib/gio/tests'
make[5]: *** [Makefile:3598: check-recursive] Error 1
make[5]: Leaving directory '/home/stalker/glib2/repos/core-x86_64/src/glib/gio/tests'
make[4]: *** [Makefile:4557: check] Error 2
make[4]: Leaving directory '/home/stalker/glib2/repos/core-x86_64/src/glib/gio/tests'
make[3]: *** [Makefile:4478: check-recursive] Error 1
make[3]: Leaving directory '/home/stalker/glib2/repos/core-x86_64/src/glib/gio'
make[2]: *** [Makefile:4789: check] Error 2
make[2]: Leaving directory '/home/stalker/glib2/repos/core-x86_64/src/glib/gio'
make[1]: *** [Makefile:1278: check-recursive] Error 1
make[1]: Leaving directory '/home/stalker/glib2/repos/core-x86_64/src/glib'
make: *** [Makefile:1735: check] Error 2
==> ERROR: An error ocurred in check().

Any idea what is the problem?