* Same mipsel binary für 2.4 and 2.6 kernel possible?
@ 2008-09-19 7:58 Klatt Uwe
2008-09-19 9:42 ` [SPAM] " Markus Gothe
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Klatt Uwe @ 2008-09-19 7:58 UTC (permalink / raw)
To: 'linux-mips@linux-mips.org'
Hello,
I have a custom hardware (AU1100) with kernel 2.4 and an working binary using floats (compiled with gcc 3.3.5).
Now I am testing with kernel 2.6.
When I use the old binary, float math isn't working anymore.
I have to recompile the source with new gcc 4.1.2 but then the new binary is working only on kernel 2.6.
Can somebody give me some hints, how to chage settings for kernel 2.6 creation or compiler settings to generate an universal binary.
Thanks
Uwe
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [SPAM] Same mipsel binary für 2.4 and 2.6 kernel possible?
2008-09-19 7:58 Same mipsel binary für 2.4 and 2.6 kernel possible? Klatt Uwe
@ 2008-09-19 9:42 ` Markus Gothe
2008-09-19 10:34 ` Ralf Baechle
2008-09-19 13:28 ` Kevin D. Kissell
2 siblings, 0 replies; 6+ messages in thread
From: Markus Gothe @ 2008-09-19 9:42 UTC (permalink / raw)
To: Klatt Uwe; +Cc: 'linux-mips@linux-mips.org'
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Looks like the FPU-Emulator isn't working. Which kernel versions are
you using?
//Markus
Klatt Uwe wrote:
> Hello,
>
> I have a custom hardware (AU1100) with kernel 2.4 and an working binary
using floats (compiled with gcc 3.3.5).
> Now I am testing with kernel 2.6.
>
> When I use the old binary, float math isn't working anymore.
> I have to recompile the source with new gcc 4.1.2 but then the new
binary is working only on kernel 2.6.
>
> Can somebody give me some hints, how to chage settings for kernel 2.6
creation or compiler settings to generate an universal binary.
>
> Thanks
> Uwe
>
- --
_______________________________________
Mr Markus Gothe
Software Engineer
Phone: +46 (0)13 21 81 20 (ext. 1046)
Fax: +46 (0)13 21 21 15
Mobile: +46 (0)70 348 44 35
Diskettgatan 11, SE-583 35 Linköping, Sweden
www.27m.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFI03Pn6I0XmJx2NrwRCH4eAJwMWR2/SrFaWRJAWMul9sK/GvATdQCaAgmJ
LnzfYvUmO6mzyV5QMKtCmKs=
=dP4U
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Same mipsel binary für 2.4 and 2.6 kernel possible?
2008-09-19 7:58 Same mipsel binary für 2.4 and 2.6 kernel possible? Klatt Uwe
2008-09-19 9:42 ` [SPAM] " Markus Gothe
@ 2008-09-19 10:34 ` Ralf Baechle
2008-09-19 10:56 ` AW: " Klatt Uwe
2008-09-19 13:28 ` Kevin D. Kissell
2 siblings, 1 reply; 6+ messages in thread
From: Ralf Baechle @ 2008-09-19 10:34 UTC (permalink / raw)
To: Klatt Uwe; +Cc: 'linux-mips@linux-mips.org'
On Fri, Sep 19, 2008 at 09:58:29AM +0200, Klatt Uwe wrote:
> I have a custom hardware (AU1100) with kernel 2.4 and an working binary using floats (compiled with gcc 3.3.5).
> Now I am testing with kernel 2.6.
>
> When I use the old binary, float math isn't working anymore.
> I have to recompile the source with new gcc 4.1.2 but then the new binary is working only on kernel 2.6.
Are you using the kernel floating point emulator or a software floating
point library?
Whatever, it sounds like a bug. The kernel is supposed to be backward
compatible with old binaries.
Ralf
^ permalink raw reply [flat|nested] 6+ messages in thread
* AW: Same mipsel binary für 2.4 and 2.6 kernel possible?
2008-09-19 10:34 ` Ralf Baechle
@ 2008-09-19 10:56 ` Klatt Uwe
0 siblings, 0 replies; 6+ messages in thread
From: Klatt Uwe @ 2008-09-19 10:56 UTC (permalink / raw)
To: 'linux-mips@linux-mips.org'
Hello Ralf,
I link both binaries with -lm.
Could it be a problem with libc?
I will try to compile the new kernel with old compiler...
Bye
Uwe
> Are you using the kernel floating point emulator or a
> software floating
> point library?
>
> Whatever, it sounds like a bug. The kernel is supposed to be backward
> compatible with old binaries.
>
> Ralf
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Same mipsel binary für 2.4 and 2.6 kernel possible?
2008-09-19 7:58 Same mipsel binary für 2.4 and 2.6 kernel possible? Klatt Uwe
2008-09-19 9:42 ` [SPAM] " Markus Gothe
2008-09-19 10:34 ` Ralf Baechle
@ 2008-09-19 13:28 ` Kevin D. Kissell
2008-09-19 13:40 ` AW: " Klatt Uwe
2 siblings, 1 reply; 6+ messages in thread
From: Kevin D. Kissell @ 2008-09-19 13:28 UTC (permalink / raw)
To: Klatt Uwe; +Cc: 'linux-mips@linux-mips.org'
When you say "float math isn't working", what do you mean? When you say
that the new binary
only works with the 2.6 kernel, what do you mean? Are you getting bad
answers, or is the program
crashing? If it's crashing, and you run it under gdb, where is it
blowing up, and why? Are you able
to re-create the "old" binary? If you do a static link of the program
using the old tools,
does the resulting binary work better under 2.6?
The FPU emulator has bad some minor cleanup over the past few years, but
it's been pretty
stable, and I can't recall having seen any serious functional or
compatibility problems in a long
time. I think it's more likely that you've got a problem with libraries
and/or build procedures
for the application.
Regards,
Kevin K.
Klatt Uwe wrote:
> Hello,
>
> I have a custom hardware (AU1100) with kernel 2.4 and an working binary using floats (compiled with gcc 3.3.5).
> Now I am testing with kernel 2.6.
>
> When I use the old binary, float math isn't working anymore.
> I have to recompile the source with new gcc 4.1.2 but then the new binary is working only on kernel 2.6.
>
> Can somebody give me some hints, how to chage settings for kernel 2.6 creation or compiler settings to generate an universal binary.
>
> Thanks
> Uwe
>
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* AW: Same mipsel binary für 2.4 and 2.6 kernel possible?
2008-09-19 13:28 ` Kevin D. Kissell
@ 2008-09-19 13:40 ` Klatt Uwe
0 siblings, 0 replies; 6+ messages in thread
From: Klatt Uwe @ 2008-09-19 13:40 UTC (permalink / raw)
To: 'linux-mips@linux-mips.org'
Hello everybody,
> I think it's more likely that you've got a problem
> with libraries and/or build procedures
> for the application.
You are right!
It's a problem with shared libs.
When I link static everything works now.
Thank you for your patience.
Bye
Uwe
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-09-19 13:40 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-19 7:58 Same mipsel binary für 2.4 and 2.6 kernel possible? Klatt Uwe
2008-09-19 9:42 ` [SPAM] " Markus Gothe
2008-09-19 10:34 ` Ralf Baechle
2008-09-19 10:56 ` AW: " Klatt Uwe
2008-09-19 13:28 ` Kevin D. Kissell
2008-09-19 13:40 ` AW: " Klatt Uwe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox