Package: libunwind-dev I was trying to build mesa in raspbian and the build environment happened to have libunwind-dev installed and mesa tried to use it, resulting in a build failure.
../../../../src/gallium/auxiliary/util/u_debug_stack.c:114:4: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘asm’ unw_getcontext(&context); Some discussion on #dri-devel on freenode and some local testing revealed that unw_getcontext is broken when building on arm with -std=c99 , building a trivial test file fails with the same error the mesa build failed with. The trivial test file is given below. #include <libunwind.h> void test(void) { unw_context_t context; unw_getcontext(&context); } There is apparently a patch for this at http://patchwork.ozlabs.org/patch/783462/ but I have not tested said patch.