[linux-sh:03177] Re: uclibc on sh3: Illegal instruction errors -- threading issue?

Erik Andersen <[email protected]> Wed, 25 Feb 2004 16:47:10 -0700
Newsgroups gmane.linux.ports.sh.general
Message-ID <[email protected]>
On Wed Feb 25, 2004 at 11:22:38PM +0100, H.Brunsting wrote:
> 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.

The current uClibc version in CVS has known shared library loader
issues (I know I have broken mips and arm).  I'm still working on
fixing that up.

> 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). 

Odd.  uClibc 0.9.26 should work fine...

> 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 notice you have not mentioned gcc and binutils at all.  Could
you share the details of your toolchain?  The fact you are
getting illegal instruction errors does case a bit of suspicion
on your toolchain.

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--