[sr-dev] build fail on ARM

Andrei Pelinescu-Onciul andrei at iptel.org
Thu May 5 21:25:10 CEST 2011


On May 04, 2011 at 22:19, kasip at elektromaniak.wz.cz <kasip at elektromaniak.wz.cz> wrote:
> Hi!
> I once sent this message as a non-member and it was probably never looked on.
> 
> I tried to compile kamailio on ARM A9  (omap4430) natively and failed with
> these errors

Could you please send more info?
uname -m
uname -a
gcc --version
gcc -dM -E -x c  /dev/null

and the generated config.mak (after make cfg).

The problem are the atomic_get_and_set_* instructions which use swp
 (not supported on ARMv7+). However they are easy to replace with 
 a ldrex/strex (one need only to replace the ATOMIC_XCHG_DECL macro
 in atomic_arm with a modified version of the ATOMIC_CMPXCHG_DECL
 macro).
To enable proper SMP support we need also to define some memory
barriers.

However since I don't have access to an ARMv7+, I need the above info
from your machine so that I can modify the Maekfiles to properly detect
a ARMv7.

Thanks,
Andrei

> CC (gcc) [kamailio]             atomic_ops.o
> ./tmp/ccm1k5em.s: Assembler messages:
> /tmp/ccm1k5em.s:35: Error: selected processor does not support Thumb mode `swp
> r4,r8,[r6]'
> /tmp/ccm1k5em.s:46: Error: selected processor does not support Thumb mode `swp
> r4,r8,[r6]'
> /tmp/ccm1k5em.s:191: Error: selected processor does not support Thumb mode `swp
> r4,r9,[r7]'
> /tmp/ccm1k5em.s:204: Error: selected processor does not support Thumb mode `swp
> r4,r9,[r7]'
> make: *** [atomic_ops.o] Error 1
> 
> ALTERNATIVELY
> I have found openser 1.3.2-3 in debian lenny for armel achitecture.
> Is this version secure enough? (I mean - has no some remote code execution / db
> corruption bugs which are fixed in current kamailio version?)
> I don't care about call authenticity or bookkeeping or protecting the uplink
> (because there is none)
> If it only lacks features, then it would be enough.
> 
> Thanks for reply.
> MMlosh
> 
> _______________________________________________
> sr-dev mailing list
> sr-dev at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev



More information about the sr-dev mailing list