At 05.05.2011 v 21:25:56, Andrei Pelinescu-Onciul andrei@iptel.org wrote:
On May 04, 2011 at 22:19, kasip@elektromaniak.wz.cz kasip@elektromaniak.wz.cz wrote:
Hi!
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).
I am not sure whether your list eats attachments or not, so I decided to re-post, hoping someone confirms receiving it.
All requested info is targzipped at (http://) elektromaniak.wz.cz / info.tar.gz
I hope the config.mak is configured.. it should be.
Thanks for such quick reply MMlosh
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
Thanks for reply. MMlosh