<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><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>
</div></div>