error when compiling gcc

纪明 jiming@yafco.com
Thu Jul 30 09:16:00 GMT 2015


Hi,

     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?

Thanks,
Jim



More information about the Gcc-help mailing list