<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, May 2, 2020, 12:42 PM Cláudio Maia <<a href="mailto:clrrm@isep.ipp.pt">clrrm@isep.ipp.pt</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello everyone,<br>
<br>
I'm trying to build the toolchain for the build set devel/qemu.bset with the goal of executing RTEMS applications on top of LEON3 bsp on QEMU.<br>
Unfortunately, when I build the toolchain using:<br>
<br>
$ ../source-builder/sb-set-builder --prefix=$RTEMS/5 devel/qemu.bset<br>
<br>
the following error occurs, for which I don't have a clue on how to fix:<br>
<br>
...<br>
config: devel/qemu-git-1.cfg<br>
package: qemu-42d58e7c6760cb9c55627c28ae538e27dcf2f144-x86_64-linux-gnu-1<br>
Creating source directory: sources/git<br>
git: clone: git://<a href="http://git.qemu-project.org/qemu.git" rel="noreferrer noreferrer" target="_blank">git.qemu-project.org/qemu.git</a> -> sources/git/qemu.git<br>
git: pull: git://<a href="http://git.qemu-project.org/qemu.git" rel="noreferrer noreferrer" target="_blank">git.qemu-project.org/qemu.git</a><br>
git: checkout: git://<a href="http://git.qemu-project.org/qemu.git" rel="noreferrer noreferrer" target="_blank">git.qemu-project.org/qemu.git</a> => 42d58e7c6760cb9c55627c28ae538e27dcf2f144<br>
git: submodule: git://<a href="http://git.qemu-project.org/qemu.git" rel="noreferrer noreferrer" target="_blank">git.qemu-project.org/qemu.git</a> <= dtc<br>
download: <a href="http://patchwork.ozlabs.org/patch/406903/raw" rel="noreferrer noreferrer" target="_blank">http://patchwork.ozlabs.org/patch/406903/raw</a> -> patches/Provide-the-missing-LIBUSB_LOG_LEVEL_-for-older-libusb-or-FreeBSD.-Providing-just-the-needed-value-as-a-defined..patch<br>
 redirect: <a href="http://patchwork.ozlabs.org/project/qemu-devel/patch/1415176522-5944-1-git-send-email-.." rel="noreferrer noreferrer" target="_blank">http://patchwork.ozlabs.org/project/qemu-devel/patch/1415176522-5944-1-git-send-email-..</a>.<see log><br>
downloading: patches/Provide-the-missing-LIBUSB_LOG_LEVEL_-for-older-libusb-or-FreeBSD.-Providing-just-the-needed-value-as-a-defined..patch - 666.0 bytes of 666.0 bytes (100%)<br>
download: <a href="https://gaisler.org/qemu/0001-LEON3-Add-emulation-of-AMBA-plug-play.patch" rel="noreferrer noreferrer" target="_blank">https://gaisler.org/qemu/0001-LEON3-Add-emulation-of-AMBA-plug-play.patch</a> -> patches/0001-LEON3-Add-emulation-of-AMBA-plug-play.patch<br>
downloading: patches/0001-LEON3-Add-emulation-of-AMBA-plug-play.patch - 6.5kB of 6.5kB (100%)  <br>
download: <a href="https://gaisler.org/qemu/0002-LEON3-Build-AMBA-plug-and-play-records-from-high-lev.patch" rel="noreferrer noreferrer" target="_blank">https://gaisler.org/qemu/0002-LEON3-Build-AMBA-plug-and-play-records-from-high-lev.patch</a> -> patches/0002-LEON3-Build-AMBA-plug-and-play-records-from-high-lev.patch<br>
downloading: patches/0002-LEON3-Build-AMBA-plug-and-play-records-from-high-lev.patch - 8.5kB of 8.5kB (100%)  <br>
download: <a href="https://gaisler.org/qemu/0003-LEON3-Init-UART-timers-and-CPU-if-we-run-a-RAM-image.patch" rel="noreferrer noreferrer" target="_blank">https://gaisler.org/qemu/0003-LEON3-Init-UART-timers-and-CPU-if-we-run-a-RAM-image.patch</a> -> patches/0003-LEON3-Init-UART-timers-and-CPU-if-we-run-a-RAM-image.patch<br>
downloading: patches/0003-LEON3-Init-UART-timers-and-CPU-if-we-run-a-RAM-image.patch - 2.0kB of 2.0kB (100%)  <br>
download: <a href="http://git.rtems.org/rtems-tools/plain/tools/qemu/0001-openrisc-terminate-qemu-process.." rel="noreferrer noreferrer" target="_blank">http://git.rtems.org/rtems-tools/plain/tools/qemu/0001-openrisc-terminate-qemu-process..</a>.<see log> -> patches/0001-openrisc-terminate-qemu-process-upon-receiving-a-hal.patch<br>
 redirect: <a href="https://git.rtems.org/rtems-tools/plain/tools/qemu/0001-openrisc-terminate-qemu-proces.." rel="noreferrer noreferrer" target="_blank">https://git.rtems.org/rtems-tools/plain/tools/qemu/0001-openrisc-terminate-qemu-proces..</a>.<see log><br>
downloading: patches/0001-openrisc-terminate-qemu-process-upon-receiving-a-hal.patch - 943.0 bytes of 943.0 bytes (100%)<br>
building: qemu-42d58e7c6760cb9c55627c28ae538e27dcf2f144-x86_64-linux-gnu-1<br>
error: building qemu-42d58e7c6760cb9c55627c28ae538e27dcf2f144-x86_64-linux-gnu-1<br>
Build FAILED<br>
  See error report: rsb-report-qemu-42d58e7c6760cb9c55627c28ae538e27dcf2f144-x86_64-linux-gnu-1.txt<br>
error: building qemu-42d58e7c6760cb9c55627c28ae538e27dcf2f144-x86_64-linux-gnu-1<br>
Build Set: Time 0:07:51.094391<br>
Build FAILED<br>
<br>
<br>
The last lines of the log file:<br>
<br>
...<br>
  CC    tests/qemu-iotests/socket_scm_helper.o<br>
  GEN   qemu-options.texi<br>
  GEN   qemu-monitor.texi<br>
  GEN   qemu-img-cmds.texi<br>
  GEN   qemu-tech.html<br>
  GEN   qemu-nbd.8<br>
  GEN   qmp-commands.txt<br>
  GEN   kvm_stat.1<br>
Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/^\@strong{ <-- HERE (.*)}$/ at /home/crrm/Documents/projects/rtems/rsb/rtems/build/qemu-42d58e7c6760cb9c55627c28ae538e27dcf2f144-x86_64-linux-gnu-1/qemu-42d58e7c6760cb9c55627c28ae538e27dcf2f144/scripts/<a href="http://texi2pod.pl" rel="noreferrer noreferrer" target="_blank">texi2pod.pl</a> line 320.<br>
  GEN   qga/qapi-generated/qga-qapi-types.h<br>
Makefile:509: recipe for target 'qemu-nbd.8' failed<br>
make: *** [qemu-nbd.8] Error 255<br>
make: *** Waiting for unfinished jobs....<br>
Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/^\@strong{ <-- HERE (.*)}$/ at /home/crrm/Documents/projects/rtems/rsb/rtems/build/qemu-42d58e7c6760cb9c55627c28ae538e27dcf2f144-x86_64-linux-gnu-1/qemu-42d58e7c6760cb9c55627c28ae538e27dcf2f144/scripts/<a href="http://texi2pod.pl" rel="noreferrer noreferrer" target="_blank">texi2pod.pl</a> line 320.<br>
Makefile:515: recipe for target 'kvm_stat.1' failed<br>
make: *** [kvm_stat.1] Error 255<br>
shell cmd failed: /bin/sh -ex  /home/crrm/Documents/projects/rtems/rsb/rtems/build/qemu-42d58e7c6760cb9c55627c28ae538e27dcf2f144-x86_64-linux-gnu-1/do-build<br>
<br>
Can someone help me fixing this?<br>
<br>
As a side note, I was looking for information on RTEMS documentation about how to run RTEMS applications on LEON3 under QEMU, and I could not find any.<br>
Do you know if such information exists?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">If this is a recent Linux distribution, try the qemu4 bset. </div><div dir="auto"><br></div><div dir="auto">The qemu.bset is for an older version of qemu which seems to have build issues on newer hosts. </div><div dir="auto"><br></div><div dir="auto">Qemu5 was also recently released.</div><div dir="auto"><br></div><div dir="auto">I suspect we need to renamed this to have a major number on the end. That might encourage picking a newer release.</div><div dir="auto"><br></div><div dir="auto">FWIW qemu4 builds on Centos 7 which means newer qemu on older Linux works where older qemu on newer Linux doesn't. </div><div dir="auto"><br></div><div dir="auto">--joel</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Regards,<br>
Cláudio<br>
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank" rel="noreferrer">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a></blockquote></div></div></div>