Re: error when compiling gcc

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

 



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 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