Pthread Error

Ali Khan pak_jobs_tar_gz at yahoo.com
Mon Jan 9 10:20:12 UTC 2006


Hi.. Thanks for the reply.. As recommended I enabled pthread option under uClibc and selected gcc-3.4.4 from gcc options and compiled again by running " make".. Now i got the following error in file "strsignal.c".. Following are the last few lines showing error
 
+ top_builddir=.
 + CC=' /home/ali/test/buildroot/build_mipsel/staging_dir/bin/mipsel-linux-uclibc-gcc'
 + /bin/sh extra/scripts/gen_bits_syscall_h.sh
 + cmp include/bits/sysnum.h include/bits/sysnum.h.new
 + rm -f include/bits/sysnum.h.new
 make locale_headers
 make[2]: Entering directory `/home/ali/test/buildroot/toolchain_build_mipsel/uClibc'
 make[2]: Nothing to be done for `locale_headers'.
 make[2]: Leaving directory `/home/ali/test/buildroot/toolchain_build_mipsel/uClibc'
 make[2]: Entering directory `/home/ali/test/buildroot/toolchain_build_mipsel/uClibc'
   CC libc/string/strsignal.os
 libc/string/strsignal.c:42: error: `SIGHUP' undeclared here (not in a function)
 libc/string/strsignal.c:42: error: initializer element is not constant
 libc/string/strsignal.c:42: error: (near initialization for `sstridx[1]')
 libc/string/strsignal.c:43: error: `SIGINT' undeclared here (not in a function)
 libc/string/strsignal.c:43: error: initializer element is not constant
 libc/string/strsignal.c:43: error: (near initialization for `sstridx[2]')
 libc/string/strsignal.c:44: error: `SIGQUIT' undeclared here (not in a function)
 libc/string/strsignal.c:44: error: initializer element is not constant
 libc/string/strsignal.c:44: error: (near initialization for `sstridx[3]')
 libc/string/strsignal.c:45: error: `SIGILL' undeclared here (not in a function)
 libc/string/strsignal.c:45: error: initializer element is not constant
 libc/string/strsignal.c:45: error: (near initialization for `sstridx[4]')
 libc/string/strsignal.c:46: error: `SIGTRAP' undeclared here (not in a function)
 libc/string/strsignal.c:46: error: initializer element is not constant
 libc/string/strsignal.c:46: error: (near initialization for `sstridx[5]')
 libc/string/strsignal.c:47: error: `SIGIOT' undeclared here (not in a function)
 libc/string/strsignal.c:47: error: initializer element is not constant
 libc/string/strsignal.c:47: error: (near initialization for `sstridx[6]')
 libc/string/strsignal.c:48: error: `SIGBUS' undeclared here (not in a function)
 libc/string/strsignal.c:48: error: initializer element is not constant
 libc/string/strsignal.c:48: error: (near initialization for `sstridx[7]')
 libc/string/strsignal.c:49: error: `SIGFPE' undeclared here (not in a function)
 libc/string/strsignal.c:49: error: initializer element is not constant
 libc/string/strsignal.c:49: error: (near initialization for `sstridx[8]')
 libc/string/strsignal.c:50: error: `SIGKILL' undeclared here (not in a function)
 libc/string/strsignal.c:50: error: initializer element is not constant
 libc/string/strsignal.c:50: error: (near initialization for `sstridx[9]')
 libc/string/strsignal.c:51: error: `SIGUSR1' undeclared here (not in a function)
 libc/string/strsignal.c:51: error: initializer element is not constant
 libc/string/strsignal.c:51: error: (near initialization for `sstridx[10]')
 libc/string/strsignal.c:52: error: `SIGSEGV' undeclared here (not in a function)
 libc/string/strsignal.c:52: error: initializer element is not constant
 libc/string/strsignal.c:52: error: (near initialization for `sstridx[11]')
 libc/string/strsignal.c:53: error: `SIGUSR2' undeclared here (not in a function)
 libc/string/strsignal.c:53: error: initializer element is not constant
 libc/string/strsignal.c:53: error: (near initialization for `sstridx[12]')
 libc/string/strsignal.c:54: error: `SIGPIPE' undeclared here (not in a function)
 libc/string/strsignal.c:54: error: initializer element is not constant
 libc/string/strsignal.c:54: error: (near initialization for `sstridx[13]')
 libc/string/strsignal.c:55: error: `SIGALRM' undeclared here (not in a function)
 libc/string/strsignal.c:55: error: initializer element is not constant
 libc/string/strsignal.c:55: error: (near initialization for `sstridx[14]')
 libc/string/strsignal.c:56: error: `SIGTERM' undeclared here (not in a function)
 libc/string/strsignal.c:56: error: initializer element is not constant
 libc/string/strsignal.c:56: error: (near initialization for `sstridx[15]')
 libc/string/strsignal.c:62: error: `SIGCHLD' undeclared here (not in a function)
 libc/string/strsignal.c:62: error: initializer element is not constant
 libc/string/strsignal.c:62: error: (near initialization for `sstridx[17]')
 libc/string/strsignal.c:63: error: `SIGCONT' undeclared here (not in a function)
 libc/string/strsignal.c:63: error: initializer element is not constant
 libc/string/strsignal.c:63: error: (near initialization for `sstridx[18]')
 libc/string/strsignal.c:64: error: `SIGSTOP' undeclared here (not in a function)
 libc/string/strsignal.c:64: error: initializer element is not constant
 libc/string/strsignal.c:64: error: (near initialization for `sstridx[19]')
 libc/string/strsignal.c:65: error: `SIGTSTP' undeclared here (not in a function)
 libc/string/strsignal.c:65: error: initializer element is not constant
 libc/string/strsignal.c:65: error: (near initialization for `sstridx[20]')
 libc/string/strsignal.c:66: error: `SIGTTIN' undeclared here (not in a function)
 libc/string/strsignal.c:66: error: initializer element is not constant
 libc/string/strsignal.c:66: error: (near initialization for `sstridx[21]')
 libc/string/strsignal.c:67: error: `SIGTTOU' undeclared here (not in a function)
 libc/string/strsignal.c:67: error: initializer element is not constant
 libc/string/strsignal.c:67: error: (near initialization for `sstridx[22]')
 libc/string/strsignal.c:68: error: `SIGURG' undeclared here (not in a function)
 libc/string/strsignal.c:68: error: initializer element is not constant
 libc/string/strsignal.c:68: error: (near initialization for `sstridx[23]')
 libc/string/strsignal.c:69: error: `SIGXCPU' undeclared here (not in a function)
 libc/string/strsignal.c:69: error: initializer element is not constant
 libc/string/strsignal.c:69: error: (near initialization for `sstridx[24]')
 libc/string/strsignal.c:70: error: `SIGXFSZ' undeclared here (not in a function)
 libc/string/strsignal.c:70: error: initializer element is not constant
 libc/string/strsignal.c:70: error: (near initialization for `sstridx[25]')
 libc/string/strsignal.c:71: error: `SIGVTALRM' undeclared here (not in a function)
 libc/string/strsignal.c:71: error: initializer element is not constant
 libc/string/strsignal.c:71: error: (near initialization for `sstridx[26]')
 libc/string/strsignal.c:72: error: `SIGPROF' undeclared here (not in a function)
 libc/string/strsignal.c:72: error: initializer element is not constant
 libc/string/strsignal.c:72: error: (near initialization for `sstridx[27]')
 libc/string/strsignal.c:73: error: `SIGWINCH' undeclared here (not in a function)
 libc/string/strsignal.c:73: error: initializer element is not constant
 libc/string/strsignal.c:73: error: (near initialization for `sstridx[28]')
 libc/string/strsignal.c:74: error: `SIGIO' undeclared here (not in a function)
 libc/string/strsignal.c:74: error: initializer element is not constant
 libc/string/strsignal.c:74: error: (near initialization for `sstridx[29]')
 libc/string/strsignal.c:75: error: `SIGPWR' undeclared here (not in a function)
 libc/string/strsignal.c:75: error: initializer element is not constant
 libc/string/strsignal.c:75: error: (near initialization for `sstridx[30]')
 libc/string/strsignal.c:76: error: `SIGSYS' undeclared here (not in a function)
 libc/string/strsignal.c:76: error: initializer element is not constant
 libc/string/strsignal.c:76: error: (near initialization for `sstridx[31]')
 libc/string/strsignal.c:78: error: `SIGEMT' undeclared here (not in a function)
 libc/string/strsignal.c:78: error: initializer element is not constant
 libc/string/strsignal.c:78: error: (near initialization for `sstridx[32]')
 make[2]: *** [libc/string/strsignal.os] Error 1
 make[2]: Leaving directory `/home/ali/test/buildroot/toolchain_build_mipsel/uClibc'
 make[1]: *** [lib/libc.so.0] Error 2
 make[1]: Leaving directory `/home/ali/test/buildroot/toolchain_build_mipsel/uClibc'
 make: *** [/home/ali/test/buildroot/toolchain_build_mipsel/uClibc/lib/libc.a] Error 2
 
 
 
 Waiting for Ur reply..Thanks in advance..
 
 
 
 
 "Peter S. Mazinger" <ps.m at gmx.net> wrote: On Fri, 6 Jan 2006, Ali Khan wrote:

> Hi .. Im a newbie and dont know much about buildroot infact im using it first time.. My target processor is "mipsel".. I have pasted in bold the error i got..
>     
>  -------------------------------------------------------------------------------------------------------------------
>  In file included from ./gthr-default.h:1,
>                     from /home/ali/test/buildroot/toolchain_build_mipsel/gcc-3.4.2/gcc/gthr.h:96,
>                     from /home/ali/test/buildroot/toolchain_build_mipsel/gcc-3.4.2/gcc/unwind-dw2.c:42:
>    /home/ali/test/buildroot/toolchain_build_mipsel/gcc-3.4.2/gcc/gthr-posix.h:43:21: pthread.h: No such file or directory

Have you disabled pthread support in uClibc? this would explain that you 
miss pthread. haven't checked if this case is supported by buildroot (it 
needs some changes for gcc as well.
Could you also try gcc-3.4.4/5 if the failure is the same?

Peter

-- 
Peter S. Mazinger 
           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2





			
---------------------------------
Yahoo! Photos
 Got holiday prints? See all the ways to get quality prints in your hands ASAP.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/uclibc/attachments/20060109/8f435ad2/attachment-0002.htm 


More information about the uClibc mailing list