parse error before "__thread" compiling glibc-2.2.5 with gcc-3.3
Jeremy McNicoll
jeremy@mcnicoll.ca
Wed May 28 05:39:00 GMT 2003
>
> Sigh. I tried building glibc-2.2.5 with gcc-3.3 for sh4, but
> it failed with error
> sh4-linux/include/pthread.h:163: error: parse error before
> "__thread". This is a known issue; Andreas Schwab <schwab at
> suse dot de> wrote in
> http://gcc.gnu.org/ml/gcc-help/2003-03/msg00167.html
> that it is fixed in the latest glibc.
Heres what I did to fix it so I can continue to use 2.2.5
$> perl -pi -e s'/__thread/__thread_param/'
../glibc-2.2.5/linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h
$> perl -pi -e s'/__thread/__thread_param/'
../glibc-2.2.5/linuxthreads/sysdeps/pthread/pthread.h
Hope this works. It does for me.
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list