This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Can't compile 970929
- To: egcs at cygnus dot com
- Subject: Can't compile 970929
- From: Bob Glickstein <bobg at zanshin dot com>
- Date: Thu, 2 Oct 1997 17:04:27 -0700
- Organization: Zanshin Inc., Marin County, CA
- Reply-To: Bob Glickstein <bobg at zanshin dot com>
My platform is Linux 2.0.30, glibc 2.0.4, gcc 2.7.2.2. While
compiling libio, I get this error:
/space/bobg/src/extern/egcs-970929/gcc/xgcc -B/space/bobg/src/extern/egcs-970929/gcc/ -c -O2 -g -fvtable-thunks -fno-implicit-templates -I. -I. -nostdinc++ -D_IO_MTSAFE_IO fstream.cc
In file included from bits/libc-lock.h:1,
from libioP.h:31,
from fstream.cc:32:
/usr/include/libc-lock.h:124: syntax error before `;'
The offending line in libc-lock.h is
typedef pthread_key_t __libc_key_t;
At that point in the file, pthread_key_t is only defined if _LIBC is
defined, because of this at the beginning of libc-lock.h:
#ifdef _LIBC
#include <pthread.h>
...
and while compiling libio, _LIBC isn't defined.
Actually, this problem (or ones related to it) has kept me from
building the last three or four snapshots of egcs, but I didn't
mention it earlier because I thought I saw a discussion and resolution
of the problem go by on the mailing list. But apparently the problem
still exists.
Cheers.