<div dir="ltr"><div><div><div>As m using bash, export PATH=$PATH:/home/arslan/dir/install/bin seems to resolved this issue of arm-elf-gcc. M really grateful for your help.<br><br></div>After that, when i went on making the source, a new sort of error has been arrived.<br>
</div>It seems to be quite a big problem as compare to last one. It look like this:<br><br>make[1]: Entering directory `/home/arslan/osmocom-bb/src/target/firmware'<br>  LD     board/compal_e88/hello_world.highram.elf<br>
apps/hello_world/main.o: In function `console_rx_cb':<br>/home/arslan/osmocom-bb/src/target/firmware/apps/hello_world/main.c:59: undefined reference to `msgb_free'<br>comm/libcomm.a(sercomm.o): In function `sercomm_sendmsg':<br>
/home/arslan/osmocom-bb/src/target/firmware/comm/sercomm.c:138: undefined reference to `msgb_enqueue'<br>comm/libcomm.a(sercomm.o): In function `msgb_alloc_headroom':<br>/home/arslan/osmocom-bb/src/target/firmware/../../shared/libosmocore/include/osmocom/core/msgb.h:388: undefined reference to `msgb_alloc'<br>
comm/libcomm.a(sercomm.o): In function `sercomm_drv_pull':<br>/home/arslan/osmocom-bb/src/target/firmware/comm/sercomm.c:174: undefined reference to `msgb_dequeue'<br>/home/arslan/osmocom-bb/src/target/firmware/comm/sercomm.c:201: undefined reference to `msgb_free'<br>
comm/libcomm.a(sercomm.o): In function `sercomm_drv_rx_char':<br>/home/arslan/osmocom-bb/src/target/firmware/comm/sercomm.c:259: undefined reference to `msgb_free'<br>comm/libcomm.a(sercomm.o): In function `dispatch_rx_msg':<br>
/home/arslan/osmocom-bb/src/target/firmware/comm/sercomm.c:240: undefined reference to `msgb_free'<br>comm/libcomm.a(sercomm_cons.o): In function `msgb_alloc_headroom':<br>/home/arslan/osmocom-bb/src/target/firmware/../../shared/libosmocore/include/osmocom/core/msgb.h:388: undefined reference to `msgb_alloc'<br>
make[1]: *** [board/compal_e88/hello_world.highram.elf] Error 1<br>make[1]: Leaving directory `/home/arslan/osmocom-bb/src/target/firmware'<br>make: *** [firmware] Error 2<br><br><br><br></div>Any idea, anyone?<br></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 14, 2014 at 7:07 PM, Rusty Dekema <span dir="ltr"><<a href="mailto:rdekema@gmail.com" target="_blank">rdekema@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
To the best of my knowledge from when I first was trying to build<br>
osmocom-bb, the error you are receiving is a result of gcc for Intel<br>
x86/x86_64 trying to compile ARM code. There is no 'eor' instruction<br>
for x86, which is why you get that error.<br>
<br>
When you built the toolchain, you built a copy of gcc that compiles to<br>
the ARM architecture. On your system, this compiler should be located<br>
at /home/arslan/dir/install/bin/arm-elf-gcc. The message about<br>
assuming arm-elf-gcc is inside the current path means your PATH<br>
environment variable, not your current working directory. So, if you<br>
add /home/arslan/dir/install/bin to your path environment variable,<br>
the osmocom-bb build scripts will be able to find arm-elf-gcc there,<br>
and you should not receive that error.<br>
<br>
If you are using bash as your shell, you can accomplish this by<br>
issuing the command:<br>
<br>
export PATH=$PATH:/home/arslan/dir/install/bin<br>
<br>
Cheers,<br>
Rusty D<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
On Mon, Apr 14, 2014 at 7:46 AM, Ahmad Jan <<a href="mailto:e10007a@gmail.com">e10007a@gmail.com</a>> wrote:<br>
> Hi...<br>
> I m trying to install osmocom-bb using following link:<br>
><br>
> <a href="http://bb.osmocom.org/trac/wiki/Software/GettingStarted" target="_blank">http://bb.osmocom.org/trac/wiki/Software/GettingStarted</a><br>
><br>
> First of all i installed the Dependencies for the host.<br>
><br>
> Then for target dependencies, i build my own toolchain using following:<br>
><br>
> <a href="http://bb.osmocom.org/trac/wiki/GnuArmToolchain" target="_blank">http://bb.osmocom.org/trac/wiki/GnuArmToolchain</a><br>
><br>
> This toolchain building processes ended up saying: "Build complete! Add<br>
> /home/arslan/dir/install/bin to your PATH to make arm-elf-gcc and friends<br>
> accessible directly."<br>
> (i don't know building my own toolchain is necessary or not).<br>
><br>
> Then i went back for building osmocom-bb<br>
><br>
> There i came across getting and updating the source.<br>
><br>
> But in building the source section, what it says is: " Compiling both the<br>
> target and the host code will happen with the following command. It assumes<br>
> that the arm-elf-gcc is inside the current path."<br>
><br>
> I didn't understand it as my current path is osmocom-bb and there is no<br>
> arm-elf-gcc<br>
> Can anyone tell me what does it mean?<br>
><br>
> Anyways, i just ignored it and went on executing the following command<br>
><br>
> cd src/<br>
> make<br>
><br>
> So i ended up with an error saying:<br>
> /home/arslan/osmocom-bb/src/target/firmware/include/asm/swab.h:32: Error: no<br>
> such instruction: `eor %edx,%r15d,%r15d,ror'<br>
> make[4]: *** [gsmtap_util.lo] Error 1<br>
><br>
> I tried to figure it out from Internet. It really didn't work out.<br>
> M stuck at this point.<br>
> Can anyone help me resolving this problem?<br>
><br>
><br>
</div></div></blockquote></div><br></div>