problem compiling glibc 2.26 with gcc 7.1

Khem Raj raj.khem@gmail.com
Wed Aug 2 18:55:00 GMT 2017


On Wed, Aug 2, 2017 at 11:45 AM, Waldemar Brodkorb <wbx@openadk.org> wrote:
> Hi,
>
> I try to cross-compile latest glibc release 2.26 with binutils 2.28
> and gcc 7.1 to aarch64, but the compilation fails with this error:
> ./md-unwind-support.h: In function 'aarch64_fallback_frame_state':
> ./md-unwind-support.h:58:21: error: field 'uc' has incomplete type
>      struct ucontext uc;

you need a gcc backport
https://github.com/kraj/gcc/commit/5266910fed23d6d7f101a878dd8a28d178697ec5


>                      ^~
>
> The full log is here:
> https://debug.openadk.org/glibc/make.log
>
> It fails in the final gcc compilation step.
>
> Anyone have a gcc patch ready?
> Or do I make a mistake? Glibc 2.25 worked fine for me with the
> same gcc and binutils versions.
> I see similar issues with other architectures.
>
> best regards
>  Waldemar



More information about the Libc-alpha mailing list