[RTEMS Project] #4890: Defect: devel/qemu does not build

RTEMS trac trac at rtems.org
Fri Mar 24 04:03:34 UTC 2023


#4890: Defect: devel/qemu does not build
------------------------+------------------------------
  Reporter:  jkillelea  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  normal     |  Milestone:
 Component:  tool       |    Version:  6
  Severity:  normal     |   Keywords:  qemu devel tools
Blocked By:             |   Blocking:
------------------------+------------------------------
 The command `../source-builder/sb-set-builder
 --prefix=$HOME/projects/rtems/6 devel/qemu.bset` fails on Ubuntu 22.04.

 The reported error is:

 ```
 config: devel/qemu-5.2.0-1.cfg
 package: qemu-5.2.0-rc1-x86_64-linux-gnu-1
 building: qemu-5.2.0-rc1-x86_64-linux-gnu-1
 error: building qemu-5.2.0-rc1-x86_64-linux-gnu-1
 Build FAILED
   See error report: rsb-report-qemu-5.2.0-rc1-x86_64-linux-gnu-1.txt
   Note: In some cases the error appears only in
   the complete build log (see --log option)
 error: building qemu-5.2.0-rc1-x86_64-linux-gnu-1
 Build Set: Time 0:04:25.439249
 Build FAILED
 ```

 The end of `rsb-report-qemu-5.2.0-rc1-x86_64-linux-gnu-1.txt` says:
 ```
 NOTE: guest cross-compilers enabled: cc cc
 The Meson build system
 Version: 0.63.2
 Source dir:
 /home/jacob/projects/rtems/src/rsb/rtems/build/qemu-5.2.0-rc1-x86_64
 -linux-gnu-1/qemu-5.2.0-rc1
 Build dir:
 /home/jacob/projects/rtems/src/rsb/rtems/build/qemu-5.2.0-rc1-x86_64
 -linux-gnu-1/build
 Build type: native build
 WARNING: You should add the boolean check kwarg to the run_command call.
          It currently defaults to false,
          but it will default to true in future releases of meson.
          See also: https://github.com/mesonbuild/meson/issues/9300
 Project name: qemu
 Project version: 5.1.91

 ../qemu-5.2.0-rc1/meson.build:1:0: ERROR: Compiler gcc -O2 -g -pipe
 -I/home/jacob/projects/rtems/src/rsb/rtems/build/tmp/sb-1000/devel/qemu/home/jacob/projects/rtems/6/include
 -I/home/jacob/projects/rtems/src/rsb/rtems/build/tmp/sb-1000/devel/qemu/home/jacob/projects/rtems/6/include/glib-2.0
 -I/home/jacob/projects/rtems/src/rsb/rtems/build/tmp/sb-1000/devel/qemu/home/jacob/projects/rtems/6/lib/glib-2.0/include
 -I/home/jacob/projects/rtems/src/rsb/rtems/build/tmp/sb-1000/devel/qemu/home/jacob/projects/rtems/6/include/pixman-1
 can not compile programs.

 A full log can be found at
 /home/jacob/projects/rtems/src/rsb/rtems/build/qemu-5.2.0-rc1-x86_64
 -linux-gnu-1/build/meson-logs/meson-log.txt

 ERROR: meson setup failed

 shell cmd failed: /bin/sh -ex
 /home/jacob/projects/rtems/src/rsb/rtems/build/qemu-5.2.0-rc1-x86_64
 -linux-gnu-1/do-build
 error: building qemu-5.2.0-rc1-x86_64-linux-gnu-1
 ```

 `build/qemu-5.2.0-rc1-x86_64-linux-gnu-1/build/meson-logs/meson-log.txt`
 says:

 ```
 linker stdout:
 GNU ld (GNU Binutils for Ubuntu) 2.39
 Copyright (C) 2022 Free Software Foundation, Inc.
 This program is free software; you may redistribute it under the terms of
 the GNU General Public License version 3 or (at your option) a later
 version.
 This program has absolutely no warranty.

 linker stderr:
 collect2 version 12.2.0
 /usr/bin/ld -plugin /usr/lib/gcc/x86_64-linux-gnu/12/liblto_plugin.so
 -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/12/lto-wrapper -plugin-
 opt=-fresolution=/tmp/ccm0GBvx.res -plugin-opt=-pass-through=-lgcc
 -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-
 opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-
 frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker
 /lib64/ld-linux-x86-64.so.2 -pie -z now -z relro /usr/lib/gcc/x86_64
 -linux-gnu/12/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-
 gnu/12/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-
 gnu/12/crtbeginS.o
 -L/home/jacob/projects/rtems/src/rsb/rtems/build/tmp/sb-1000/devel/qemu/home/jacob/projects/rtems/6/lib
 -L/usr/lib/gcc/x86_64-linux-gnu/12 -L/usr/lib/gcc/x86_64-linux-
 gnu/12/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-
 gnu/12/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib
 -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-
 gnu/12/../../.. --version -rpath /home/jacob/projects/rtems/6/lib -lgcc
 --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-
 needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-linux-gnu/12/crtendS.o
 /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/crtn.o

 Sanity testing C compiler: gcc -O2 -g -pipe
 -I/home/jacob/projects/rtems/src/rsb/rtems/build/tmp/sb-1000/devel/qemu/home/jacob/projects/rtems/6/include
 -I/home/jacob/projects/rtems/src/rsb/rtems/build/tmp/sb-1000/devel/qemu/home/jacob/projects/rtems/6/include/glib-2.0
 -I/home/jacob/projects/rtems/src/rsb/rtems/build/tmp/sb-1000/devel/qemu/home/jacob/projects/rtems/6/lib/glib-2.0/include
 -I/home/jacob/projects/rtems/src/rsb/rtems/build/tmp/sb-1000/devel/qemu/home/jacob/projects/rtems/6/include/pixman-1
 Is cross compiler: False.
 Sanity check compiler command line: gcc -O2 -g -pipe
 -I/home/jacob/projects/rtems/src/rsb/rtems/build/tmp/sb-1000/devel/qemu/home/jacob/projects/rtems/6/include
 -I/home/jacob/projects/rtems/src/rsb/rtems/build/tmp/sb-1000/devel/qemu/home/jacob/projects/rtems/6/include/glib-2.0
 -I/home/jacob/projects/rtems/src/rsb/rtems/build/tmp/sb-1000/devel/qemu/home/jacob/projects/rtems/6/lib/glib-2.0/include
 -I/home/jacob/projects/rtems/src/rsb/rtems/build/tmp/sb-1000/devel/qemu/home/jacob/projects/rtems/6/include/pixman-1
 sanitycheckc.c -o sanitycheckc.exe  -D_FILE_OFFSET_BITS=64 -Wl,-rpath
 -Wl,/home/jacob/projects/rtems/6/lib
 -L/home/jacob/projects/rtems/src/rsb/rtems/build/tmp/sb-1000/devel/qemu/home/jacob/projects/rtems/6/lib
 Sanity check compile stdout:

 -----
 Sanity check compile stderr:
 /usr/bin/ld: cannot find : No such file or directory
 collect2: error: ld returned 1 exit status

 -----

 ../qemu-5.2.0-rc1/meson.build:1:0: ERROR: Compiler gcc -O2 -g -pipe
 -I/home/jacob/projects/rtems/src/rsb/rtems/build/tmp/sb-1000/devel/qemu/home/jacob/projects/rtems/6/include
 -I/home/jacob/projects/rtems/src/rsb/rtems/build/tmp/sb-1000/devel/qemu/home/jacob/projects/rtems/6/include/glib-2.0
 -I/home/jacob/projects/rtems/src/rsb/rtems/build/tmp/sb-1000/devel/qemu/home/jacob/projects/rtems/6/lib/glib-2.0/include
 -I/home/jacob/projects/rtems/src/rsb/rtems/build/tmp/sb-1000/devel/qemu/home/jacob/projects/rtems/6/include/pixman-1
 can not compile programs.
 ```

 It looks like there's an argument missing, since `ld cannot find <empty
 string here?>:`.

--
Ticket URL: <http://devel.rtems.org/ticket/4890>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list