This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [newbee] trouble compiling gcc 3.3
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: Sami Potirca <spotirca at softwin dot ro>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 8 Jul 2003 09:50:58 -0700
- Subject: Re: [newbee] trouble compiling gcc 3.3
- References: <2127490949.20030708181050@softwin.ro>
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