This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problems installing gcc-3.3


Hi,

I have built and installed on my system gcc-3.3 successfully, or so it
seemed, but when I tried to re-build several C++ libraries I stepped on
errors compiling the /usr/include/pthread.h header file. The error itself,
as reported by the compiler is:

/usr/include/pthread.h:163: error: parse error before `__thread'
/usr/include/pthread.h:165: error: `pthread_create' declared as function
   returning a function
/usr/include/pthread.h:166: error: parse error before `void'
/usr/include/pthread.h:591: error: storage class specifiers invalid in
   parameter declarations
/usr/include/pthread.h:591: error: storage class specified for parameter `
   parameter']
/usr/include/bits/sigthread.h:36: error: storage class specifiers invalid in
   parameter declarations
/usr/include/bits/sigthread.h:36: error: storage class specified for
parameter
   `parameter'

I configured gcc-3.3 with:
../gcc-3.3/configure --prefix=/usr --program-suffix=-3.3
--with-local-prefix=/usr --with-gnu-as --enable-languages=java,c,c++

built it with:
make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2
-fno-implicit-templates' bootstrap

and finally installed with:
make install

All these operations were performed being the superuser, and no related
warnings or errors appeared.

My system is a Debian Woody GNU/Linux. I have not updated either glibc nor
gcc until now ( so I am making quite a lenghty jump ).

What I have done wrong? Do I have to install a newer version of glibc? I
have been scouring google searching for people with a similar problem (
i.e. the same compile error ) and I have found mentioned something about a
gcc make rule called install-non-fixed-includes or something similar...

Thanks a lot,

Miguel.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]