<div dir="ltr"><font face="monospace, monospace">knowing that!, how can I cross compile the rtems for stm32F4 board?</font><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">regards</font></div><div><font face="monospace, monospace">Haithem.</font></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 2, 2016 at 11:00 AM, haithem rahmani <span dir="ltr"><<a href="mailto:haithem.rahmani@gmail.com" target="_blank">haithem.rahmani@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><font face="monospace, monospace">$ dnf info gcc-arm-linux-gnu</font></div><div><font face="monospace, monospace">Last metadata expiration check performed 2 days, 0:00:26 ago on Tue May 31 10:49:03 2016.</font></div><div><font face="monospace, monospace">Installed Packages</font></div><div><font face="monospace, monospace">Name : gcc-arm-linux-gnu</font></div><div><font face="monospace, monospace">Arch : x86_64</font></div><div><font face="monospace, monospace">Epoch : 0</font></div><div><font face="monospace, monospace">Version : 5.3.1</font></div><div><font face="monospace, monospace">Release : 2.fc23</font></div><div><font face="monospace, monospace">Size : 39 M</font></div><div><font face="monospace, monospace">Repo : @System</font></div><div><font face="monospace, monospace">From repo : updates</font></div><div><font face="monospace, monospace">Summary : Cross-build binary utilities for arm-linux-gnu</font></div><div><font face="monospace, monospace">URL : <a href="http://gcc.gnu.org" target="_blank">http://gcc.gnu.org</a></font></div><div><font face="monospace, monospace">License : GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD</font></div><div><font face="monospace, monospace">Description : Cross-build GNU C compiler.</font></div><div><font face="monospace, monospace"> : </font></div><div><font face="monospace, monospace"> : Only building kernels is currently supported. Support for cross-building</font></div><div><font face="monospace, monospace"> : user space programs is not currently provided as that would massively multiply</font></div><div><font face="monospace, monospace"> : the number of packages.</font></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 2, 2016 at 11:00 AM, haithem rahmani <span dir="ltr"><<a href="mailto:haithem.rahmani@gmail.com" target="_blank">haithem.rahmani@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Got the reason!<div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 2, 2016 at 10:54 AM, haithem rahmani <span dir="ltr"><<a href="mailto:haithem.rahmani@gmail.com" target="_blank">haithem.rahmani@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><font face="monospace, monospace">Hi,</font><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">I'm trying to crosscompile the rtems on Fedora 23 using the ARM GNU toolchain, but I failed to.</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">the first problem I met was the following:</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><div>configure: error: in `/home/rahmanih/work/git_repos/misc/rtems/__build__/arm-linux-gnu/tools/build':</div><div>configure: error: C compiler cannot create executables</div><div>See `config.log' for more details</div><div>configure: error: /bin/sh '../../../../tools/build/configure' failed for tools/build</div><div><br></div><div><br></div><div>since the 'tools' are supposed to be host binaries, I've forced the CC and the CXX to use the host compilers as below.</div></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><br></font></div><div><div><font face="monospace, monospace">diff --git a/tools/build/<a href="http://configure.ac" target="_blank">configure.ac</a> b/tools/build/<a href="http://configure.ac" target="_blank">configure.ac</a></font></div><div><font face="monospace, monospace">index d1e22da..0a0bff8 100644</font></div><div><font face="monospace, monospace">--- a/tools/build/<a href="http://configure.ac" target="_blank">configure.ac</a></font></div><div><font face="monospace, monospace">+++ b/tools/build/<a href="http://configure.ac" target="_blank">configure.ac</a></font></div><div><font face="monospace, monospace">@@ -2,6 +2,8 @@ AC_PREREQ([2.69])</font></div><div><font face="monospace, monospace"> AC_INIT([rtems-tools-build],[_RTEMS_VERSION],[<a href="https://devel.rtems.org/newticket" target="_blank">https://devel.rtems.org/newticket</a>])</font></div><div><font face="monospace, monospace"> AC_CONFIG_SRCDIR([<a href="http://install-if-change.in" target="_blank">install-if-change.in</a>])</font></div><div><font face="monospace, monospace"> RTEMS_TOP(../..)</font></div><div><font face="monospace, monospace">+CC=gcc</font></div><div><font face="monospace, monospace">+CXX=g++</font></div><div><font face="monospace, monospace"> </font></div><div><font face="monospace, monospace"> AC_CANONICAL_HOST</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">the configure step was o.k, but got errors when building, below are more details:</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><div>make[3]: Entering directory '/home/rahmanih/work/git_repos/misc/rtems/__build__/arm-linux-gnu/c/stm32f4'</div><div>gmake[3]: Leaving directory '/home/rahmanih/work/git_repos/misc/rtems/__build__/arm-linux-gnu/c/stm32f4'</div><div>checking for RTEMS_CPU_MODEL... </div><div>checking for RTEMS_BSP_FAMILY... stm32f4</div><div>checking for CPU_CFLAGS... (cached) -march=armv7-m -mthumb</div><div>checking for CFLAGS_OPTIMIZE_V... (cached) -O2 -g -ffunction-sections -fdata-sections</div><div>checking for style of include used by gmake... GNU</div><div>checking for arm-linux-gnu-gcc... arm-linux-gnu-gcc</div><div>checking for arm-linux-gnu-gcc... (cached) arm-linux-gnu-gcc</div><div>checking whether the C compiler works... no</div><div>configure: error: in `/home/rahmanih/work/git_repos/misc/rtems/__build__/arm-linux-gnu/c/stm32f4':</div><div>configure: error: C compiler cannot create executables</div><div><br></div><div><br></div><div>the config.log contains:</div><div><div><br></div><div>configure:3523: checking whether the C compiler works</div><div>configure:3545: arm-linux-gnu-gcc -march=armv7-m -mthumb -O2 -g -ffunction-sections -fdata-sections conftest.c >&5</div><div>/usr/bin/arm-linux-gnu-ld: cannot find crt1.o: No such file or directory</div><div>/usr/bin/arm-linux-gnu-ld: cannot find crti.o: No such file or directory</div><div>/usr/bin/arm-linux-gnu-ld: cannot find -lc</div><div>/usr/bin/arm-linux-gnu-ld: cannot find crtn.o: No such file or directory</div><div>collect2: error: ld returned 1 exit status</div><div>configure:3549: $? = 1</div></div><div><br></div><div>the command I used to configure the rtems is:</div></font></div><div><span style="font-family:monospace,monospace">$> ../configure --host=arm-linux-gnu --enable-rtemsbsp=stm32f4 --enable-networking --enable-posix --enable-cxx </span><br></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">any idea about the issue?</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">regards</font></div><span><font color="#888888"><div><font face="monospace, monospace">Haithem.</font></div><div><font face="monospace, monospace"><br></font></div><font face="monospace, monospace">-- <br></font><div data-smartmail="gmail_signature"><div dir="ltr"><span style="font-size:medium"><b><div><span style="color:rgb(51,51,51);text-align:justify;background-color:rgb(255,255,255)"><i><font face="monospace, monospace">Never say that's "impossible", the word itself says "I'm Possible"</font></i></span></div></b></span></div></div>
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><font face="'HARF KFCPHQ'"><span style="font-size:medium"><b><div><span style="background-color:rgb(255,255,255);color:rgb(51,51,51);font-family:helvetica,arial,verdana,sans-serif;text-align:justify"><i>Never say that's "impossible", the word itself says "I'm Possible"</i></span></div></b></span></font></div></div>
</div></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><font face="'HARF KFCPHQ'"><span style="font-size:medium"><b><div><span style="background-color:rgb(255,255,255);color:rgb(51,51,51);font-family:helvetica,arial,verdana,sans-serif;text-align:justify"><i>Never say that's "impossible", the word itself says "I'm Possible"</i></span></div></b></span></font></div></div>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font face="'HARF KFCPHQ'"><span style="font-size:medium"><b><div><span style="background-color:rgb(255,255,255);color:rgb(51,51,51);font-family:helvetica,arial,verdana,sans-serif;text-align:justify"><i>Never say that's "impossible", the word itself says "I'm Possible"</i></span></div></b></span></font></div></div>
</div>