Ok this is weird,<br><br>first off using ./configure --host=x86 and/or build=x86 did not help, <a href="http://libfreeswitch.la">libfreeswitch.la</a> would not build.<br><br>I started from scratch again - deleted all directories, retrieved source using svn - got exactly the same problem.<br style="color: rgb(0, 0, 0);">
<br style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);">So then I tried editing os_Linux_x86_64.s, and substituted %edx for %rdi. this compiled, but then the build choked saying that the lib was missing _PR_x86_AtomicIncrement _PR_x86_AtomicDecrement _PR_x86_AtomicSet,_PR_x86_AtomicAdd. (In os_Linux_x86_64.s these are _PR_x86_64_AtomicIncrement _PR_x86_64_AtomicDecrement _PR_x86_64_AtomicSet,_PR_x86_64_AtomicAdd).</span><br style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0);"><br>so I copied os_Linux_x86.s over </span><span style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 0);">os_Linux_x86_64.s and the build worked!</span><br style="color: rgb(0, 0, 0);">
<br style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);">now the questions are 1) how will this explode in my face? 2) why is this happening?<br><br>I'll update if this actually works, or causes huge problems!<br>
<br style="color: rgb(0, 0, 0);">Tony</span><br style="color: rgb(0, 0, 0);"><br><br></span><br><br><br><div class="gmail_quote">On Thu, Apr 17, 2008 at 1:08 PM, Michael Jerris <<a href="mailto:mike@jerris.com">mike@jerris.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div bgcolor="#FFFFFF"><div>You can try the --host configure arg to force the platform to 32</div>
<div><br></div><div>Mike<div><div></div><div class="Wj3C7c"><br><br>On Apr 16, 2008, at 8:41 PM, "Anthony Knight" <<a href="mailto:tntknight@gmail.com" target="_blank">tntknight@gmail.com</a>> wrote:<br><br>
</div></div></div><div><div></div><div class="Wj3C7c"><div></div><blockquote type="cite"><div>I'm having a problem building freeswitch on a xen debian etch slice (Details below).<br><br>Everything from the standard modules.conf builds except for mod_spidermonkey. Here are the details of the build error.<br>
<br>
<span style="color: rgb(0, 0, 153);">making all mod_spidermonkey</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">cd config; make -j1 export</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">cd pr; make -j1 export</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">cd include; make export</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">cd md; make export</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">cd private; make export</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">cd obsolete; make export</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">cd src; make export</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">cd io; make export</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">cd malloc; make export</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">cd md; make export</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">cd unix; make export</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">os_Linux_x86_64.s: Assembler messages:</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">os_Linux_x86_64.s:46: Error: bad register name `%rdi)'</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">os_Linux_x86_64.s:61: Error: bad register name `%rdi)'</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">os_Linux_x86_64.s:75: Error: bad register name `%rdi)'</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">os_Linux_x86_64.s:89: Error: bad register name `%rdi)'</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">make[10]: *** [os_Linux_x86_64.o] Error 1</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">make[9]: *** [export] Error 2</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">make[8]: *** [export] Error 2</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">make[7]: *** [export] Error 2</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">make[6]: *** [export] Error 2</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">make[5]: *** [/usr/src/freeswitch-1.0/libs/js/<a href="http://libjs.la" target="_blank">libjs.la</a>] Error 2</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">make[4]: *** [all] Error 1</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">make[3]: *** [mod_spidermonkey-all] Error 1</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">make[2]: *** [all-recursive] Error 1</span><br><br><br><br>Details of my environment:<br><br>~:cat /proc/version<br>Linux version 2.6.18-xenU (<a href="mailto:root@host277.rimuhosting.com" target="_blank"></a><a href="mailto:root@host277.rimuhosting.com" target="_blank">root@host277.rimuhosting.com</a>) (gcc version 4.1.1 20070105 (Red Hat 4.1.1-52)) #4 SMP Wed Oct 24 01:50:19 UTC 2007<br>
<br>~:uname -a<br>Linux <a href="http://xyz.xyz.com" target="_blank">xyz.xyz.com</a> 2.6.18-xenU #4 SMP Wed Oct 24 01:50:19 UTC 2007 x86_64 GNU/Linux<br><br>~:uname -m<br>x86_64<br><br>~:gcc --version<br>gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)<br>
<br>from googling about I think this is the same problem documented here (<a href="http://trac.callcc.org/ticket/407" target="_blank"></a><a href="http://trac.callcc.org/ticket/407" target="_blank">http://trac.callcc.org/ticket/407</a>) where the environment is reporting ARCH=x86_64, but should really be ARCH=x86. <br>
<br>Any suggestions on how to overcome this problem?<br><br>Thanks<br><br>Tony<br>
</div></blockquote></div></div><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Freeswitch-users mailing list</span><br><span><a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a></span><br>
<span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank"></a><a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></span><br>
<span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span><br></div></blockquote></div><br>_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>