Discussion:
Soft and hard float
Marcin Mielniczuk
2012-09-07 11:28:09 UTC
Permalink
Hi,

I was trying to run some N9 PR1.x apps and get segfaults. So I need to
solve several things out.
1) N9 PR is compiled with hard float and N900 has soft float, right?
2) Is there any way to run hard float software on soft float w/o recompile?

this may improve the compatiblity of meecolay

Thanks in advance
--
Marcin
Kaj-Michael Lang
2012-09-07 11:48:40 UTC
Permalink
Post by Marcin Mielniczuk
2) Is there any way to run hard float software on soft float w/o recompile?
Using a hardfp chroot.
--
Kaj-Michael Lang <***@tal.org>
Iván Gálvez Junquera
2012-09-07 12:01:36 UTC
Permalink
According to ARM
documentation<http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0041c/ch11s02s02.html>,
you shouldn't combine them. What I would like to know is if Harmattan
binaries are softfp or hardfp, as it seems that there is a mix of them, how
is it solved in Harmattan?

Long time ago I started a
thread<http://talk.maemo.org/showthread.php?t=75868>asking about
emulation of hardfp.

Regards
Post by Marcin Mielniczuk
Hi,
I was trying to run some N9 PR1.x apps and get segfaults. So I need to
solve several things out.
1) N9 PR is compiled with hard float and N900 has soft float, right?
2) Is there any way to run hard float software on soft float w/o recompile?
this may improve the compatiblity of meecolay
Thanks in advance
--
Marcin
_______________________________________________
maemo-developers mailing list
https://lists.maemo.org/mailman/listinfo/maemo-developers
--
Iván Gálvez Junquera
Marcin Mielniczuk
2012-09-07 12:11:06 UTC
Permalink
AFAIK, the PR bins are hardfp, but the store apps are mainly softfp. Why I
think so: PR bins segfault:

Program received signal SIGSEGV, Segmentation fault

0x00000000 in ?? ()

0x00000000:


So I guess it's hardfp thing.

But normal store apps run mainly ok (or at least don't segfault in
0x00000000)

I recall something like hardfp to softfp emulator in case of flash player
or something. Is this compile time only, or can we use it with a built app?

Regards,
--
Marcin
According to ARM documentation<http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0041c/ch11s02s02.html>,
you shouldn't combine them. What I would like to know is if Harmattan
binaries are softfp or hardfp, as it seems that there is a mix of them, how
is it solved in Harmattan?
Long time ago I started a thread<http://talk.maemo.org/showthread.php?t=75868>asking about emulation of hardfp.
Regards
Post by Marcin Mielniczuk
Hi,
I was trying to run some N9 PR1.x apps and get segfaults. So I need to
solve several things out.
1) N9 PR is compiled with hard float and N900 has soft float, right?
2) Is there any way to run hard float software on soft float w/o recompile?
this may improve the compatiblity of meecolay
Thanks in advance
--
Marcin
_______________________________________________
maemo-developers mailing list
https://lists.maemo.org/mailman/listinfo/maemo-developers
--
Iván Gálvez Junquera
Ивайло Димитров
2012-09-07 15:17:47 UTC
Permalink
flashplayer uses a wapper lib to convert softfp calling convention to hardfp. you may want to do the same :)
-------- Оригинално писмо --------
От: Marcin Mielniczuk
Относно: Re: Soft and hard float
До: Iván Gálvez Junquera
Изпратено на: Петък, 2012, Септември 7 15:11:06 EEST
Program received signal SIGSEGV, Segmentation fault0x00000000 in ?? () 0x00000000:     
So I guess it&#39;s hardfp thing.
But normal store apps run mainly ok (or at least don&#39;t segfault in 0x00000000)
I recall something like hardfp to softfp emulator in case of flash player or something. Is this compile time only, or can we use it with a built app? 
Regards,--Marcin
2012/9/7 Iván Gálvez Junquera
According to ARM documentation, you shouldn&#39;t combine them. What I would like to know is if Harmattan binaries are softfp or hardfp, as it seems that there is a mix of them, how is it solved in Harmattan?
Long time ago I started a thread asking about emulation of hardfp.
Regards
2012/9/7 Marcin Mielniczuk
Hi,
I was trying to run some N9 PR1.x apps and get segfaults. So I need to solve several things out.1) N9 PR is compiled with hard float and N900 has soft float, right?2) Is there any way to run hard float software on soft float w/o recompile?
this may improve the compatiblity of meecolay
Thanks in advance--Marcin
_______________________________________________
maemo-developers mailing list
https://lists.maemo.org/mailman/listinfo/maemo-developers
--
Iván Gálvez Junquera
Marcin Mielniczuk
2012-09-08 15:48:01 UTC
Permalink
Thanks,
Is the lib Adobe-written or is it something public?
How can we check whether an app is hardfp/softfp?
Btw. it's no rule that N9 apps are hardfp. I've successfully launched Nokia
Drive but only a splash is shown. I'll cover the details soon.
Regards,
--
Marcin
Post by Ивайло Димитров
flashplayer uses a wapper lib to convert softfp calling convention to
hardfp. you may want to do the same :)
-------- ОрОгОМалМП пОсЌП --------
От: Marcin Mielniczuk
ОтМПсМП: Re: Soft and hard float
ДП: Iván Gálvez Junquera
ИзпратеМП Ма: Петък, 2012, СептеЌврО 7 15:11:06 EEST
AFAIK, the PR bins are hardfp, but the store apps are mainly softfp. Why
Program received signal SIGSEGV, Segmentation fault0x00000000 in ??
So I guess it&#39;s hardfp thing.
But normal store apps run mainly ok (or at least don&#39;t segfault in
0x00000000)
I recall something like hardfp to softfp emulator in case of flash
player or something. Is this compile time only, or can we use it with a
built app?
Regards,--Marcin
2012/9/7 Iván Gálvez Junquera
According to ARM documentation, you shouldn&#39;t combine them. What I
would like to know is if Harmattan binaries are softfp or hardfp, as it
seems that there is a mix of them, how is it solved in Harmattan?
Long time ago I started a thread asking about emulation of hardfp.
Regards
2012/9/7 Marcin Mielniczuk
Hi,
I was trying to run some N9 PR1.x apps and get segfaults. So I need to
solve several things out.1) N9 PR is compiled with hard float and N900 has
soft float, right?2) Is there any way to run hard float software on soft
float w/o recompile?
this may improve the compatiblity of meecolay
Thanks in advance--Marcin
_______________________________________________
maemo-developers mailing list
https://lists.maemo.org/mailman/listinfo/maemo-developers
--
Iván Gálvez Junquera
Mohammad Abu-Garbeyyeh
2012-09-09 06:36:31 UTC
Permalink
Hi,

Splash screens are shown by invoker; an app could have crashed with the splash still showing.

--
Regards,
Mohammad Abu-Garbeyyeh
Post by Marcin Mielniczuk
Thanks,
Is the lib Adobe-written or is it something public?
How can we check whether an app is hardfp/softfp?
Btw. it's no rule that N9 apps are hardfp. I've successfully launched Nokia Drive but only a splash is shown. I'll cover the details soon.
Regards,
--
Marcin
flashplayer uses a wapper lib to convert softfp calling convention to hardfp. you may want to do the same :)
-------- ОрОгОМалМП пОсЌП --------
От: Marcin Mielniczuk
ОтМПсМП: Re: Soft and hard float
ДП: Iván Gálvez Junquera
ИзпратеМП Ма: Петък, 2012, СептеЌврО 7 15:11:06 EEST
So I guess it&#39;s hardfp thing.
But normal store apps run mainly ok (or at least don&#39;t segfault in 0x00000000)
I recall something like hardfp to softfp emulator in case of flash player or something. Is this compile time only, or can we use it with a built app?
Regards,--Marcin
2012/9/7 Iván Gálvez Junquera
According to ARM documentation, you shouldn&#39;t combine them. What I would like to know is if Harmattan binaries are softfp or hardfp, as it seems that there is a mix of them, how is it solved in Harmattan?
Long time ago I started a thread asking about emulation of hardfp.
Regards
2012/9/7 Marcin Mielniczuk
Hi,
I was trying to run some N9 PR1.x apps and get segfaults. So I need to solve several things out.1) N9 PR is compiled with hard float and N900 has soft float, right?2) Is there any way to run hard float software on soft float w/o recompile?
this may improve the compatiblity of meecolay
Thanks in advance--Marcin
_______________________________________________
maemo-developers mailing list
https://lists.maemo.org/mailman/listinfo/maemo-developers
--
Iván Gálvez Junquera
_______________________________________________
maemo-developers mailing list
https://lists.maemo.org/mailman/listinfo/maemo-developers
Marcin Mielniczuk
2012-09-09 06:57:38 UTC
Permalink
Hi,

This splash screen is a Qt one. It shows the Noka Drive icon and the
refresh icon.
It can't be an invoker-launched splash, as this port:
http://talk.maemo.org/showthread.php?t=85716 is faulty. I'll need to perror
a bit, and if you want, you may look into this maybe you'll find why 141
error code is returned.

If you'd like to, you may try Drive out by
LD_PRELOAD="/opt/meecolay/lib/libdsme_dbus_if.so.0.2.0:/opt/meecolay/lib/libbmeipc.so.0"
meecolay drive-qml
--
Marcin
Hi,
Splash screens are shown by invoker; an app could have crashed with the
splash still showing.
--
Regards,
Mohammad Abu-Garbeyyeh
Thanks,
Is the lib Adobe-written or is it something public?
How can we check whether an app is hardfp/softfp?
Btw. it's no rule that N9 apps are hardfp. I've successfully launched
Nokia Drive but only a splash is shown. I'll cover the details soon.
Regards,
--
Marcin
Post by Ивайло Димитров
flashplayer uses a wapper lib to convert softfp calling convention to
hardfp. you may want to do the same :)
-------- ОрОгОМалМП пОсЌП --------
От: Marcin Mielniczuk
ОтМПсМП: Re: Soft and hard float
ДП: Iván Gálvez Junquera
ИзпратеМП Ма: Петък, 2012, СептеЌврО 7 15:11:06 EEST
AFAIK, the PR bins are hardfp, but the store apps are mainly softfp.
Program received signal SIGSEGV, Segmentation fault0x00000000 in ??
So I guess it&#39;s hardfp thing.
But normal store apps run mainly ok (or at least don&#39;t segfault in
0x00000000)
I recall something like hardfp to softfp emulator in case of flash
player or something. Is this compile time only, or can we use it with a
built app?
Regards,--Marcin
2012/9/7 Iván Gálvez Junquera
According to ARM documentation, you shouldn&#39;t combine them. What I
would like to know is if Harmattan binaries are softfp or hardfp, as it
seems that there is a mix of them, how is it solved in Harmattan?
Long time ago I started a thread asking about emulation of hardfp.
Regards
2012/9/7 Marcin Mielniczuk
Hi,
I was trying to run some N9 PR1.x apps and get segfaults. So I need to
solve several things out.1) N9 PR is compiled with hard float and N900 has
soft float, right?2) Is there any way to run hard float software on soft
float w/o recompile?
this may improve the compatiblity of meecolay
Thanks in advance--Marcin
_______________________________________________
maemo-developers mailing list
https://lists.maemo.org/mailman/listinfo/maemo-developers
--
Iván Gálvez Junquera
_______________________________________________
maemo-developers mailing list
https://lists.maemo.org/mailman/listinfo/maemo-developers
Javier S. Pedro
2012-09-10 14:30:07 UTC
Permalink
Post by Marcin Mielniczuk
Thanks,
Is the lib Adobe-written or is it something public?
You cannot really write a "generic" soft<->hardfp (without PLT trickery)
bridge unless you plan to pre-specify the set of functions your hardfp
binaries will call.

Personally, I think that it would be easier for you to, instead of
contaminating Fremantle with lots of Harmattan-ABI-compatible libraries,
to just create a Harmattan chroot.
Post by Marcin Mielniczuk
How can we check whether an app is hardfp/softfp?
You'll find some pretty good explanations if you google a bit about
readelf and hardfp/softfp.

Javier.
Marcin Mielniczuk
2012-09-10 15:04:31 UTC
Permalink
Thanks!
--
Marcin
Post by Javier S. Pedro
Post by Marcin Mielniczuk
Thanks,
Is the lib Adobe-written or is it something public?
You cannot really write a "generic" soft<->hardfp (without PLT trickery)
bridge unless you plan to pre-specify the set of functions your hardfp
binaries will call.
Personally, I think that it would be easier for you to, instead of
contaminating Fremantle with lots of Harmattan-ABI-compatible libraries,
to just create a Harmattan chroot.
Post by Marcin Mielniczuk
How can we check whether an app is hardfp/softfp?
You'll find some pretty good explanations if you google a bit about
readelf and hardfp/softfp.
Javier.
_______________________________________________
maemo-developers mailing list
https://lists.maemo.org/mailman/listinfo/maemo-developers
Marcin Mielniczuk
2012-09-10 17:46:02 UTC
Permalink
Hardfp seems to not be the problem. I checked two apps segfaulting on 0x00000000 and 2 apps running ok.
readelf -A gives the same output (attatched) for all of them

The apps were: segfaulting MeegoQQ and AccuWeather (wxapp),
working allegro and QToDo.

What may cause the segfaults? filebox for N9 causes this kind of fault too. I'm using cssu testing (not thumb flavor)
--
Sent from my Nokia N900
Marcin
Javier S. Pedro
2012-09-10 20:42:37 UTC
Permalink
Post by Marcin Mielniczuk
Hardfp seems to not be the problem. I checked two apps segfaulting on
0x00000000 and 2 apps running ok.
readelf -A gives the same output (attatched) for all of them
The apps were: segfaulting MeegoQQ and AccuWeather (wxapp),
working allegro and QToDo.
What may cause the segfaults? filebox for N9 causes this kind of fault too.
I'm using cssu testing (not thumb flavor)
Note that the dynamic loader will happily link two binaries using hard
and softfp. Therefore, problems of this nature will seemingly appear
randomly, depending on where and when an app does floating point
calls. It does not matter if you link hard with softfp if neither is
doing any function call containing floating point parameters / return
types. As soon as one such call is made, then things MAY go wrong, and
in ways you'd never expect.

As usual when you approach the "undefined behavior" area, whatever you
experience might be caused by this, or might be caused by the phase of
the moon (aka something entirely different, unrelated, and often
totally unexpected :) ).

Javier.
Ивайло Димитров
2012-09-11 06:36:50 UTC
Permalink
You may want to capture some meaningful backtrace to help us find what is segfaulting. In order to do that you should install as many related -dbg packages as possible.
-------- Оригинално писмо --------
От: Marcin Mielniczuk
Относно: Re: Soft and hard float
Изпратено на: Понеделник, 2012, Септември 10 20:46:02 EEST
Hardfp seems to not be the problem. I checked two apps segfaulting on 0x00000000 and 2 apps running ok.
readelf -A gives the same output (attatched) for all of them
The apps were: segfaulting MeegoQQ and AccuWeather (wxapp),
&#32;working allegro and QToDo.
What may cause the segfaults? filebox for N9 causes this kind of fault too. I'm using cssu testing (not thumb flavor)
--
Sent from my Nokia N900
Marcin
Marcin Mielniczuk
2012-09-11 14:25:08 UTC
Permalink
How can I check whether anything which was linked is using hard float? As
everything I've seen in meecolay lib is using SP and DP HardFP use (as
normal maemo builds).

may the mismatch of thumb1 and thumb2 be the problem?
--
Marcin
Post by Ивайло Димитров
You may want to capture some meaningful backtrace to help us find what is
segfaulting. In order to do that you should install as many related -dbg
packages as possible.
-------- ОрОгОМалМП пОсЌП --------
От: Marcin Mielniczuk
ОтМПсМП: Re: Soft and hard float
ИзпратеМП Ма: ППМеЎелМОк, 2012, СептеЌврО 10 20:46:02 EEST
Hardfp seems to not be the problem. I checked two apps segfaulting on
0x00000000 and 2 apps running ok.
readelf -A gives the same output (attatched) for all of them
The apps were: segfaulting MeegoQQ and AccuWeather (wxapp),
&#32;working allegro and QToDo.
What may cause the segfaults? filebox for N9 causes this kind of fault
too. I'm using cssu testing (not thumb flavor)
--
Sent from my Nokia N900
Marcin
Loading...