The compilation process stops with the following error message: ./md-unwind-support.h: In function 'x86_64_fallback_frame_state': ./md-unwind-support.h:65:47: error: dereferencing pointer to incomplete type 'struct ucontext' sc = (struct sigcontext *) (void *) &uc_->uc_mcontext; ^~ make[3]: Leaving directory `/disk2/build/gcc-7.1.0-build/x86_64-pc-linux-gnu/libgcc' make[3]: *** [unwind-dw2.o] Error 1 make[2]: Leaving directory `/disk2/build/gcc-7.1.0-build' make[2]: *** [all-target-libgcc] Error 2 make[1]: Leaving directory `/disk2/build/gcc-7.1.0-build' make[1]: *** [all] Error 2
This might already be fixed for 7.2.0.
Perfect. I'll try to build gcc-7.2-RC-20170802
Yes, I think that part works now.
*** Bug 81775 has been marked as a duplicate of this bug. ***
Fixed by r249731 on trunk and r249956 on gcc-7-branch
Any chance of the fix being backported to the 6 branch, for the 6.5 release?
The fix was backported to gcc-6-branch in r249957 and to gcc-5-branch in r249958. So it's included in gcc-5.5.0 and will be included in gcc-6.5.0.