logo       

gcc-3.3 chokes on pthreads headers: msg#00226

gcc.help

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.




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise