<div dir="ltr">hello,<div>I want to cross compile asterisk to work on embedded linux running on the openrisc 1200 cpu from <a href="http://opencores.org">opencores.org</a>. I found the cpu is recognized and his name is listed in the cases in configure.sub but after trying to cross compile him in encountered these problems:</div>
<div><br></div><div>the configure file stops in ncurses (so I cross compile ncurses and mentioned the directory by using --with-ncurses).</div><div>after that the configuration stopped in libxml ( so I disabled this feature explicitly using --disable-xmldoc), after this change the configure file complete with success.</div>
<div>but after trying to execute make stopped by ascanary.c -> ascanary.o and says :" utime.h no such file or directory) so I followed the way of a blind and went to this file changed the <utime.h> by "utime.h" but the problem still. </div>
<div><br></div><div>so after looking deeply and make some test I figure out the problem but I don't know how to fix it:</div><div><br></div><div>I found that the toolchain after compilation split this manner:</div><div>
the root file or the top directory of the toolchain in my case /opt/openrisc/</div><div>under this directory there is a bin, include, lib and the commons directories in all toolchains, but also there are an or32-elf and or32-linux directories.</div>
<div>the problems is here:</div><div>these two directories contain the bin, include, lib and all the directories in the parent one and after comparing between the include of or32-linux and the include of the parent I found that the first one contain most of the headers and files that asterisk use.</div>
<div><br></div><div>after changing the ascanary.c by replacing include <utime.h> by include "/opt/openrisc/or32-linux/include/linux/utime.h" the make continue but stopped in undeclared function first use in this file and this function is one of sys/types and time.h some other files included in ascanary.c</div>
<div><br></div><div>so the conclusion I have made from all this that make and configure can't find these headers and to be aware the checking action for utime.h in configure gives the result "no" and the same thing with some other one which are not in the include of the parent directory but they are in or32-linux's include.</div>
<div>I wonder if someone can help me out from this problem.</div><div><br></div><div>I used this to configure:</div><div>./configure --host=or32-linux CC=or32-linux-gcc CXX=or32-linux-g++ AR=or32-linux-ar AS=or32-linux-as --with-ncurses=/home/ncursess --disable-xmldoc</div>
<div><br></div><div>and I tried to used CLAGS='-I /opt/openrisc/or32-linux/include' but no progress.</div><div><br></div><div>and something else the difference the utils from or32-elf are used to compile bare metal applications for the processor and or32-linux to compile applications for embedded linux. you can find all the information in <a href="http://opencores.org">opencores.org</a></div>
<div><br></div><div>hope you can help me.</div><div>thank you</div></div>