Re: Building gcc6.3.0 on Ubuntu-20.04

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 18 Aug 2020 at 09:29, Stefan Ring via Gcc-help
<gcc-help@xxxxxxxxxxx> wrote:
>
> On Mon, Aug 17, 2020 at 2:08 PM Mohana <s18002@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
> >
> > Hello,
> >
> > make[5]: Leaving directory
> > '/home/mohana/gccbuild/x86_64-pc-linux-gnu/32/libgcc'
> >
> > make[4]: *** [Makefile:1161: multi-do] Error 1
> >
> > make[4]: Leaving directory
> > '/home/mohana/gccbuild/x86_64-pc-linux-gnu/libgcc'
> >
> > make[3]: *** [Makefile:120: all-multi] Error 2
> >
> > make[3]: *** Waiting for unfinished jobs....
> >
> > make[3]: Leaving directory
> > '/home/mohana/gccbuild/x86_64-pc-linux-gnu/libgcc'
> >
> > make[2]: *** [Makefile:20436: all-stage1-target-libgcc] Error 2
> >
> > make[2]: Leaving directory '/home/mohana/gccbuild'
> >
> > make[1]: *** [Makefile:25715: stage1-bubble] Error 2
> >
> > Any leads will be highly appreciated!
>
> You should show the actual error, which seems to be this:
>
> make[5]: Entering directory '/home/build/gcbuild/x86_64-pc-linux-gnu/32/libgcc'
> # If this is the top-level multilib, build all the other
> # multilibs.
> /home/build/gcbuild/./gcc/xgcc -B/home/build/gcbuild/./gcc/
> -B/home/build/gcc6/x86_64-pc-linux-gnu/bin/
> -B/home/build/gcc6/x86_64-pc-linux-gnu/lib/ -isystem
> /home/build/gcc6/x86_64-pc-linux-gnu/include -isystem
> /home/build/gcc6/x86_64-pc-linux-gnu/sys-include    -g -O2 -m32 -O2
> -g -O2 -DIN_GCC    -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual
> -Wno-format -Wstrict-prototypes -Wmissing-prototypes
> -Wold-style-definition  -isystem ./include   -fpic -mlong-double-80
> -DUSE_ELF_SYMVER -g -DIN_LIBGCC2 -fbuilding-libgcc
> -fno-stack-protector   -fpic -mlong-double-80 -DUSE_ELF_SYMVER -I. -I.
> -I../../.././gcc -I../../../../gcc-6.3.0/libgcc
> -I../../../../gcc-6.3.0/libgcc/. -I../../../../gcc-6.3.0/libgcc/../gcc
> -I../../../../gcc-6.3.0/libgcc/../include
> -I../../../../gcc-6.3.0/libgcc/config/libbid
> -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS  -DUSE_TLS -o unwind-dw2.o
> -MT unwind-dw2.o -MD -MP -MF unwind-dw2.dep -fexceptions -c
> ../../../../gcc-6.3.0/libgcc/unwind-dw2.c -fvisibility=hidden
> -DHIDE_EXPORTS
> In file included from ../../../../gcc-6.3.0/libgcc/unwind-dw2.c:401:0:
> ./md-unwind-support.h: In function 'x86_fallback_frame_state':
> ./md-unwind-support.h:141:18: error: field 'uc' has incomplete type
>   struct ucontext uc;
>                   ^~
> make[5]: *** [../../../../gcc-6.3.0/libgcc/shared-object.mk:14:

This GCC code was actually not following the relevant standards and
was broken by a change in glibc when glibc got stricter.

You can fix it by replacing "struct ucontext" with "ucontext_t" in the
relevant files.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux