Created attachment 43207 [details] example build log Modern versions of libunwind include liblzma for decompressing compressed symbol tables. So when gcc is built with --with-system-libunwind, static links will fail because gcc is hardcoded to use "-lunwind" rather than the results of "pkg-config --libs --static libunwind". As a result, liblzma.a is not included when it should be. See https://buildd.debian.org/status/fetch.php?pkg=libdebug&arch=ia64&ver=0.5.2-2&stamp=1516055815&raw=0 for a full build log. The problem seems to stem from gcc/gcc.c:init_spec()
Usually --with-system-libunwind is only used on ia64 and no other target.
At least tangentially related, what's the reason only ia64 needs libunwind? What happens if gcc is built with --disable-libunwind-exceptions? I haven't been able to find a clear explanation regarding this anywhere.