It seems that dwarf.h was probably not included in the tarball, and the build fails without it:
builder/builder-utils.c:27:19: fatal error: dwarf.h: No such file or directory
As the licenses of xdg-app and libdwarf are not compatible (xdg-app is LGPLv2+, libdwarf is LGPLv2.1 only), it's probably easier to request a path to the header in configure.
Created attachment 121984 [details] [review]
search for dwarf.h in configure