Ok this is weird,

first off using ./configure --host=x86 and/or build=x86 did not help,
libfreeswitch.la would not build.

I started from scratch again - deleted all directories, retrieved source
using svn - got exactly the same problem.

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).

so I copied os_Linux_x86.s over os_Linux_x86_64.s and the build worked!

now the questions are 1) how will this explode in my face? 2) why is this
happening?

I'll update if this actually works, or causes huge problems!

Tony





On Thu, Apr 17, 2008 at 1:08 PM, Michael Jerris <[EMAIL PROTECTED]> wrote:

> You can try the --host configure arg to force the platform to 32
>
> Mike
>
>
> On Apr 16, 2008, at 8:41 PM, "Anthony Knight" <[EMAIL PROTECTED]> wrote:
>
> I'm having a problem building freeswitch on a xen debian etch slice
> (Details below).
>
> Everything from the standard modules.conf builds except for
> mod_spidermonkey.  Here are the details of the build error.
>
> making all mod_spidermonkey
> cd config; make -j1 export
> cd pr; make -j1 export
> cd include; make export
> cd md; make export
> cd private; make export
> cd obsolete; make export
> cd src; make export
> cd io; make export
> cd malloc; make export
> cd md; make export
> cd unix; make export
> os_Linux_x86_64.s: Assembler messages:
> os_Linux_x86_64.s:46: Error: bad register name `%rdi)'
> os_Linux_x86_64.s:61: Error: bad register name `%rdi)'
> os_Linux_x86_64.s:75: Error: bad register name `%rdi)'
> os_Linux_x86_64.s:89: Error: bad register name `%rdi)'
> make[10]: *** [os_Linux_x86_64.o] Error 1
> make[9]: *** [export] Error 2
> make[8]: *** [export] Error 2
> make[7]: *** [export] Error 2
> make[6]: *** [export] Error 2
> make[5]: *** [/usr/src/freeswitch-1.0/libs/js/libjs.la] Error 2
> make[4]: *** [all] Error 1
> make[3]: *** [mod_spidermonkey-all] Error 1
> make[2]: *** [all-recursive] Error 1
>
>
>
> Details of my environment:
>
> ~:cat /proc/version
> Linux version 2.6.18-xenU ( <[EMAIL PROTECTED]>
> [EMAIL PROTECTED]) (gcc version 4.1.1 20070105 (Red Hat
> 4.1.1-52)) #4 SMP Wed Oct 24 01:50:19 UTC 2007
>
> ~:uname -a
> Linux xyz.xyz.com 2.6.18-xenU #4 SMP Wed Oct 24 01:50:19 UTC 2007 x86_64
> GNU/Linux
>
> ~:uname -m
> x86_64
>
> ~:gcc --version
> gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
>
> from googling about I think this is the same problem documented here 
> (<http://trac.callcc.org/ticket/407>
> http://trac.callcc.org/ticket/407) where the environment is reporting
> ARCH=x86_64, but should really be ARCH=x86.
>
> Any suggestions on how to overcome this problem?
>
> Thanks
>
> Tony
>
> _______________________________________________
> Freeswitch-users mailing list
> [email protected]
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:<http://lists.freeswitch.org/mailman/options/freeswitch-users>
> http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
> _______________________________________________
> Freeswitch-users mailing list
> [email protected]
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
_______________________________________________
Freeswitch-users mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Reply via email to