This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: parse error before "__thread" compiling glibc-2.2.5 with gcc-3.3


Jeremy McNicoll wrote:
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

With that info, I was able to retrieve the patch from cvs. Thanks! The next issue I ran into was that gcc-3.3 doesn't like multiline string literals like in sysdeps/sh/elf/initfini.c. Guess I get to apply

http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sysdeps/sh/elf/initfini.c.diff?r1=1.4&r2=1.5&cvsroot=glibc

Looks like I may need to take another look at the patches in the
.src.rpm's for the sh-linux project toolchain, too.
- Dan

--
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045


------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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