|
gcc-3.3 chokes on pthreads headers: msg#00226gcc.help
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> |
|---|---|---|
| Previous by Date: | Re: Question about compiling some C++ code.: 00226, Wayne |
|---|---|
| Next by Date: | How to use gcc 2.96 compiled library with gcc 3.2: 00226, lucian |
| Previous by Thread: | Question about compiling some C++ code.i: 00226, Tim Musson |
| Next by Thread: | How to use gcc 2.96 compiled library with gcc 3.2: 00226, lucian |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |