RSB fails to build qemu.bset
Chris Johns
chrisj at rtems.org
Sun May 3 23:29:27 UTC 2020
On 3/5/20 4:33 am, Joel Sherrill wrote:
>
>
> On Sat, May 2, 2020, 12:42 PM Cláudio Maia <clrrm at isep.ipp.pt
> <mailto:clrrm at isep.ipp.pt>> wrote:
>
> Hello everyone,
>
> 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.
> Unfortunately, when I build the toolchain using:
>
> $ ../source-builder/sb-set-builder --prefix=$RTEMS/5 devel/qemu.bset
>
> the following error occurs, for which I don't have a clue on how to fix:
>
> ...
> config: devel/qemu-git-1.cfg
> package:
> qemu-42d58e7c6760cb9c55627c28ae538e27dcf2f144-x86_64-linux-gnu-1
> Creating source directory: sources/git
> git: clone: git://git.qemu-project.org/qemu.git
> <http://git.qemu-project.org/qemu.git> -> sources/git/qemu.git
> git: pull: git://git.qemu-project.org/qemu.git
> <http://git.qemu-project.org/qemu.git>
> git: checkout: git://git.qemu-project.org/qemu.git
> <http://git.qemu-project.org/qemu.git> =>
> 42d58e7c6760cb9c55627c28ae538e27dcf2f144
> git: submodule: git://git.qemu-project.org/qemu.git
> <http://git.qemu-project.org/qemu.git> <= dtc
> download: http://patchwork.ozlabs.org/patch/406903/raw ->
> patches/Provide-the-missing-LIBUSB_LOG_LEVEL_-for-older-libusb-or-FreeBSD.-Providing-just-the-needed-value-as-a-defined..patch
> redirect:
> http://patchwork.ozlabs.org/project/qemu-devel/patch/1415176522-5944-1-git-send-email-...<see
> log>
> 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%)
> download:
> https://gaisler.org/qemu/0001-LEON3-Add-emulation-of-AMBA-plug-play.patch
> -> patches/0001-LEON3-Add-emulation-of-AMBA-plug-play.patch
> downloading:
> patches/0001-LEON3-Add-emulation-of-AMBA-plug-play.patch - 6.5kB of
> 6.5kB (100%)
> download:
> https://gaisler.org/qemu/0002-LEON3-Build-AMBA-plug-and-play-records-from-high-lev.patch
> ->
> patches/0002-LEON3-Build-AMBA-plug-and-play-records-from-high-lev.patch
> downloading:
> patches/0002-LEON3-Build-AMBA-plug-and-play-records-from-high-lev.patch
> - 8.5kB of 8.5kB (100%)
> download:
> https://gaisler.org/qemu/0003-LEON3-Init-UART-timers-and-CPU-if-we-run-a-RAM-image.patch
> ->
> patches/0003-LEON3-Init-UART-timers-and-CPU-if-we-run-a-RAM-image.patch
> downloading:
> patches/0003-LEON3-Init-UART-timers-and-CPU-if-we-run-a-RAM-image.patch
> - 2.0kB of 2.0kB (100%)
> download:
> http://git.rtems.org/rtems-tools/plain/tools/qemu/0001-openrisc-terminate-qemu-process...<see
> log> ->
> patches/0001-openrisc-terminate-qemu-process-upon-receiving-a-hal.patch
> redirect:
> https://git.rtems.org/rtems-tools/plain/tools/qemu/0001-openrisc-terminate-qemu-proces...<see
> log>
> downloading:
> patches/0001-openrisc-terminate-qemu-process-upon-receiving-a-hal.patch
> - 943.0 bytes of 943.0 bytes (100%)
> building:
> qemu-42d58e7c6760cb9c55627c28ae538e27dcf2f144-x86_64-linux-gnu-1
> error: building
> qemu-42d58e7c6760cb9c55627c28ae538e27dcf2f144-x86_64-linux-gnu-1
> Build FAILED
> See error report:
> rsb-report-qemu-42d58e7c6760cb9c55627c28ae538e27dcf2f144-x86_64-linux-gnu-1.txt
> error: building
> qemu-42d58e7c6760cb9c55627c28ae538e27dcf2f144-x86_64-linux-gnu-1
> Build Set: Time 0:07:51.094391
> Build FAILED
>
>
> The last lines of the log file:
>
> ...
> CC tests/qemu-iotests/socket_scm_helper.o
> GEN qemu-options.texi
> GEN qemu-monitor.texi
> GEN qemu-img-cmds.texi
> GEN qemu-tech.html
> GEN qemu-nbd.8
> GEN qmp-commands.txt
> GEN kvm_stat.1
> 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/texi2pod.pl
> <http://texi2pod.pl> line 320.
> GEN qga/qapi-generated/qga-qapi-types.h
> Makefile:509: recipe for target 'qemu-nbd.8' failed
> make: *** [qemu-nbd.8] Error 255
> make: *** Waiting for unfinished jobs....
> 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/texi2pod.pl
> <http://texi2pod.pl> line 320.
> Makefile:515: recipe for target 'kvm_stat.1' failed
> make: *** [kvm_stat.1] Error 255
> shell cmd failed: /bin/sh -ex
> /home/crrm/Documents/projects/rtems/rsb/rtems/build/qemu-42d58e7c6760cb9c55627c28ae538e27dcf2f144-x86_64-linux-gnu-1/do-build
>
> Can someone help me fixing this?
>
> 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.
> Do you know if such information exists?
>
>
> If this is a recent Linux distribution, try the qemu4 bset.
>
> The qemu.bset is for an older version of qemu which seems to have build
> issues on newer hosts.
I do not recall why we have both? Is there a need?
> Qemu5 was also recently released.
>
> I suspect we need to renamed this to have a major number on the end.
> That might encourage picking a newer release.
Do we need the major version number on the end? Why do we have it there?
> FWIW qemu4 builds on Centos 7 which means newer qemu on older Linux
> works where older qemu on newer Linux doesn't.
What hosts build qemu4?
chris
More information about the devel
mailing list