This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: error when compiling gcc


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.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]