knazarov / homebrew-qemu-virgl

A homebrew tap for qemu with support for 3d accelerated guests
414 stars 67 forks source link

ninja: build stopped: subcommand failed. #80

Closed saschasc closed 2 years ago

saschasc commented 2 years ago

I wanted to give your repo a try. It looks really interesting. I've installed Big Sur 11.6.2. It is strange since I can't really see any error.

clang --version Apple clang version 13.0.0 (clang-1300.0.29.30) Target: x86_64-apple-darwin20.6.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

clang++ --version Apple clang version 13.0.0 (clang-1300.0.29.30) Target: x86_64-apple-darwin20.6.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

[1247/6677] clang -m64 -mcx16 -Ilibcommon.fa.p -I../capstone/include/capstone -I../dtc/libfdt -I../slirp -I../slirp/src -I/usr/local/Cellar/pixman/0.40.0/include/pixman-1 -I/usr/local/Cellar/spice-protocol/0.14.3/include/spice-1 -I/usr/local/Cellar/libpng/1.6.37/include/libpng16 -I/usr/local/Cellar/jpeg/9e/include -I/usr/local/Cellar/libidn2/2.3.2/include -I/usr/local/Cellar/libtasn1/4.18.0/include -I/usr/local/Cellar/nettle/3.7.3/include -I/usr/local/Cellar/p11-kit/0.24.1/include/p11-kit-1 -I/usr/local/Cellar/gnutls/3.6.16_1/include -I/usr/local/Cellar/libffi/3.4.2/include -I/usr/local/Cellar/pcre/8.45/include -I/usr/local/Cellar/glib/2.70.3/include -I/usr/local/Cellar/glib/2.70.3/include/glib-2.0 -I/usr/local/Cellar/glib/2.70.3/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/glib/2.70.3/include/gio-unix-2.0 -I/usr/local/Cellar/ncurses/6.3/include/ncursesw -I/usr/local/Cellar/ncurses/6.3/include -I/usr/local/Cellar/libepoxy-angle/20210315.1/include -I/usr/local/Cellar/virglrenderer/20211212.1/include -I/usr/local/Cellar/virglrenderer/20211212.1/include/virgl -I/usr/local/Cellar/libusb/1.0.24/include/libusb-1.0 -I/usr/local/opt/libangle/include -I/usr/local/opt/libepoxy-angle/include -I/usr/local/opt/virglrenderer/include -I/usr/local/opt/spice-protocol/include/spice-1 -fcolor-diagnostics -Wall -Winvalid-pch -std=gnu11 -O2 -g -iquote . -iquote /private/tmp/qemu-virgl-20220128-4215-b2soft -iquote /private/tmp/qemu-virgl-20220128-4215-b2soft/include -iquote /private/tmp/qemu-virgl-20220128-4215-b2soft/disas/libvixl -iquote /private/tmp/qemu-virgl-20220128-4215-b2soft/tcg/i386 -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 -Wno-psabi -fstack-protector-strong -D_DARWIN_C_SOURCE -DNCURSES_WIDECHAR=1 -DSTRUCT_IOVEC_DEFINED -MD -MQ libcommon.fa.p/audio_audio.c.o -MF libcommon.fa.p/audio_audio.c.o.d -o libcommon.fa.p/audio_audio.c.o -c ../audio/audio.c
[1248/6677] clang -m64 -mcx16 -Ilibcommon.fa.p -I../capstone/include/capstone -I../dtc/libfdt -I../slirp -I../slirp/src -I/usr/local/Cellar/pixman/0.40.0/include/pixman-1 -I/usr/local/Cellar/spice-protocol/0.14.3/include/spice-1 -I/usr/local/Cellar/libpng/1.6.37/include/libpng16 -I/usr/local/Cellar/jpeg/9e/include -I/usr/local/Cellar/libidn2/2.3.2/include -I/usr/local/Cellar/libtasn1/4.18.0/include -I/usr/local/Cellar/nettle/3.7.3/include -I/usr/local/Cellar/p11-kit/0.24.1/include/p11-kit-1 -I/usr/local/Cellar/gnutls/3.6.16_1/include -I/usr/local/Cellar/libffi/3.4.2/include -I/usr/local/Cellar/pcre/8.45/include -I/usr/local/Cellar/glib/2.70.3/include -I/usr/local/Cellar/glib/2.70.3/include/glib-2.0 -I/usr/local/Cellar/glib/2.70.3/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/glib/2.70.3/include/gio-unix-2.0 -I/usr/local/Cellar/ncurses/6.3/include/ncursesw -I/usr/local/Cellar/ncurses/6.3/include -I/usr/local/Cellar/libepoxy-angle/20210315.1/include -I/usr/local/Cellar/virglrenderer/20211212.1/include -I/usr/local/Cellar/virglrenderer/20211212.1/include/virgl -I/usr/local/Cellar/libusb/1.0.24/include/libusb-1.0 -I/usr/local/opt/libangle/include -I/usr/local/opt/libepoxy-angle/include -I/usr/local/opt/virglrenderer/include -I/usr/local/opt/spice-protocol/include/spice-1 -fcolor-diagnostics -Wall -Winvalid-pch -std=gnu11 -O2 -g -iquote . -iquote /private/tmp/qemu-virgl-20220128-4215-b2soft -iquote /private/tmp/qemu-virgl-20220128-4215-b2soft/include -iquote /private/tmp/qemu-virgl-20220128-4215-b2soft/disas/libvixl -iquote /private/tmp/qemu-virgl-20220128-4215-b2soft/tcg/i386 -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 -Wno-psabi -fstack-protector-strong -D_DARWIN_C_SOURCE -DNCURSES_WIDECHAR=1 -DSTRUCT_IOVEC_DEFINED -MD -MQ libcommon.fa.p/ui_vnc-enc-tight.c.o -MF libcommon.fa.p/ui_vnc-enc-tight.c.o.d -o libcommon.fa.p/ui_vnc-enc-tight.c.o -c ../ui/vnc-enc-tight.c
[1249/6677] clang -m64 -mcx16 -Ilibcommon.fa.p -I../capstone/include/capstone -I../dtc/libfdt -I../slirp -I../slirp/src -I/usr/local/Cellar/pixman/0.40.0/include/pixman-1 -I/usr/local/Cellar/spice-protocol/0.14.3/include/spice-1 -I/usr/local/Cellar/libpng/1.6.37/include/libpng16 -I/usr/local/Cellar/jpeg/9e/include -I/usr/local/Cellar/libidn2/2.3.2/include -I/usr/local/Cellar/libtasn1/4.18.0/include -I/usr/local/Cellar/nettle/3.7.3/include -I/usr/local/Cellar/p11-kit/0.24.1/include/p11-kit-1 -I/usr/local/Cellar/gnutls/3.6.16_1/include -I/usr/local/Cellar/libffi/3.4.2/include -I/usr/local/Cellar/pcre/8.45/include -I/usr/local/Cellar/glib/2.70.3/include -I/usr/local/Cellar/glib/2.70.3/include/glib-2.0 -I/usr/local/Cellar/glib/2.70.3/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/glib/2.70.3/include/gio-unix-2.0 -I/usr/local/Cellar/ncurses/6.3/include/ncursesw -I/usr/local/Cellar/ncurses/6.3/include -I/usr/local/Cellar/libepoxy-angle/20210315.1/include -I/usr/local/Cellar/virglrenderer/20211212.1/include -I/usr/local/Cellar/virglrenderer/20211212.1/include/virgl -I/usr/local/Cellar/libusb/1.0.24/include/libusb-1.0 -fcolor-diagnostics -Wall -Winvalid-pch -std=gnu11 -O2 -g -iquote . -iquote /private/tmp/qemu-virgl-20220128-4215-b2soft -iquote /private/tmp/qemu-virgl-20220128-4215-b2soft/include -iquote /private/tmp/qemu-virgl-20220128-4215-b2soft/disas/libvixl -iquote /private/tmp/qemu-virgl-20220128-4215-b2soft/tcg/i386 -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 -Wno-psabi -fstack-protector-strong -D_DARWIN_C_SOURCE -DNCURSES_WIDECHAR=1 -DSTRUCT_IOVEC_DEFINED -MD -MQ libcommon.fa.p/ui_cocoa_pasteboard_type_owner.m.o -MF libcommon.fa.p/ui_cocoa_pasteboard_type_owner.m.o.d -o libcommon.fa.p/ui_cocoa_pasteboard_type_owner.m.o -c ../ui/cocoa/pasteboard_type_owner.m
[1250/6677] clang++ -m64 -mcx16 -Ilibcommon.fa.p -I../capstone/include/capstone -I../dtc/libfdt -I../slirp -I../slirp/src -I/usr/local/Cellar/pixman/0.40.0/include/pixman-1 -I/usr/local/Cellar/spice-protocol/0.14.3/include/spice-1 -I/usr/local/Cellar/libpng/1.6.37/include/libpng16 -I/usr/local/Cellar/jpeg/9e/include -I/usr/local/Cellar/libidn2/2.3.2/include -I/usr/local/Cellar/libtasn1/4.18.0/include -I/usr/local/Cellar/nettle/3.7.3/include -I/usr/local/Cellar/p11-kit/0.24.1/include/p11-kit-1 -I/usr/local/Cellar/gnutls/3.6.16_1/include -I/usr/local/Cellar/libffi/3.4.2/include -I/usr/local/Cellar/pcre/8.45/include -I/usr/local/Cellar/glib/2.70.3/include -I/usr/local/Cellar/glib/2.70.3/include/glib-2.0 -I/usr/local/Cellar/glib/2.70.3/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/glib/2.70.3/include/gio-unix-2.0 -I/usr/local/Cellar/ncurses/6.3/include/ncursesw -I/usr/local/Cellar/ncurses/6.3/include -I/usr/local/Cellar/libepoxy-angle/20210315.1/include -I/usr/local/Cellar/virglrenderer/20211212.1/include -I/usr/local/Cellar/virglrenderer/20211212.1/include/virgl -I/usr/local/Cellar/libusb/1.0.24/include/libusb-1.0 -I/usr/local/opt/libangle/include -I/usr/local/opt/libepoxy-angle/include -I/usr/local/opt/virglrenderer/include -I/usr/local/opt/spice-protocol/include/spice-1 -fcolor-diagnostics -Wall -Winvalid-pch -Wnon-virtual-dtor -std=gnu++11 -O2 -g -iquote . -iquote /private/tmp/qemu-virgl-20220128-4215-b2soft -iquote /private/tmp/qemu-virgl-20220128-4215-b2soft/include -iquote /private/tmp/qemu-virgl-20220128-4215-b2soft/disas/libvixl -iquote /private/tmp/qemu-virgl-20220128-4215-b2soft/tcg/i386 -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DOS_OBJECT_USE_OBJC=0 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wundef -Wwrite-strings -fno-strict-aliasing -fno-common -fwrapv -Wtype-limits -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wempty-body -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 -Wno-psabi -fstack-protector-strong -D_DARWIN_C_SOURCE -DNCURSES_WIDECHAR=1 -DSTRUCT_IOVEC_DEFINED -MD -MQ libcommon.fa.p/disas_nanomips.cpp.o -MF libcommon.fa.p/disas_nanomips.cpp.o.d -o libcommon.fa.p/disas_nanomips.cpp.o -c ../disas/nanomips.cpp
ninja: build stopped: subcommand failed.
make[1]: *** [run-ninja] Error 1
make: *** [install] Error 2
DUOLabs333 commented 2 years ago

Post the whole log into a pastebin.

saschasc commented 2 years ago

Pastebin does not seem to be happy with the file size. Uploading it here.

Thanks for your support.

The compilation also fails with XCode 13.1 toolset. I've downgraded to 12.5.1 but the error still occurs. It's not always the same step where it stops.

make-output.txt

➜ ~ clang --version Apple clang version 12.0.5 (clang-1205.0.22.11) Target: x86_64-apple-darwin20.6.0 Thread model: posix InstalledDir: /Applications/Xcode12.5.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin ➜ ~ clang++ --version Apple clang version 12.0.5 (clang-1205.0.22.11) Target: x86_64-apple-darwin20.6.0 Thread model: posix InstalledDir: /Applications/Xcode12.5.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

I am not so familiar with Brew. But could I create a bottle on a Monterey system where I can compile it and then use it in Big Sur (on the system where I have the bug)?

DUOLabs333 commented 2 years ago

It may be possible, though there may be breaking changes between the systems.

DUOLabs333 commented 2 years ago

Did you do ninja -j8 or just ninja?

saschasc commented 2 years ago

brew install knazarov/qemu-virgl/qemu-virgl

If it helps let me know how I can influence this.

DUOLabs333 commented 2 years ago

Found it: fatal error: 'EGL/eglplatform.h' file not found

DUOLabs333 commented 2 years ago

Can you check if libangle is installed?

saschasc commented 2 years ago
➜  ~ brew install -d knazarov/qemu-virgl/libangle
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/knazarov/homebrew-qemu-virgl/Formula/libangle.rb
Warning: knazarov/qemu-virgl/libangle 20211212.1 is already installed, it's just not linked.
saschasc commented 2 years ago
➜  ~ brew link libangle                   
Linking /usr/local/Cellar/libangle/20211212.1... 
Error: Could not symlink include/GLSLANG/ShaderLang.h
/usr/local/include/GLSLANG is not writable.
saschasc commented 2 years ago

The directories where read only. Probably because of a Vulkan SDK installation? Changed it and now I try again ...

DUOLabs333 commented 2 years ago

Use sudo -- just as an aside, for me, homebrew defaults to /opt/homebrew, fixing that problem.

saschasc commented 2 years ago

Thanks for your help mate! It works.