Hello,<br><br>Thank you very much for your reply. When i give the path to arm-elf-gcc "export PATH=$PATH:/home/zaki/gnuarm-4.0.2/bin/" , and run "make firmware", I get errors. I have pasted some of the errors that i get in config.log below and have also attached that file. <br>
<br>configure:2559: checking for arm-elf-linux-gcc<br>configure:2586: result: arm-elf-gcc<br>configure:2858: checking for C compiler version<br>configure:2866: arm-elf-gcc --version >&5<br>../configure: line 2868: /home/zaki/gnuarm-4.0.2/bin/arm-elf-gcc: cannot execute binary file<br>
configure:2870: $? = 126<br>configure:2877: arm-elf-gcc -v >&5<br>../configure: line 2879: /home/zaki/gnuarm-4.0.2/bin/arm-elf-gcc: cannot execute binary file<br>configure:2881: $? = 126<br>configure:2888: arm-elf-gcc -V >&5<br>
../configure: line 2890: /home/zaki/gnuarm-4.0.2/bin/arm-elf-gcc: cannot execute binary file<br>configure:2892: $? = 126<br>configure:2915: checking for C compiler default output file name<br>configure:2937: arm-elf-gcc -Os -ffunction-sections -I../../../../target/firmware/include   conftest.c  >&5<br>
../configure: line 2939: /home/zaki/gnuarm-4.0.2/bin/arm-elf-gcc: cannot execute binary file<br>configure:2941: $? = 126<br>configure:2979: result: <br>configure: failed program was:<br><br>Awaiting your response,<br>Zaki.<br>
<br><div class="gmail_quote">On Tue, Jun 8, 2010 at 6:12 PM,  <span dir="ltr"><<a href="mailto:baseband-devel-request@lists.osmocom.org">baseband-devel-request@lists.osmocom.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Send baseband-devel mailing list submissions to<br>
        <a href="mailto:baseband-devel@lists.osmocom.org">baseband-devel@lists.osmocom.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://lists.osmocom.org/mailman/listinfo/baseband-devel" target="_blank">https://lists.osmocom.org/mailman/listinfo/baseband-devel</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:baseband-devel-request@lists.osmocom.org">baseband-devel-request@lists.osmocom.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:baseband-devel-owner@lists.osmocom.org">baseband-devel-owner@lists.osmocom.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of baseband-devel digest..."<br>
<br>Today's Topics:<br>
<br>
   1. Re: Trouble building Osmocom (Adrian-Ken Rueegsegger)<br>
   2. Re: Trouble building Osmocom (Sylvain Munaut)<br>
   3. AW: Trouble building Osmocom (Riemer, Bjoern)<br>
   4. Re: Trouble building Osmocom (Holger Freyther)<br>
   5. Trouble building Osmocom (Zaki Ud Din)<br>
   6. Re: Trouble building Osmocom (Holger Freyther)<br>
<br><br>---------- Forwarded message ----------<br>From: Adrian-Ken Rueegsegger <<a href="mailto:ken@codelabs.ch">ken@codelabs.ch</a>><br>To: Zaki Ud Din <<a href="mailto:fyproject14@gmail.com">fyproject14@gmail.com</a>><br>
Date: Tue, 08 Jun 2010 12:44:56 +0200<br>Subject: Re: Trouble building Osmocom<br>Hi,<br>
<br>
Zaki Ud Din schrieb:<br>
> Hello,<br>
><br>
> Thank you very much for your reply. No my config.log file seems to be<br>
> different. I am pasting a portion of config.log file below and am also<br>
> attaching the complete file with this email.<br>
<br>
[snip]<br>
<br>
> configure:2866: arm-elf-gcc --version >&5<br>
> ../configure: line 2868: arm-elf-gcc: command not found<br>
> configure:2870: $? = 127<br>
> configure:2877: arm-elf-gcc -v >&5<br>
> ../configure: line 2879: arm-elf-gcc: command not found<br>
> configure:2881: $? = 127<br>
> configure:2888: arm-elf-gcc -V >&5<br>
> ../configure: line 2890: arm-elf-gcc: command not found<br>
> configure:2892: $? = 127<br>
> configure:2915: checking for C compiler default output file name<br>
> configure:2937: arm-elf-gcc -Os -ffunction-sections<br>
> -I../../../../target/firmware/include   conftest.c  >&5<br>
> ../configure: line 2939: arm-elf-gcc: command not found<br>
<br>
It does not find the toolchain/cross-compiler. Where did you<br>
install/unpack the toolchain? Please check that it is really in<br>
"/gnuarm-4.0.2/arm-elf/bin". Otherwise you have to export the proper path.<br>
<br>
-Adrian<br>
<br>
<br>
<br><br>---------- Forwarded message ----------<br>From: Sylvain Munaut <<a href="mailto:246tnt@gmail.com">246tnt@gmail.com</a>><br>To: <a href="mailto:baseband-devel@lists.osmocom.org">baseband-devel@lists.osmocom.org</a><br>
Date: Tue, 8 Jun 2010 12:43:19 +0200<br>Subject: Re: Trouble building Osmocom<br>This seems pretty clear :<br>
<br>
> ../configure: line 2939: arm-elf-gcc: command not found<br>
<br>
Make sure you have a good ARM toolchain installed ... (look it up on<br>
google, plenty of doc on how to install one).<br>
<br>
    Sylvain<br>
<br>
<br>
<br><br>---------- Forwarded message ----------<br>From: "Riemer, Bjoern" <<a href="mailto:bjoern.riemer@fokus.fraunhofer.de">bjoern.riemer@fokus.fraunhofer.de</a>><br>To: "Zaki Ud Din" <<a href="mailto:fyproject14@gmail.com">fyproject14@gmail.com</a>>, <<a href="mailto:baseband-devel@lists.osmocom.org">baseband-devel@lists.osmocom.org</a>><br>
Date: Tue, 8 Jun 2010 13:07:30 +0200<br>Subject: AW: Trouble building Osmocom<br>








<div link="blue" vlink="purple" lang="DE">

<div>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Hi</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">You say that you unpacked the gcc compiler to your home
directory and then set you path to </span><span lang="EN-US">PATH=/gnuarm-4.0.2/arm-elf/bin:$PATH</span><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> ..</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Unless your home directory is set to / the path to the gcc
compiler is wrong.</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">bjoern</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">

<p class="MsoNormal"><b><span style="font-size: 10pt;">Von:</span></b><span style="font-size: 10pt;">
<a href="mailto:baseband-devel-bounces@lists.osmocom.org" target="_blank">baseband-devel-bounces@lists.osmocom.org</a>
[mailto:<a href="mailto:baseband-devel-bounces@lists.osmocom.org" target="_blank">baseband-devel-bounces@lists.osmocom.org</a>] <b>Im Auftrag von </b>Zaki Ud
Din<br>
<b>Gesendet:</b> Sonntag, 6. Juni 2010 22:21<br>
<b>An:</b> <a href="mailto:baseband-devel@lists.osmocom.org" target="_blank">baseband-devel@lists.osmocom.org</a><br>
<b>Betreff:</b> Trouble building Osmocom</span></p>

</div>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Hello,<br>
<br>
I have been trying to build osmocom but have been getting errors in doing so. <br>
<br>
Firstly, I downloaded the following file,"<u><span style="color: rgb(102, 102, 204);">
binutils-2.16.1, gcc-4.0.2-c-c++, newlib-1.14.0, insight-6.4, TAR BZ2 [65.5MB]</span></u>"
under GCC-4.0 toolchain from <a href="http://www.gnuarm.com" target="_blank">www.gnuarm.com</a>
and extracted this to my home folder.<br>
<br>
Secondly, I gave the following path "export PATH=/gnuarm-4.0.2/arm-elf/</p>

<div>

<p class="MsoNormal">bin:$PATH" in terminal window. Afterwards when I
entered "make" under "/osmosom-bb/src", I got the following
errors</p>

<div>

<div>

<div>

<p class="MsoNormal"><br>
zaki@zaki-desktop:~/osmocom-bb/src$ make</p>

</div>

<p class="MsoNormal">cd shared/libosmocore/build-host && make<br>
make[1]: Entering directory
`/home/zaki/osmocom-bb/src/shared/libosmocore/build-host'<br>
make  all-recursive<br>
make[2]: Entering directory
`/home/zaki/osmocom-bb/src/shared/libosmocore/build-host'<br>
Making all in include<br>
make[3]: Entering directory
`/home/zaki/osmocom-bb/src/shared/libosmocore/build-host/include'<br>
Making all in osmocore<br>
make[4]: Entering directory
`/home/zaki/osmocom-bb/src/shared/libosmocore/build-host/include/osmocore'<br>
Making all in protocol<br>
make[5]: Entering directory
`/home/zaki/osmocom-bb/src/shared/libosmocore/build-host/include/osmocore/protocol'<br>
make[5]: Nothing to be done for `all'.<br>
make[5]: Leaving directory
`/home/zaki/osmocom-bb/src/shared/libosmocore/build-host/include/osmocore/protocol'<br>
make[5]: Entering directory
`/home/zaki/osmocom-bb/src/shared/libosmocore/build-host/include/osmocore'<br>
make[5]: Nothing to be done for `all-am'.<br>
make[5]: Leaving directory
`/home/zaki/osmocom-bb/src/shared/libosmocore/build-host/include/osmocore'<br>
make[4]: Leaving directory
`/home/zaki/osmocom-bb/src/shared/libosmocore/build-host/include/osmocore'<br>
make[4]: Entering directory
`/home/zaki/osmocom-bb/src/shared/libosmocore/build-host/include'<br>
make[4]: Nothing to be done for `all-am'.<br>
make[4]: Leaving directory
`/home/zaki/osmocom-bb/src/shared/libosmocore/build-host/include'<br>
make[3]: Leaving directory
`/home/zaki/osmocom-bb/src/shared/libosmocore/build-host/include'<br>
Making all in src<br>
make[3]: Entering directory `/home/zaki/osmocom-bb/src/shared/libosmocore/build-host/src'<br>
make[3]: Nothing to be done for `all'.<br>
make[3]: Leaving directory
`/home/zaki/osmocom-bb/src/shared/libosmocore/build-host/src'<br>
Making all in tests<br>
make[3]: Entering directory
`/home/zaki/osmocom-bb/src/shared/libosmocore/build-host/tests'<br>
Making all in timer<br>
make[4]: Entering directory
`/home/zaki/osmocom-bb/src/shared/libosmocore/build-host/tests/timer'<br>
make[4]: Nothing to be done for `all'.<br>
make[4]: Leaving directory
`/home/zaki/osmocom-bb/src/shared/libosmocore/build-host/tests/timer'<br>
Making all in sms<br>
make[4]: Entering directory
`/home/zaki/osmocom-bb/src/shared/libosmocore/build-host/tests/sms'<br>
make[4]: Nothing to be done for `all'.<br>
make[4]: Leaving directory
`/home/zaki/osmocom-bb/src/shared/libosmocore/build-host/tests/sms'<br>
make[4]: Entering directory
`/home/zaki/osmocom-bb/src/shared/libosmocore/build-host/tests'<br>
make[4]: Nothing to be done for `all-am'.<br>
make[4]: Leaving directory
`/home/zaki/osmocom-bb/src/shared/libosmocore/build-host/tests'<br>
make[3]: Leaving directory `/home/zaki/osmocom-bb/src/shared/libosmocore/build-host/tests'<br>
make[3]: Entering directory
`/home/zaki/osmocom-bb/src/shared/libosmocore/build-host'<br>
make[3]: Leaving directory
`/home/zaki/osmocom-bb/src/shared/libosmocore/build-host'<br>
make[2]: Leaving directory `/home/zaki/osmocom-bb/src/shared/libosmocore/build-host'<br>
make[1]: Leaving directory
`/home/zaki/osmocom-bb/src/shared/libosmocore/build-host'<br>
cd shared/libosmocore/build-target && ../configure \<br>
            --host=arm-elf-linux
--disable-shared --disable-talloc --disable-tests \<br>
        CC="arm-elf-gcc"
CFLAGS="-Os -ffunction-sections
-I../../../../target/firmware/include"<br>
configure: WARNING: If you wanted to set the --build type, don't use --host.<br>
    If a cross compiler is detected then cross compile mode will
be used.</p>

<div>

<p class="MsoNormal"><br>
checking for a BSD-compatible install... /usr/bin/install -c<br>
checking whether build environment is sane... yes<br>
checking for a thread-safe mkdir -p... /bin/mkdir -p</p>

</div>

<p class="MsoNormal">checking for gawk... no<br>
checking for mawk... mawk<br>
checking whether make sets $(MAKE)... yes<br>
checking for arm-elf-linux-strip... no<br>
checking for strip... strip<br>
checking whether make sets $(MAKE)... (cached) yes</p>

<div>

<p class="MsoNormal" style="margin-bottom: 12pt;"><br>
checking for arm-elf-linux-gcc... arm-elf-gcc<br>
checking for C compiler default output file name... <br>
<span style="background: rgb(255, 255, 51) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">configure: error: in `/home/zaki/osmocom-bb/src/shared/libosmocore/build-target':</span><br>

<span style="background: rgb(255, 255, 51) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">configure: error: C compiler cannot create
executables</span><br>
<span style="background: rgb(255, 255, 51) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">See `config.log' for more details.</span><br>

<span style="background: rgb(255, 255, 51) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">make: ***
[shared/libosmocore/build-target/Makefile] Error 77</span></p>

</div>

<p class="MsoNormal">I shall be grateful to you if you could help me on this.<br>
<br>
Awaiting your Response,<br>
<span style="color: rgb(136, 136, 136);"><br>
Zaki.</span></p>

</div>

</div>

</div>

</div>

</div>


<br><br>---------- Forwarded message ----------<br>From: Holger Freyther <<a href="mailto:zecke@selfish.org">zecke@selfish.org</a>><br>To: <br>Date: Tue, 08 Jun 2010 20:05:45 +0800<br>Subject: Re: Trouble building Osmocom<br>
On 06/08/2010 07:59 PM, Zaki Ud Din wrote:<br>
> Hello,<br>
<br>
> I did export the path using the following line "export<br>
> PATH=$PATH:/home/zaki/gnuarm-<br>
> 4.0.2/arm-elf/bin/ " and afterwards I typed "make firmware" and then got<br>
> the errors I told you.<br>
><br>
> Awaiting your response,<br>
<br>
Well,<br>
it claims to not find arm-elf-gcc. Have you considered checking that<br>
this application exists? e.g. does which arm-elf-gcc lead to anything?<br>
<br>
<br>
<br>
<br>
<br>
<br><br>---------- Forwarded message ----------<br>From: Zaki Ud Din <<a href="mailto:fyproject14@gmail.com">fyproject14@gmail.com</a>><br>To: <a href="mailto:baseband-devel@lists.osmocom.org">baseband-devel@lists.osmocom.org</a>, Holger Freyther <<a href="mailto:zecke@selfish.org">zecke@selfish.org</a>><br>
Date: Tue, 8 Jun 2010 16:59:23 +0500<br>Subject: Trouble building Osmocom<br><div><div><div>Hello,<br><br>Thank you very much for your reply.<br><br></div></div></div><div>I am using ,"<u style="color: rgb(102, 102, 204);"> binutils-2.16.1,
              gcc-4.0.2-c-c++, newlib-1.14.0, insight-6.4, TAR BZ2 [65.5MB]</u>" under GCC-4.0 toolchain from <a href="http://www.gnuarm.com/" target="_blank">www.gnuarm.com</a>. I then extracted to the folder named "Zaki". <br>



<br></div><div>I did export the path using the following line "export PATH=$PATH:/home/zaki/gnuarm-<div>
4.0.2/arm-elf/bin/ " and afterwards I typed "make firmware" and then got the errors I told you.<br></div>
<br></div>Awaiting your response,<br><font color="#888888"><font color="#888888"><font color="#888888"><br>Zaki.</font></font></font>
<br><br>---------- Forwarded message ----------<br>From: Holger Freyther <<a href="mailto:zecke@selfish.org">zecke@selfish.org</a>><br>To: <a href="mailto:baseband-devel@lists.osmocom.org">baseband-devel@lists.osmocom.org</a><br>
Date: Tue, 08 Jun 2010 21:12:05 +0800<br>Subject: Re: Trouble building Osmocom<br>On 06/08/2010 09:01 PM, Huseyin Turan wrote:<br>
<br>
> checking for gcc... gcc<br>
> checking for C compiler default output file name...<br>
> configure: error: in<br>
> `/home/name1/osmocom/osmocom-bb/src/shared/libosmocore/build-host':<br>
> configure: error: C compiler cannot create executables<br>
> See `config.log' for more details.<br>
<br>
Looking at the log file is always a good idea. It might have an eye<br>
opening effect....<br>
<br>
<br>
><br>
> That is; in gnuarm-4.0.2/arm-elf/bin there are executables like<br>
> gcc,g++,etc. which can be executed.<br>
> in gnuarm-4.0.2/bin there are executables like<br>
> arm-elf-gcc,arm-elf-g++,etc. which can not be executed.<br>
><br>
> Which path is true?<br>
<br>
You want to use your normal gcc and such, so putting<br>
gnuarm-4.0.2/arm-elf/bin in your path is not that clever. What is the<br>
issue with arm-elf-gcc? What happens when you try to execute it?<br>
<br>
<br>
<br>
<br>_______________________________________________<br>
baseband-devel mailing list<br>
<a href="mailto:baseband-devel@lists.osmocom.org">baseband-devel@lists.osmocom.org</a><br>
<a href="https://lists.osmocom.org/mailman/listinfo/baseband-devel" target="_blank">https://lists.osmocom.org/mailman/listinfo/baseband-devel</a><br>
<br></blockquote></div><br>