why is CROSS_ARCH=Linux? is this something the AVR32 distro is doing, or something you did? it should be something line &quot;avr&quot; or &quot;avr32&quot;<br><br><div><br></div><div><br><div class="gmail_quote">On Thu, Jun 18, 2009 at 3:08 AM, Paulo Santos <span dir="ltr">&lt;<a href="mailto:paulo.r.santos@sapo.pt">paulo.r.santos@sapo.pt</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Greetings everyone,<br>
<br>
I&#39;m trying to compile asterisk for an AVR32 (Atmel NGW100).<br>
Buildroot for AVR32 already has the asterisk package, though it has<br>
bugs. Firstly it tries to apply a patch for 1.2 on a 1.6, but deleting<br>
the contents of the patch file did the trick.<br>
<br>
Now, the problem is making asterisk. The first error is because asterisk<br>
needed to be ./configure:ed.<br>
<br>
Trying to just do ./configure, make gives an error [1].<br>
<br>
Trying to do ./configure with the same args as make plus --host it can&#39;t<br>
even configure [2]<br>
<br>
I don&#39;t know much about cross-compiling, or even regular compiling for<br>
that matter. Does any one have any idea on how to do this?<br>
<br>
Thanks in advance,<br>
Best regards,<br>
Paulo Santos<br>
<br>
<br>
[1]<br>
menuselect/menuselect --check-deps   menuselect.makeopts<br>
/bin/bash: menuselect/menuselect: cannot execute binary file<br>
make[1]: *** [menuselect.makeopts] Error 126<br>
make[1]: Leaving directory<br>
`/home/psantos/br/buildroot-avr32-v2.3.0/build_avr32/asterisk-1.6.0-beta6&#39;<br>
make: ***<br>
[/home/psantos/br/buildroot-avr32-v2.3.0/build_avr32/asterisk-1.6.0-beta6/asterisk]<br>
Error 2<br>
<br>
[2]<br>
configure: WARNING: If you wanted to set the --build type, don&#39;t use --host.<br>
     If a cross compiler is detected then cross compile mode will be used.<br>
checking build system type... i686-pc-linux-gnu<br>
checking host system type... Invalid configuration `CROSS_ARCH=Linux&#39;:<br>
machine `CROSS_ARCH=Linux&#39; not recognized<br>
configure: error: /bin/bash ./config.sub CROSS_ARCH=Linux failed<br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br></div>