Re: Errors in compiling gcc4.8.5 using gcc8.1.1

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

 



I tried ran *** make STAGE1_CFLAGS="-O2 -g -std=gnu89" STAGE1_CXXFLAGS="-O2
-g -std=gnu++98" ***, but there were still errors as below.

In file included from ../.././libgcc/unwind-dw2.c:405:0:
./md-unwind-support.h: In function ‘x86_64_fallback_frame_state’:
./md-unwind-support.h:65:47: error: dereferencing pointer to incomplete type
       sc = (struct sigcontext *) (void *) &uc_->uc_mcontext;
                                               ^
make[3]: *** [../.././libgcc/shared-object.mk:14: unwind-dw2.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory
'/home/rx/program/gcc-4.8.5/x86_64-unknown-linux-gnu/libgcc'
make[2]: *** [Makefile:15571: all-stage1-target-libgcc] Error 2
make[2]: Leaving directory '/home/rx/program/gcc-4.8.5'
make[1]: *** [Makefile:19785: stage1-bubble] Error 2
make[1]: Leaving directory '/home/rx/program/gcc-4.8.5'
make: *** [Makefile:886: all] Error 2



Jonathan Wakely <jwakely.gcc@xxxxxxxxx> 于2018年9月28日周五 下午10:30写道:

> On Fri, 28 Sep 2018 at 15:18, C.J. wrote:
> >
> > Hi Jonathan,
> >
> > I tried again with source code without modification.
> > First, I ran "./configure --prefix=/home/rx/program/gcc-4.8.5/build
> --with-gmp=/home/rx/program/gmp-6.1.0
> --with-mpfr=/home/rx/program/mpfr-3.1.4 --disable-multilib
> --enable-languages=c,c++,fortran --disable-stage1-checking"
>
> Firstly, read https://gcc.gnu.org/wiki/InstallingGCC
>
> > And then, I ran "make"
> > At the end of output, there is some error as below. The whole output
> file is attached to this mail.
> > Is there any solution to this question? Thank you!
>
> Instead of just "make" try:
>   make STAGE1_CFLAGS="-O2 -g -std=gnu89" STAGE1_CXXFLAGS="-O2 -g
> -std=gnu++98"
>
> You probably also want to add -j2 or -j4 to that command, depending
> how many CPU cores your machine has.
>


-- 
Best regards!
C.J.




[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