<div dir="ltr"><div><div>Hi,<br><br></div>Yes, I'm agreed with that.<br><br></div>Thanks,<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/9/11 Peter Dunkley <span dir="ltr"><<a href="mailto:peter.dunkley@crocodilertc.net" target="_blank">peter.dunkley@crocodilertc.net</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>As there is no SMP support on arm6, I will add the -DNOSMP to the arm6 specific section in Makefile.defs.  This section is only used on the arm6 architecture, so it makes no sense not to have it there.</div>


<div><br></div><div>As for the "swp{b}" deprecated warning, this is certainly not ideal, but as you say not something I need to worry about as I am only interested in the Raspberry Pi which shows no signs of moving from arm6 right now.</div>


<div><br></div><div>Thanks,</div><div><br></div><div>Peter</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On 11 September 2013 10:14, Konstantin M. <span dir="ltr"><<a href="mailto:evilzluk@gmail.com" target="_blank">evilzluk@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi Peter,<br></div>Adding CC_EXTRA_OPTS=-DNOSMP to make command (example: make CC_EXTRA_OPTS=-DNOSMP) solves the problem, even don't need to modify def's, unless the system can't recognize this fact. <br>




</div><div>But also need to deal with the following:<br><br></div><div>During a compilation you'll get something like:<br>/tmp/ccr4MEib.s:5860: Warning: swp{b} use is deprecated for this architecture<br></div><div><br>




The swp{b} instruction is deprecated in ARMv6 and above. Worse, it isn't supported at all in ARMv7 and is fixed up in the illegal instruction trap in the Linux kernel - at some runtime cost. Your compiler should absolutely not be generating it. Since raspi is armb6 arch - this warning will be silently ignored, but if you'll build on cubieboard (A10/A20) - it will be a catastrophe.<br>




</div><div><br></div><div>Regarding to SMP to ARMv6 - there is no SMP support. The SMP is only above ARM9.<br><br></div><div><br><br></div><div> <br></div></div><br></div><div><div><div class="gmail_extra">
<br><br><div class="gmail_quote">

2013/9/11 Peter Dunkley <span dir="ltr"><<a href="mailto:peter.dunkley@crocodilertc.net" target="_blank">peter.dunkley@crocodilertc.net</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="auto"><div>Hi Konstantin,</div><div><br></div><div>I used the latest raspbian distribution downloaded from <a href="http://www.raspberrypi.org" target="_blank">www.raspberrypi.org</a> and the commands:</div><div>




make cfg</div><div>make</div><div><br></div><div>This produced the error output I reported.</div><div><br></div><div>Making the change to Makefile.defs fixed that problem for me.</div><div><br></div><div>Presumably you had to set some extra options when compiling? So the question is, should I commit the change to Makefile.defs to make the compile work without extra options required?</div>




<div><br></div><div>The only reason not to make the change would be if someone has, or expects to have, an arm6 device with SMP support.</div><div><div><br></div><div>Regards,</div><div><br></div><div>Peter</div>

<div><br>--<div>Peter Dunkley</div><div>Technical Director</div><div>Crocodile RCS Ltd</div></div></div><div><div><div><br>On 10 Sep 2013, at 23:49, "Konstantin M." <<a href="mailto:evilzluk@gmail.com" target="_blank">evilzluk@gmail.com</a>> wrote:<br>




<br></div><blockquote type="cite"><div><div dir="ltr">I just successfuly compiled master on raspi:<br><br>root@raspberrypi:/usr/local/src/kamailio# /opt/kamailio-master/sbin/kamailio -V<br>version: kamailio 4.1.0-dev8 (arm6/linux) 6f1720<br>




flags: STATS: Off, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT-NOSMP, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES<br>






ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB<br>poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.<br>id: 6f1720<br>compiled on 23:49:15 Sep 10 2013 with gcc 4.6.3<br>






<br>root@raspberrypi:/usr/local/src/kamailio# lsb_release -a<br>No LSB modules are available.<br>Distributor ID: Debian<br>Description:    Debian GNU/Linux 7.1 (n/a)<br>Release:        7.1<br>Codename:       n/a<br><br></div>






<div class="gmail_extra"><br><br><div class="gmail_quote">2013/9/10 Konstantin M. <span dir="ltr"><<a href="mailto:evilzluk@gmail.com" target="_blank">evilzluk@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">






<div dir="ltr"><div>At Mar, 14 I have posted:<br></div>---------------<br>Hi,<br><br>Successfully compiled on Raspberry PI for armv6(hf).<br><br>root@rpi:/opt/kamailio# ./sbin/kamailio -V<br>version: kamailio 4.1.0-dev1 (arm6/linux) 7d46ff<br>







flags: STATS: Off, USE_IPV6, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT-NOSMP, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES<br>







ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB<br>poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.<br>id: 7d46ff<br>compiled on 22:47:35 Mar 13 2013 with gcc 4.6.3<br>







<br>A process of compilation is exactly the same, but need to add CC_EXTRA_OPTS=-DNOSMP because SMP is not supported for arm atomic operations.<br><br>You can add this remark in WIKI if you need.<br><br></div><div class="gmail_extra">







<br><br><div class="gmail_quote">2013/9/10 Peter Dunkley <span dir="ltr"><<a href="mailto:peter.dunkley@crocodilertc.net" target="_blank">peter.dunkley@crocodilertc.net</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">






<div><div>
<div dir="ltr">Hello,<div><br></div><div>I am trying to build a Kamailio Raspberry Pi for my presentation at AstriCon but the build fails on the very first file (action.c).  This was working before (although I was using Fedora on the Pi last time).</div>








<div><br></div><div>Has anyone changed anything recently or have any ideas about this?</div><div><br></div><div>It may be as simple as tweaking the build arguments, but as this worked for me before I thought I'd ask first...</div>








<div><br></div><div>Here is the build output:</div><div><div>CC (gcc) [kamailio]<span style="white-space:pre-wrap">           </span>action.o</div><div>In file included from parser/../mem/../atomic/atomic_native.h:74:0,</div><div>








                 from parser/../mem/../futexlock.h:44,</div><div>                 from parser/../mem/../lock_ops.h:85,</div><div>                 from parser/../mem/shm_mem.h:75,</div><div>                 from parser/../ut.h:64,</div>








<div>                 from parser/../ip_addr.h:50,</div><div>                 from parser/msg_parser.h:61,</div><div>                 from select.h:38,</div><div>                 from route_struct.h:47,</div><div>                 from action.h:42,</div>








<div>                 from action.c:69:</div><div>parser/../mem/../atomic/atomic_arm.h:69:2: warning: #warning SMP not supported for arm atomic ops, try compiling with -DNOSMP [-Wcpp]</div><div>In file included from parser/../mem/../atomic/atomic_arm.h:81:0,</div>








<div>                 from parser/../mem/../atomic/atomic_native.h:74,</div><div>                 from parser/../mem/../futexlock.h:44,</div><div>                 from parser/../mem/../lock_ops.h:85,</div><div>                 from parser/../mem/shm_mem.h:75,</div>








<div>                 from parser/../ut.h:64,</div><div>                 from parser/../ip_addr.h:50,</div><div>                 from parser/msg_parser.h:61,</div><div>                 from select.h:38,</div><div>                 from route_struct.h:47,</div>








<div>                 from action.h:42,</div><div>                 from action.c:69:</div><div>parser/../mem/../atomic/atomic_unknown.h:59:2: warning: #warning no native memory barrier implementations, falling back to slow lock based workarround [-Wcpp]</div>








<div>parser/../mem/../atomic/atomic_unknown.h:64:1: error: unknown type name ‘gen_lock_t’</div><div>In file included from parser/../mem/../atomic/atomic_native.h:74:0,</div><div>                 from parser/../mem/../futexlock.h:44,</div>








<div>                 from parser/../mem/../lock_ops.h:85,</div><div>                 from parser/../mem/shm_mem.h:75,</div><div>                 from parser/../ut.h:64,</div><div>                 from parser/../ip_addr.h:50,</div>








<div>                 from parser/msg_parser.h:61,</div><div>                 from select.h:38,</div><div>                 from route_struct.h:47,</div><div>                 from action.h:42,</div><div>                 from action.c:69:</div>








<div>parser/../mem/../atomic/atomic_arm.h: In function ‘mb_atomic_get_int’:</div><div>parser/../mem/../atomic/atomic_arm.h:229:2: warning: implicit declaration of function ‘lock_release’ [-Wimplicit-function-declaration]</div>








<div>parser/../mem/../atomic/atomic_arm.h:229:2: warning: implicit declaration of function ‘lock_get’ [-Wimplicit-function-declaration]</div><div>make: *** [action.o] Error 1</div></div><div><br></div><div>Regards,</div>







<div>
<br></div><div>Peter<span><font color="#888888"><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><font face="courier new, monospace">Peter Dunkley</font></div><div><font face="courier new, monospace">Technical Director</font></div>







<div><font face="courier new, monospace">Crocodile RCS Ltd</font></div>
</div>
</font></span></div></div>
<br></div></div><div>_______________________________________________<br>
sr-dev mailing list<br>
<a href="mailto:sr-dev@lists.sip-router.org" target="_blank">sr-dev@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
<br></div></blockquote></div><br></div>
</blockquote></div><br></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>sr-dev mailing list</span><br><span><a href="mailto:sr-dev@lists.sip-router.org" target="_blank">sr-dev@lists.sip-router.org</a></span><br>




<span><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a></span><br></div></blockquote></div></div></div><br>_______________________________________________<br>





sr-dev mailing list<br>
<a href="mailto:sr-dev@lists.sip-router.org" target="_blank">sr-dev@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
sr-dev mailing list<br>
<a href="mailto:sr-dev@lists.sip-router.org" target="_blank">sr-dev@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><font face="courier new, monospace">Peter Dunkley</font></div><div><font face="courier new, monospace">Technical Director</font></div><div>


<font face="courier new, monospace">Crocodile RCS Ltd</font></div></div>
</div>
</div></div><br>_______________________________________________<br>
sr-dev mailing list<br>
<a href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
<br></blockquote></div><br></div>