[linux-sh:03176] uclibc on sh3: Illegal instruction errors -- threading issue?
"H.Brunsting" <[email protected]> Wed, 25 Feb 2004 23:22:38 +0100
| Newsgroups | gmane.linux.ports.sh.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, I have been trying to get a working shared uclibc environment on sh3 (exact cpu: SH7709(A), HP 690/680/620LX/660LX) for a while now, but so far I have been unsuccessful. The CVS version of the uclibc toolchain can not produce any working executables at all, every program segfaults. I have also built a toolchain with the stable version (0.9.26), it can produce working executables, but if I try to run a shell (busybox ash or bash) I get an illegal instruction error (static or dynamic doesn't make a difference). The strange thing is, I also built strace, file and some other apps, and they seem to run fine. I can also run pretty much all busybox executables, except the shells, which terminate with the error. I tried to debug busybox by inserting printf lines, I've had ambiguous results, making me expect it has something to do with threading. I've run the uclibc test apps, it fails on ex7 of the pthread tests, the setjpm test also fails, somewhat confirming my suspicion. I tried building without pthread support, but this didn't help (I recompiled busybox between the different versions). I've asked in #uclibc on irc.freenode.net, they told me to ask someone more familiar with sh3. So here it is, my cry for help: if anyone knows what's going on, or even if anyone managed to get uclibc running on sh3, please let me know. I've provided strace output for busybox and the tests, and the source for both the test files, if they're of any use. Sincerely, Henk Brunsting