[uClibc]PThreads Compile Error Using gcc-3.2

Michael Shuler mike at bwsys.net
Tue Sep 24 17:04:06 UTC 2002


I'm running RedHat 7.3 and updated gcc to the rawhide gccs and glibc.  It compiled fine with
gcc-2.96 that came with RedHat 7.3 but I wanted to use the toolchains.  Going back to gcc-2.95
seemed like it would be step backwards so I went to gcc-3.2.  The errors I'm getting I guessing are
a problem with gcc-3.2 but I was wondering of there is some "magic" setting that needs to be made
for it to work?  If I set threads to false in the Config file it compiles without any errors.  Any
help would be appreciated. 

Thanks,
Mike

make[2]: Entering directory `/software/WISP-DIST2/uClibc/uClibc-0.9.15/libpthread/linuxthreads'
gcc -Wall -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -Os -march=i386
-mpreferred-stack-boundary=2 -falign-functions=1 -falign-jumps=0 -falign-loops=0 -fno-builtin
-nostdinc  -I../../include -iwithprefix include -I. -D_LIBC  -DNDEBUG  -fPIC
-I../../libpthread/linuxthreads/sysdeps/unix/sysv/linux
-I../../libpthread/linuxthreads/sysdeps/pthread -I../../libpthread/linuxthreads/sysdeps/unix/sysv
-I../../libpthread/linuxthreads/sysdeps/unix/unix -I../../libpthread/linuxthreads/sysdeps/i386
-I../../libpthread/linuxthreads/sysdeps -I../../libc/sysdeps/linux/i386 -c attr.c -o attr.o
In file included from attr.c:25:
../../include/pthread.h:163: parse error before "__thread"
../../include/pthread.h:163: `pthread_create' declared as function returning a function
../../include/pthread.h:163: warning: function declaration isn't a prototype
../../include/pthread.h:163: parse error before "void"
../../include/pthread.h:588: storage class specified for parameter `type name'
In file included from ../../include/pthread.h:652,
                 from attr.c:25:
../../include/bits/sigthread.h:36: storage class specified for parameter `type name'
make[2]: *** [attr.o] Error 1
make[2]: Leaving directory `/software/WISP-DIST2/uClibc/uClibc-0.9.15/libpthread/linuxthreads'
make[1]: *** [_dir_linuxthreads] Error 2
make[1]: Leaving directory `/software/WISP-DIST2/uClibc/uClibc-0.9.15/libpthread'
make: *** [_dir_libpthread] Error 2



More information about the uClibc mailing list