Skip to contentSkip to conversation

Compiling glibc-2.3.2 (debian) on mpc8xx ;-)

DISCUSSION Wolfgang Denk 1 participant 1 message Mar 9, 2004 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 6 lines · In message <[email protected]> you wrote:
Quoted 3 lines

You have just created a bunch of incompatibilities here. You cannot use binaries and shared libraries that don't fit to each other.

I know. Strange thing is: it kinda works fine... until you hit code with calles to FP-related functions in the library. For example the following does

No. it does not work at all fine. It just does not crash immediately, and some errors my be subtle and go through unnoticed.

Quoted 1 line

The math works fine, but printf screws up.

You re just lucky and working on a slightly loaded system if this appears to be fine.

Quoted 3 lines

Another observation: while "ps aux" shows correct percentage numbers (FP I assume), "top" shows only "nan" values for CPU and memory. Any explanation to why "ps" works fine? I haven't looked at the sources yet.

I don't care. What you see is undefined behaviour, and you know that.

Quoted 6 lines
Quoted 2 lines

floating point. Oh yes, there is the FP emulation in the kernel. But this has never been working reliably.

Wow! That sounds strong! How comes that? What are we waiting to get it working better? I assume the emulation on this processor works similar to the 386 through exception handling, am I right?

You are right.

Simply: it does  not  make  sense  to  spend  effort  in  fixing  the
remainingproblems   since   this   is  so  awafully  slow  and  using

-msoft-float on bianries and libraries is a mauch better way to deal with the FP problem.

Quoted 1 line

Can I leave the patches involving FP-stuff out and rely on emulation? I guess

IMHO you cannot rely on the emulation at all. It never wroked reliably in our tests.

Quoted 3 lines

not for what you said earlier, but if the emulation worked well enough, whouldn't that be enough? Of course it will be slow as hell, but speed is not as important as actually running the code.

If "running" the code includes a certain level of reliability I would not try to do that.

Best regards,

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] Winners never talk about glorious victories. That's because they're the ones who see what the battlefield looks like afterwards. It's only the losers who have glorious victories.
- Terry Pratchett, _Small Gods_

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/