* Errors in compiling gcc4.8.5 using gcc8.1.1
@ 2018-09-27 13:45 C.J.
2018-09-27 18:32 ` Toby Douglass
2018-09-28 12:03 ` Jonathan Wakely
0 siblings, 2 replies; 6+ messages in thread
From: C.J. @ 2018-09-27 13:45 UTC (permalink / raw)
To: gcc-help
Dear specialists,
I tried to compile gcc 4.8.5 using gcc 8.1.1.
First I added some lines to gcc-4.8.5/gcc/cp/cfns.{gperf,h} as somewhere
suggests.
19 #ifdef __GNUC__
20 __inline
21 #endif
22 static unsigned int hash (const char *, unsigned int);
23 #ifdef __GNUC__
24 __inline
25 #ifdef __GNUC_STDC_INLINE__
26 __attribute__ ((__gnu_inline__))
27 #endif
28 #endif
29 const char * libc_name_p (const char *, unsigned int);
Then I run "./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"
But, there are still some errors as below.
Fixed: X11/Xw32defs.h
Applying io_quotes_use to sys/mount.h
Applying io_quotes_use to sys/raw.h
Cleaning up unneeded directories:
fixincludes is done
echo timestamp > stmp-fixinc
make[3]: Leaving directory
'/home/rx/program/gcc-4.8.5/host-x86_64-unknown-linux-gnu/gcc'
make[2]: *** [Makefile:4157: all-stage1-gcc] 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
Am I still missing something? Thank you.
Regards,
Jianhao
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Errors in compiling gcc4.8.5 using gcc8.1.1
2018-09-27 13:45 Errors in compiling gcc4.8.5 using gcc8.1.1 C.J.
@ 2018-09-27 18:32 ` Toby Douglass
2018-09-28 12:03 ` Jonathan Wakely
1 sibling, 0 replies; 6+ messages in thread
From: Toby Douglass @ 2018-09-27 18:32 UTC (permalink / raw)
To: gcc-help
On 27/09/2018 15:38, C.J. wrote:
> Dear specialists,
Where?!!?
:-)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Errors in compiling gcc4.8.5 using gcc8.1.1
2018-09-27 13:45 Errors in compiling gcc4.8.5 using gcc8.1.1 C.J.
2018-09-27 18:32 ` Toby Douglass
@ 2018-09-28 12:03 ` Jonathan Wakely
[not found] ` <CACVGmPCgat-ewxAJ9PGFpydBvfVkUN4A3O+eiUcEfNAkwqV=CQ@mail.gmail.com>
1 sibling, 1 reply; 6+ messages in thread
From: Jonathan Wakely @ 2018-09-28 12:03 UTC (permalink / raw)
To: biocjh; +Cc: gcc-help
On Thu, 27 Sep 2018 at 14:39, C.J. <biocjh@gmail.com> wrote:
>
> Dear specialists,
>
> I tried to compile gcc 4.8.5 using gcc 8.1.1.
> First I added some lines to gcc-4.8.5/gcc/cp/cfns.{gperf,h} as somewhere
> suggests.
> 19 #ifdef __GNUC__
> 20 __inline
> 21 #endif
> 22 static unsigned int hash (const char *, unsigned int);
> 23 #ifdef __GNUC__
> 24 __inline
> 25 #ifdef __GNUC_STDC_INLINE__
> 26 __attribute__ ((__gnu_inline__))
> 27 #endif
> 28 #endif
> 29 const char * libc_name_p (const char *, unsigned int);
>
> Then I run "./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"
> But, there are still some errors as below.
>
> Fixed: X11/Xw32defs.h
> Applying io_quotes_use to sys/mount.h
> Applying io_quotes_use to sys/raw.h
> Cleaning up unneeded directories:
> fixincludes is done
> echo timestamp > stmp-fixinc
> make[3]: Leaving directory
> '/home/rx/program/gcc-4.8.5/host-x86_64-unknown-linux-gnu/gcc'
> make[2]: *** [Makefile:4157: all-stage1-gcc] 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
This is not the error, this is the end of the output that happens
after the error. We can't tell what's wrong from this.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Errors in compiling gcc4.8.5 using gcc8.1.1
[not found] ` <CACVGmPCgat-ewxAJ9PGFpydBvfVkUN4A3O+eiUcEfNAkwqV=CQ@mail.gmail.com>
@ 2018-09-29 18:16 ` Jonathan Wakely
2018-09-29 19:04 ` C.J.
0 siblings, 1 reply; 6+ messages in thread
From: Jonathan Wakely @ 2018-09-29 18:16 UTC (permalink / raw)
To: biocjh; +Cc: gcc-help
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Errors in compiling gcc4.8.5 using gcc8.1.1
2018-09-29 18:16 ` Jonathan Wakely
@ 2018-09-29 19:04 ` C.J.
2018-09-30 17:45 ` Jonathan Wakely
0 siblings, 1 reply; 6+ messages in thread
From: C.J. @ 2018-09-29 19:04 UTC (permalink / raw)
To: jwakely.gcc; +Cc: gcc-help
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@gmail.com> 于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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Errors in compiling gcc4.8.5 using gcc8.1.1
2018-09-29 19:04 ` C.J.
@ 2018-09-30 17:45 ` Jonathan Wakely
0 siblings, 0 replies; 6+ messages in thread
From: Jonathan Wakely @ 2018-09-30 17:45 UTC (permalink / raw)
To: biocjh; +Cc: gcc-help
On Sat, 29 Sep 2018 at 10:23, C.J. <biocjh@gmail.com> wrote:
>
> 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;
> ^
You need the same fix as I pointed you to in this reply:
https://gcc.gnu.org/ml/gcc-help/2018-09/msg00089.html
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-09-30 12:11 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-27 13:45 Errors in compiling gcc4.8.5 using gcc8.1.1 C.J.
2018-09-27 18:32 ` Toby Douglass
2018-09-28 12:03 ` Jonathan Wakely
[not found] ` <CACVGmPCgat-ewxAJ9PGFpydBvfVkUN4A3O+eiUcEfNAkwqV=CQ@mail.gmail.com>
2018-09-29 18:16 ` Jonathan Wakely
2018-09-29 19:04 ` C.J.
2018-09-30 17:45 ` Jonathan Wakely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).