[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] recent pthread application



Hi John,

Sorry for the delayed reply - comments below:

Christopher John Comis wrote:
> 	
> 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

> Note that when I applied the patch, I get the feedback below.  Any
> suggestions would be greatly appreciated!

The pthreads support is there in CVS already - although it looks like 
you found that when you tried to apply the patch!

Anyway I found the problem - you need to adjust the default uClibc 
configuration file to enable thread support:

edit the file uClinux-dist/vendors/XXX/YYY/config.uClibc

where xxx and yyy are probably Insight and mbvanilla_net respectively, 
or whatever target you have selected.

In the file, change the line

# UCLIBC_HAS_THREADS is not set

to

UCLIBC_HAS_THREADS=y

Then delete the file uClibc-dist/uClibc/.config

make menuconfig, select Customize Vendor/User settings, save, exit,

In the vendor/user menuconfig, make no changes, just exit and save, this 
will cause the default uClibc config to be updated.

Then just make dep, make etc etc

Hopefully it should all be working now!  I'll make sure this is fixed by 
default in the next release of the dist.

Cheers,

John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/