This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
gcc-3.3 chokes on pthreads headers
- From: mramirez at iua dot upf dot es
- To: gcc-help at gcc dot gnu dot org
- Date: Sat, 24 May 2003 20:26:04 +0200 (CEST)
- Subject: gcc-3.3 chokes on pthreads headers
Hi,
I have just installed gcc-3.3 successfully, and I tried to re-compile
several C++ libraries I had built with gcc-2.95. Every time the compiler
stepped on some code using pthreads it choked.
As a proof of concept I tried to recompile the compiler with the new
version and I get the following error:
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.3/libiberty/../include -W
-Wall -Wtraditional -pedantic ../../gcc-3.3/libiberty/pexecute.c -o
pexecute.o
In file included from /usr/include/signal.h:358,
from /usr/include/sys/wait.h:30,
from ../../gcc-3.3/libiberty/pexecute.c:45:
/usr/include/bits/sigthread.h:36: error: storage class specified for
parameter `type name'
make[1]: *** [pexecute.o] Error 1
( gcc is a link to gcc-3.3 ).So I suppose I have not installed right gcc.
I configured the gcc distro with:
../gcc-3.3/configure --prefix=/usr --program-suffix=-3.3
--with-local-prefix=/usr --with-gnu-as --enable-threads=pthreads
--enable-languages=java,c,c++
and built with
make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2
-fno-implicit-templates' bootstrap
What I have done wrong? Should I also had updated binutils or something else?
Thanks a lot
Miguel.