[newbee] trouble compiling gcc 3.3

Janis Johnson janis187@us.ibm.com
Tue Jul 8 17:13:00 GMT 2003


On Tue, Jul 08, 2003 at 06:10:50PM +0300, Sami Potirca wrote:
> Hello,
> I am trying to compile gcc 3.3 on a slackware 8.1 (gcc 2.95.3, glibc
> 2.2.5) as a cross compiler for s390-linux.
> 
[snip]
>
> In file included from ../../gcc-3.3/gcc/gthr-posix.h:37,
>                  from gthr-default.h:1,
>                  from ../../gcc-3.3/gcc/gthr.h:98,
>                  from ../../gcc-3.3/gcc/unwind-dw2.c:28:
> /usr/local/s390-linux/include/pthread.h:163: error: parse error before "__thread"
> 
> 
> 
> 
> My final question is what am I doing wrong ?

glibc 2.2.5 has several function declarations that use __thread as a
parameter name, but in GCC 3.3 __thread is a keyword.  You can modify
the glibc header files to replace __thread with something else; since
they are only used as parameter names in prototypes it doesn't matter
what you change them to.

Janis



More information about the Gcc mailing list