[MacPorts] #62116: Unable to install QEMU on Apple M1 Silicon

MacPorts noreply at macports.org
Thu Jan 21 18:22:32 UTC 2021


#62116: Unable to install QEMU on Apple M1 Silicon
----------------------------------+--------------------
 Reporter:  Silve2611             |      Owner:  (none)
     Type:  defect                |     Status:  new
 Priority:  Normal                |  Milestone:
Component:  ports                 |    Version:  2.6.4
 Keywords:  apple, silicon, qemu  |       Port:
----------------------------------+--------------------
 I am unable to install QEMU on the new Apple M1 Silicon.

 I am getting a Fatal error:

 {{{
 :info:build In file included from ../qemu-5.2.0/target/i386/cpu.h:26:
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_emulators_qemu/qemu/work/qemu-5.2.0/include/exec
 /cpu-defs.h:29:10: fatal error: 'tcg-target.h' file not found
 :info:build #include "tcg-target.h"
 :info:build          ^~~~~~~~~~~~~~
 :info:build 1 error generated.
 :info:build [742/2317] /usr/bin/clang -Ilibqemu-i386-softmmu.fa.p -I.
 -I../qemu-5.2.0 -Itarget/i386 -I../qemu-5.2.0/target/i386 -Iqapi -Itrace
 -Iui -Iui/shader -I/opt/local/include/pixman-1 -I/opt/local/include
 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -Xclang
 -fcolor-diagnostics -pipe -Wall -Winvalid-pch -std=gnu99 -O2 -g
 -DOS_OBJECT_USE_OBJC=0 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wundef -Wwrite-
 strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv
 -Wold-style-definition -Wtype-limits -Wformat-security -Wformat-y2k
 -Winit-self -Wignored-qualifiers -Wempty-body -Wnested-externs -Wendif-
 labels -Wexpansion-to-defined -Wno-initializer-overrides -Wno-missing-
 include-dirs -Wno-shift-negative-value -Wno-string-plus-int -Wno-typedef-
 redefinition -Wno-tautological-type-limit-compare -fstack-protector-strong
 -iquote
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_emulators_qemu/qemu/work/qemu-5.2.0/tcg/unknown
 -iquote . -iquote
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_emulators_qemu/qemu/work/qemu-5.2.0
 -iquote
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_emulators_qemu/qemu/work/qemu-5.2.0/accel/tcg
 -iquote
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_emulators_qemu/qemu/work/qemu-5.2.0/include
 -iquote
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_emulators_qemu/qemu/work/qemu-5.2.0/disas/libvixl
 -D_REENTRANT -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk -arch
 arm64 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
 -DNEED_CPU_H '-DCONFIG_TARGET="i386-softmmu-config-target.h"'
 '-DCONFIG_DEVICES="i386-softmmu-config-devices.h"' -MD -MQ
 libqemu-i386-softmmu.fa.p/hw_i386_pc_piix.c.o -MF
 libqemu-i386-softmmu.fa.p/hw_i386_pc_piix.c.o.d -o
 libqemu-i386-softmmu.fa.p/hw_i386_pc_piix.c.o -c
 ../qemu-5.2.0/hw/i386/pc_piix.c
 :info:build FAILED: libqemu-i386-softmmu.fa.p/hw_i386_pc_piix.c.o
 :info:build /usr/bin/clang -Ilibqemu-i386-softmmu.fa.p -I. -I../qemu-5.2.0
 -Itarget/i386 -I../qemu-5.2.0/target/i386 -Iqapi -Itrace -Iui -Iui/shader
 -I/opt/local/include/pixman-1 -I/opt/local/include
 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -Xclang
 -fcolor-diagnostics -pipe -Wall -Winvalid-pch -std=gnu99 -O2 -g
 -DOS_OBJECT_USE_OBJC=0 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wundef -Wwrite-
 strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv
 -Wold-style-definition -Wtype-limits -Wformat-security -Wformat-y2k
 -Winit-self -Wignored-qualifiers -Wempty-body -Wnested-externs -Wendif-
 labels -Wexpansion-to-defined -Wno-initializer-overrides -Wno-missing-
 include-dirs -Wno-shift-negative-value -Wno-string-plus-int -Wno-typedef-
 redefinition -Wno-tautological-type-limit-compare -fstack-protector-strong
 -iquote
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_emulators_qemu/qemu/work/qemu-5.2.0/tcg/unknown
 -iquote . -iquote
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_emulators_qemu/qemu/work/qemu-5.2.0
 -iquote
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_emulators_qemu/qemu/work/qemu-5.2.0/accel/tcg
 -iquote
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_emulators_qemu/qemu/work/qemu-5.2.0/include
 -iquote
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_emulators_qemu/qemu/work/qemu-5.2.0/disas/libvixl
 -D_REENTRANT -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk -arch
 arm64 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
 -DNEED_CPU_H '-DCONFIG_TARGET="i386-softmmu-config-target.h"'
 '-DCONFIG_DEVICES="i386-softmmu-config-devices.h"' -MD -MQ
 libqemu-i386-softmmu.fa.p/hw_i386_pc_piix.c.o -MF
 libqemu-i386-softmmu.fa.p/hw_i386_pc_piix.c.o.d -o
 libqemu-i386-softmmu.fa.p/hw_i386_pc_piix.c.o -c
 ../qemu-5.2.0/hw/i386/pc_piix.c
 :info:build In file included from ../qemu-5.2.0/hw/i386/pc_piix.c:43:
 :info:build In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_emulators_qemu/qemu/work/qemu-5.2.0/include/sysemu/kvm.h:254:
 :info:build In file included from ../qemu-5.2.0/target/i386/cpu.h:26:
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_emulators_qemu/qemu/work/qemu-5.2.0/include/exec
 /cpu-defs.h:29:10: fatal error: 'tcg-target.h' file not found
 :info:build #include "tcg-target.h"
 :info:build          ^~~~~~~~~~~~~~
 :info:build 1 error generated.
 :info:build [743/2317] /usr/bin/clang -Ilibblockdev.fa.p -I.
 -I../qemu-5.2.0 -Iqapi -Itrace -Iui -Iui/shader -I/opt/local/include
 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -Xclang
 -fcolor-diagnostics -pipe -Wall -Winvalid-pch -std=gnu99 -O2 -g
 -DOS_OBJECT_USE_OBJC=0 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wundef -Wwrite-
 strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv
 -Wold-style-definition -Wtype-limits -Wformat-security -Wformat-y2k
 -Winit-self -Wignored-qualifiers -Wempty-body -Wnested-externs -Wendif-
 labels -Wexpansion-to-defined -Wno-initializer-overrides -Wno-missing-
 include-dirs -Wno-shift-negative-value -Wno-string-plus-int -Wno-typedef-
 redefinition -Wno-tautological-type-limit-compare -fstack-protector-strong
 -iquote
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_emulators_qemu/qemu/work/qemu-5.2.0/tcg/unknown
 -iquote . -iquote
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_emulators_qemu/qemu/work/qemu-5.2.0
 -iquote
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_emulators_qemu/qemu/work/qemu-5.2.0/accel/tcg
 -iquote
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_emulators_qemu/qemu/work/qemu-5.2.0/include
 -iquote
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_emulators_qemu/qemu/work/qemu-5.2.0/disas/libvixl
 -D_REENTRANT -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk -arch
 arm64 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk -MD
 -MQ libblockdev.fa.p/nbd_server.c.o -MF libblockdev.fa.p/nbd_server.c.o.d
 -o libblockdev.fa.p/nbd_server.c.o -c ../qemu-5.2.0/nbd/server.c
 :info:build ninja: build stopped: subcommand failed.
 :info:build make: *** [run-ninja] Error 1
 :info:build make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_emulators_qemu/qemu/work/build'
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_emulators_qemu/qemu/work/build"
 && /usr/bin/make -j8 -w all V=1
 :info:build Exit code: 2
 :error:build Failed to build qemu: command execution failed
 :debug:build Error code: CHILDSTATUS 831 2
 :debug:build Backtrace: command execution failed
 :debug:build     while executing
 :debug:build "system {*}$notty {*}$nice $fullcmdstring"
 :debug:build     invoked from within
 :debug:build "command_exec build"
 :debug:build     (procedure "portbuild::build_main" line 8)
 :debug:build     invoked from within
 :debug:build "$procedure $targetname"
 :error:build See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_emulators_qemu/qemu/main.log
 for details.
 }}}

 It seem that he is missing the header file tcg-target.h but I do not know
 where to find it. It seems that Tiny Code Generator (TCQ) is part of the
 project.

-- 
Ticket URL: <https://trac.macports.org/ticket/62116>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list