Well, I have never seen that. If I don't link with -lpthread, in tells
me in can't find the pthread function calls I made. Don.
On 5/2/06, Lovik, Mark A <> wrote:
About the pThread problem
I teach operating systems at UIS. We just finished a section on
pthreads in class. One of the quirks of using the ptheads library
using gcc is it will compile without warnings when the pthreads
library is not included. When this happens the executable runs
but no threads are created or generated. The thread portion is
ignored. This upsets students, because they get no feedback on
the problem.
If you link explicitly to the pthreads library
-lpthread
the code will compile and now run the threading portion.
I suspect the debugger was seeing this behavior.
Mark Lovik
-----Original Message-----
From: on behalf of Frank Pagliughi
Sent: Tue 5/2/2006 10:33 AM
To:
Subject: [ts-7000] gcc 4.x cross compiler
Hey all,
I just uploaded scripts to compile gcc-4.0.2 using the latest
crosstools-0.42. I've successfully built C, C++, Java, and gdb on both
Linux (FC4) and cygwin.
I matched glibc and Linux headers to what were already on the board
(glibc-2.3.2 & linux-2.4.26). I was also able to build this compiler
version against the default Linux 2.6.15 kernel and with different
versions of glibc.
Just download crosstools-0.42 tarball from kegel.com/crosstool, unpack
it, then untar the scripts I provided into the same directory. Then
just run "arm9tdmi.sh"
I built it on several host systems, but the latest FC5 wouldn't build
Java. If I removed "java" from arm9tdmi.sh it built everything else ok.
This version of gdbserver is also compatible with the latest
Insight-0.64, which I was able to build under Linux (but not cygwin -
yet). You can get that from sourceware.org/insight.
I've tested the C & C++ compilers, but not Java yet. Everything seems
to work well, but I am unable to debug pthreads. When I create a new
thread the debugger doesn't see it, and if I set a breakpoint in the
thread I get a SIGTRAP and the debugger stops working.
If anyone knows how to get this working, please let me know. Thanks
I'll try to post the prebuilt chains somewhere within the next few days.
Frank Pagliughi
SPONSORED LINKS
* To unsubscribe from this group, send an email to:
SPONSORED LINKS
YAHOO! GROUPS LINKS
- Visit your group "ts-7000" on the web.
- To unsubscribe from this group, send an email to:
=Unsubscribe
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
-- Dr. Don W. Carr J. G. Montenegro 2258 Guadalajara, Mexico +52-333-630-0704 +52-333-836-4500 ext 2930
SPONSORED LINKS
YAHOO! GROUPS LINKS
- Visit your group "ts-7000" on the web.
- To unsubscribe from this group, send an email to:
=Unsubscribe
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|