Okay, here are some more details.  My host pc is running Ubuntu with a
2.6 kernel.  My target is with the uClinux 2.4 kernel.  The glibc
library with my distribution is 2.2.5.  I tried forcing the build of
glibc with the object files for manager.c from a previous working build
- this did not fix my problem.  The problem seems to be that the very
first thread created will return a thread_t handle of 0x402 and yet the
call to pthread_self will return 0x400.  All other threads seem just
fine.  Is threading not stable for the ixp420 in the 2.4 kernel?  Am I
better off with the 2.6 kernel and a newer toolchain?  Are there known
issues with stability with threads in the 2.4 kernel and linuxthreads? 

Robert Daniels

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert Daniels
Sent: Tuesday, March 18, 2008 5:24 PM
To: [email protected]
Subject: [uClinux-dev] pthread library not compiling correctly.

I've got the snapgear-3.2.0 distribution and I moved my code to a new
machine.  I'm using the arm-linux toolchain for the IXP420.  Things seem
mostly okay, except now when I rebuild the distribution the pthread
library is not the same as the old even though my tool chain and
distribution are exactly the same.  For some reason the manager.c file
generates different code on my new machine in the pthread_create_handle
function and others.  It seems weird that all the other files in the
pthread library generate exactly the same code except for this one.
This difference is causing problems in my application - for some reason
the pthread_equal function doesn't work right anymore - probably related
to the pthread_create_handle function being different.  Anyone got any
clues of where to look?

Robert Daniels
Vantage Controls, Inc.

_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to