Discussion:
Problem on Raspberry Pi
Sven Oliver Moll
2014-06-22 14:07:06 UTC
Permalink
Hello,

I've run into trouble trying to get gatling running on a Raspberry Pi
compiled using dietlibc.

During compilation, I get these two errors.

arm/__longjmp.S:14: Error: selected processor does not support ARM mode `lfm
f4,4,[ip],#48'

arm/setjmp.S:24: Error: selected processor does not support ARM mode `sfm
f4,4,[ip],#48'

If I comment them out, I get to the point of a compiled gatling that starts,
but fails to deliver a webpage.


Greetings,
SvOlli
--
| _______ |
| ( /\ | If there Is a God, YOU are an AUTHORIZED REPRESENTATIVE.
|__)v\/lli a.k.a.| Do whatever you deem necessary and appropriate.
|Sven Oliver Moll| -- Ken Williams
Thorsten Glaser
2014-06-23 07:47:02 UTC
Permalink
Post by Sven Oliver Moll
During compilation, I get these two errors.
=20
arm/__longjmp.S:14: Error: selected processor does not support ARM mode `=
lfm
Post by Sven Oliver Moll
f4,4,[ip],#48'
=20
arm/setjmp.S:24: Error: selected processor does not support ARM mode `sfm
f4,4,[ip],#48'
The Debian package has got a fix for that. These are basically
floating point state save/restore instructions, and you need a
switch (softfp/hardfp, and which CPU, 4 branches in total) for
this (go thank ARM for being so incompatible).

(This code path is exercised by mksh, so I made it work on all
Debian architectures.)
Post by Sven Oliver Moll
If I comment them out, I get to the point of a compiled gatling that star=
ts,
Post by Sven Oliver Moll
but fails to deliver a webpage.
Well duh, what did you expect? =E2=80=9CIf I remove the "add" instruction,
I get a calculator that works, but fails to add two numbers.=E2=80=9D

bye,
//mirabilos
--=20
=C2=ABMyISAM tables -will- get corrupted eventually. This is a fact of life=
=2E =C2=BB
=E2=80=9Cmysql is about as much database as ms access=E2=80=9D =E2=80=93 =
=E2=80=9CMSSQL at least descends
from a database=E2=80=9D =E2=80=9Cit's a rebranded SyBase=E2=80=9D =E2=80=
=9CMySQL however was born from a
flatfile and went downhill from there=E2=80=9D =E2=80=93 =E2=80=9Cat least =
jetDB doesn=E2=80=99t claim to
be a database=E2=80=9D=09=E2=80=A3=E2=80=A3=E2=80=A3 Please, http://deb.li/=
mysql and MariaDB, finally die!
Enrico Scholz
2014-06-23 10:08:34 UTC
Permalink
Post by Thorsten Glaser
Post by Sven Oliver Moll
arm/__longjmp.S:14: Error: selected processor does not support ARM mode `lfm
f4,4,[ip],#48'
This should be fixed in recent CVS, isn't it?
Post by Thorsten Glaser
Post by Sven Oliver Moll
arm/setjmp.S:24: Error: selected processor does not support ARM mode `sfm
f4,4,[ip],#48'
The Debian package has got a fix for that. These are basically
floating point state save/restore instructions, and you need a
switch (softfp/hardfp, and which CPU, 4 branches in total) for
this (go thank ARM for being so incompatible).
ARM is not an exception regarding coprocessor registers and situation
how to proceed with floating point is unclear. E.g. x86-64 code does
not restore[1] floating point registers at all (neither dietlibc, nor
glibc-2.18)



Enrico

Footnotes:
[1] see https://github.com/ensc/dietlibc/blob/master/test/sigsetjmp.c
testprogram

Continue reading on narkive:
Loading...