This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: error when compiling gcc
- From: Andrew Haley <aph at redhat dot com>
- To: çæ <jiming at yafco dot com>, gcc-help at gcc dot gnu dot org
- Date: Thu, 30 Jul 2015 10:31:24 +0100
- Subject: Re: error when compiling gcc
- Authentication-results: sourceware.org; auth=none
- References: <55B9EB7C dot 2090202 at yafco dot com>
On 30/07/15 10:16, çæ wrote:
> I downloaded gcc-4.9.3, and wanted to compile it on my Centos 6.5
> box. I first intalled the prerequisites, isl-0.14, mpc-0.8.1, gmp-4.3.2,
> mpfr-2.4.2, and cloog-0.18.3, then I ran configure and specified the
> directory of the above packages. When I ran make, I got the following
> errors:
>
> ../../../libitm/config/linux/rwlock.cc: In member function âbool
> GTM::gtm_rwlock::write_lock_generic(GTM::gtm_thread*)â:
> ../../../libitm/config/linux/rwlock.cc:160:16: error: âtypeofâ was not
> declared in this scope
> != ~(typeof it->shared_state)0)
> ^
> ../../../libitm/config/linux/rwlock.cc:160:23: error: expected â)â
> before âitâ
> != ~(typeof it->shared_state)0)
> ^
> ../../../libitm/config/linux/rwlock.cc:176:5: error: expected â)â before
> â}â token
> }
> ^
>
>
> Anyone can help me out on this?
If I had to guess, I'd say that your bootstrap compiler was at fault.
What is it? "gcc -v"
Andrew.