Hi, I've been trying to set up pthreads. I ran the following on both the uClinux-2.4.x and uClinux-dist directories to put me in sync with the repository: cvs -d:pserver:anonymous@cvs.uclinux.org:/var/cvs login cvs -z3 update -Pd I then followed the directions in: http://mailman.uclinux.org/pipermail/uclinux-dev/2003-December/022840.html Has anyone used pthreads recently? I'm still getting the same error when I select the threaddemo application: mb-gcc -Os -g -fomit-frame-pointer -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/pc/r/r1/comis/uclinux_dev/uClinux_mbvanilla/uClinux-dist/lib/uClibc/inclu de -I/pc/r/r1/comis/uclinux_dev/uClinux_mbvanilla/uClinux-dist/lib/libm -I/pc/r/r1/comis/uclinux_dev/uClinux_mbvanilla/uClinux-dist/lib/libcrypt_old -I/pc/r/r1/comis/uclinux_dev/uClinux_mbvanilla/uClinux-dist -fno-builtin -mno-xl-soft-mul -mno-xl-soft-div -mxl-barrel-shift -I/pc/r/r1/comis/uclinux_dev/uClinux_mbvanilla/uClinux-dist/linux-2.4.x/incl ude -Wl,-elf2flt -nostartfiles /pc/r/r1/comis/uclinux_dev/uClinux_mbvanilla/uClinux-dist/lib/uClibc/lib/crt 0.o -nostdlib -L/pc/r/r1/comis/uclinux_dev/uClinux_mbvanilla/uClinux-dist/lib/uClibc/. -L/pc/r/r1/comis/uclinux_dev/uClinux_mbvanilla/uClinux-dist/lib/uClibc/lib -L/pc/r/r1/comis/uclinux_dev/uClinux_mbvanilla/uClinux-dist/lib/libm -L/pc/r/r1/comis/uclinux_dev/uClinux_mbvanilla/uClinux-dist/lib/libnet -L/pc/r/r1/comis/uclinux_dev/uClinux_mbvanilla/uClinux-dist/lib/libdes -L/pc/r/r1/comis/uclinux_dev/uClinux_mbvanilla/uClinux-dist/lib/libaes -L/pc/r/r1/comis/uclinux_dev/uClinux_mbvanilla/uClinux-dist/lib/libpcap -L/pc/r/r1/comis/uclinux_dev/uClinux_mbvanilla/uClinux-dist/lib/libssl -L/pc/r/r1/comis/uclinux_dev/uClinux_mbvanilla/uClinux-dist/lib/libcrypt_old -L/pc/r/r1/comis/uclinux_dev/uClinux_mbvanilla/uClinux-dist/lib/zlib -o thdm thdm.o -lpthread -lc /pc/r/r1/comis/uclinux_dev/usr/local/bin/../lib/gcc-lib/microblaze/2.95.3-4/ ./libgcc.a /pc/r/r1/comis/uclinux_dev/usr/local/bin/../lib/gcc-lib/microblaze/2.95.3-4/ ./../../../../microblaze/lib/libc_hard_shift.a -lc /pc/r/r1/comis/uclinux_dev/usr/local/bin/mb-ld.real: cannot find -lpthread make[2]: *** [thdm] Error 1 make[2]: Leaving directory `/pc/r/r1/comis/uclinux_dev/uClinux_mbvanilla/uClinux-dist/user/threaddemos' make[1]: *** [all] Error 2 make[1]: Leaving directory `/pc/r/r1/comis/uclinux_dev/uClinux_mbvanilla/uClinux-dist/user' make: *** [subdirs] Error 1 Note that when I applied the patch, I get the feedback below. Any suggestions would be greatly appreciated! Thanks, Chris [comis@talisker uClinux-dist]$ tar -xzf microblaze-pthreads.tar.gz [comis@talisker uClinux-dist]$ patch -p0 < microblaze-pthreads.patch patching file uClibc/extra/Configs/Config.microblaze Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file uClibc/extra/Configs/Config.microblaze.rej can't find file to patch at input line 24 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |Index: uClibc/extra/Configs/Config.microblaze.default |=================================================================== |RCS file: /var/cvs/uClinux-dist/uClibc/extra/Configs/Config.microblaze.default,v |retrieving revision 1.1.1.1 |diff -u -b -B -w -p -r1.1.1.1 Config.microblaze.default |--- uClibc/extra/Configs/Config.microblaze.default 2003/09/02 05:13:59 1.1.1.1 |+++ uClibc/extra/Configs/Config.microblaze.default 2003/12/01 01:25:48 -------------------------- File to patch: Skip this patch? [y] Skipping patch. 2 out of 2 hunks ignored patching file uClibc/libc/sysdeps/linux/microblaze/__longjmp.S Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file uClibc/libc/sysdeps/linux/microblaze/__longjmp.S.rej patching file uClibc/libc/sysdeps/linux/microblaze/clone.c Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 2 out of 2 hunks ignored -- saving rejects to file uClibc/libc/sysdeps/linux/microblaze/clone.c.rej patching file uClibc/libc/sysdeps/linux/microblaze/setjmp.S Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file uClibc/libc/sysdeps/linux/microblaze/setjmp.S.rej patching file uClibc/libc/sysdeps/linux/microblaze/syscall.c Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file uClibc/libc/sysdeps/linux/microblaze/syscall.c.rej patching file uClibc/libc/sysdeps/linux/microblaze/bits/setjmp.h Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file uClibc/libc/sysdeps/linux/microblaze/bits/setjmp.h.rej patching file uClibc/libc/sysdeps/linux/microblaze/sys/ptrace.h Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 2 out of 2 hunks ignored -- saving rejects to file uClibc/libc/sysdeps/linux/microblaze/sys/ptrace.h.rej patching file vendors/Insight/XC2V1K_Microblaze/config.uClibc Hunk #1 FAILED at 8. Hunk #2 FAILED at 18. 2 out of 2 hunks FAILED -- saving rejects to file vendors/Insight/XC2V1K_Microblaze/config.uClibc.rej [comis@talisker uClinux-dist]$
<<attachment: winmail.dat>>