<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2017-05-30 18:31 GMT+03:00 Gedare Bloom <span dir="ltr"><<a href="mailto:gedare@rtems.org" target="_blank">gedare@rtems.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On Tue, May 30, 2017 at 7:49 AM, Denis Obrezkov <<a href="mailto:denisobrezkov@gmail.com">denisobrezkov@gmail.com</a>> wrote:<br>
> Hello,<br>
> I am trying to build RTEMS for RISC-V BSP. I applied Hesham's patch for RSB<br>
> and built RSB. But when I am trying to build rtems-generic target I get the<br>
> mistake.<br>
> This is my sequence of steps:<br>
><br>
> git clone git://<a href="http://git.rtems.org/rtems-source-builder.git" rel="noreferrer" target="_blank">git.rtems.org/rtems-<wbr>source-builder.git</a><br>
><br>
> #patch applied here<br>
><br>
> mkdir -p ./development/rtems/kernel<br>
><br>
> cd ./development/rtems/kernel<br>
><br>
> export RTEMS_DEV=~Projects/riscv/<wbr>rtems/development<br>
><br>
> git clone <a href="https://github.com/heshamelmatary/rtems-riscv.git" rel="noreferrer" target="_blank">https://github.com/<wbr>heshamelmatary/rtems-riscv.git</a><br>
><br>
> cd ..<br>
><br>
> mkdir rsb<br>
><br>
> mv ../../rtems-source-builder/ ./rsb/<br>
><br>
> cd rsb/rtems-source-builder/<wbr>rtems/<br>
><br>
> ../source-builder/sb-set-<wbr>builder --prefix=$RTEMS_DEV/rtems/4.12<br>
> 4.12/rtems-riscv32<br>
><br>
</span>is $RTEMS_DEV/rtems/4.12/bin in your $PATH?<br>
<br></blockquote><div>You are right, somehow it wasn't there.</div><div><br></div><div>Now I have another issue during make:</div><div><br></div><div><div>checking for RTEMS_CPU_MODEL... </div><div>checking for RTEMS_BSP_FAMILY... riscv_generic</div><div>checking for CPU_CFLAGS... (cached) -m32 -march=I</div><div>checking for CFLAGS_OPTIMIZE_V... (cached) -O0 -g</div><div>checking for style of include used by make... GNU</div><div>checking for riscv32-rtems4.12-gcc... riscv32-rtems4.12-gcc</div><div>checking for riscv32-rtems4.12-gcc... (cached) riscv32-rtems4.12-gcc</div><div>checking whether the C compiler works... no</div><div>configure: error: in `/home/reprofy/Projects/riscv/rtems/development/rtems/kernel/riscv32/riscv32-rtems4.12/c/riscv_generic':</div><div>configure: error: C compiler cannot create executables</div></div><div><br></div><div>Now I can see the error - there is no such an option "-m32" in 32-bit gcc.</div><div>But what does "(cached)" mean?</div></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Regards, Denis Obrezkov</div>
</div></div>