Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: unsupported shader version #67

Open
Hikmat-E-Ustad opened this issue Dec 11, 2021 · 1 comment
Open

ERROR: unsupported shader version #67

Hikmat-E-Ustad opened this issue Dec 11, 2021 · 1 comment

Comments

@Hikmat-E-Ustad
Copy link

I am running macOS Catalina 10.15.7 on a 2.3 GHz Dual Core Intel Core i5 processor.

Initially I had installed qemu directly from homebrew. When I tried installing brew tap knazarov/qemu-virgl and then brew install qemu-virgl I ran into some error which I resolved by first uninstalling qemu then installing qemu-virgl.

When I run with your config provided for Intel I get the following error

`hikmateustad@Hikmats-MacBook-Pro Fedora % ./start-fedora-1.sh
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.fma [bit 12]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.x2apic [bit 21]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.movbe [bit 22]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.tsc-deadline [bit 24]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.f16c [bit 29]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.rdrand [bit 30]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.fsgsbase [bit 0]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.bmi1 [bit 3]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.avx2 [bit 5]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.smep [bit 7]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.bmi2 [bit 8]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.erms [bit 9]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.invpcid [bit 10]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EDX.spec-ctrl [bit 26]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:EDX.rdtscp [bit 27]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:ECX.abm [bit 5]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.fma [bit 12]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.x2apic [bit 21]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.movbe [bit 22]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.tsc-deadline [bit 24]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.f16c [bit 29]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.rdrand [bit 30]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.fsgsbase [bit 0]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.bmi1 [bit 3]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.avx2 [bit 5]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.smep [bit 7]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.bmi2 [bit 8]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.erms [bit 9]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.invpcid [bit 10]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EDX.spec-ctrl [bit 26]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:EDX.rdtscp [bit 27]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:ECX.abm [bit 5]
qemu_gl_create_compile_shader: compile vertex error
ERROR: unsupported shader version

qemu_gl_create_compile_shader: compile fragment error
ERROR: unsupported shader version

qemu_gl_create_compile_shader: compile vertex error
ERROR: unsupported shader version

qemu_gl_create_compile_shader: compile fragment error
ERROR: unsupported shader version

`

When I tried a slightly modified config

qemu-system-x86_64 \ -machine accel=hvf \ -device intel-hda -device hda-output \ -device qemu-xhci \ -device virtio-vga-gl \ -device usb-kbd \ -device virtio-net-pci,netdev=net \ -device virtio-mouse-pci \ -display cocoa,gl=es \ -netdev user,id=net,ipv6=off \ -drive "if=virtio,format=raw,file=hdd.raw,discard=on" \ -cdrom Fedora-Workstation-Live-x86_64-34-1.2.iso \ -m 4G \ -smp 2 \ -cpu host \ -boot d

I just get the following errors

`hikmateustad@Hikmats-MacBook-Pro Fedora % ./start-fedora.sh
qemu_gl_create_compile_shader: compile vertex error
ERROR: unsupported shader version

qemu_gl_create_compile_shader: compile fragment error
ERROR: unsupported shader version

qemu_gl_create_compile_shader: compile vertex error
ERROR: unsupported shader version

qemu_gl_create_compile_shader: compile fragment error
ERROR: unsupported shader version

`

I have tried brew reinstall -s libepoxy-angle however it fails at the symlink stage with the following error

`

hikmateustad@Hikmats-MacBook-Pro ~ % brew reinstall -s libepoxy-angle
==> Downloading https://raw.githubusercontent.com/knazarov/homebrew-qemu-virgl/8
Already downloaded: /Users/hikmateustad/Library/Caches/Homebrew/downloads/e4c735fb957a1dd43d83eeb08f77721ee4d566ed81e049d169173d29460bc400--libepoxy-v02.diff
==> Cloning https://github.com/anholt/libepoxy.git
Updating /Users/hikmateustad/Library/Caches/Homebrew/libepoxy-angle--git
==> Checking out revision de08cf3479ca06ff921c584eeee6280e5a135f99
HEAD is now at de08cf3 Merge pull request #238 from anholt/pull-229-alt
HEAD is now at de08cf3 Merge pull request #238 from anholt/pull-229-alt
==> Reinstalling knazarov/qemu-virgl/libepoxy-angle
==> Patching
==> Applying libepoxy-v02.diff
patching file meson.build
patching file meson_options.txt
patching file src/dispatch_common.c
patching file src/dispatch_common.h
==> meson --prefix=/usr/local/Cellar/libepoxy-angle/20210315.1 --libdir=/usr/loc
==> ninja -v
==> ninja install -v
Error: The brew link step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink include/epoxy/common.h
Target /usr/local/include/epoxy/common.h
is a symlink belonging to libepoxy. You can unlink it:
brew unlink libepoxy

To force the link and overwrite all conflicting files:
brew link --overwrite libepoxy-angle

To list all files that would be deleted:
brew link --overwrite --dry-run libepoxy-angle

Possible conflicting files are:
/usr/local/include/epoxy/common.h -> /usr/local/Cellar/libepoxy/1.5.9/include/epoxy/common.h
/usr/local/include/epoxy/gl.h -> /usr/local/Cellar/libepoxy/1.5.9/include/epoxy/gl.h
/usr/local/include/epoxy/gl_generated.h -> /usr/local/Cellar/libepoxy/1.5.9/include/epoxy/gl_generated.h
/usr/local/lib/libepoxy.0.dylib -> /usr/local/Cellar/libepoxy/1.5.9/lib/libepoxy.0.dylib
/usr/local/lib/libepoxy.dylib -> /usr/local/Cellar/libepoxy/1.5.9/lib/libepoxy.dylib
/usr/local/lib/pkgconfig/epoxy.pc -> /usr/local/Cellar/libepoxy/1.5.9/lib/pkgconfig/epoxy.pc
==> Summary
🍺 /usr/local/Cellar/libepoxy-angle/20210315.1: 12 files, 2.6MB, built in 1 minute 35 seconds
==> Running brew cleanup libepoxy-angle...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see man brew).

`

When I tried to manually symlink it then I get the following errors

`hikmateustad@Hikmats-MacBook-Pro ~ % brew link libepoxy-angle
Linking /usr/local/Cellar/libepoxy-angle/20210315.1...
Error: Could not symlink include/epoxy/common.h
Target /usr/local/include/epoxy/common.h
is a symlink belonging to libepoxy. You can unlink it:
brew unlink libepoxy

To force the link and overwrite all conflicting files:
brew link --overwrite libepoxy-angle

To list all files that would be deleted:
brew link --overwrite --dry-run libepoxy-angle
hikmateustad@Hikmats-MacBook-Pro ~ % brew link --overwrite --dry-run libepoxy-angle
Would remove:
/usr/local/include/epoxy/common.h -> /usr/local/Cellar/libepoxy/1.5.9/include/epoxy/common.h
/usr/local/include/epoxy/gl.h -> /usr/local/Cellar/libepoxy/1.5.9/include/epoxy/gl.h
/usr/local/include/epoxy/gl_generated.h -> /usr/local/Cellar/libepoxy/1.5.9/include/epoxy/gl_generated.h
/usr/local/lib/libepoxy.0.dylib -> /usr/local/Cellar/libepoxy/1.5.9/lib/libepoxy.0.dylib
/usr/local/lib/libepoxy.dylib -> /usr/local/Cellar/libepoxy/1.5.9/lib/libepoxy.dylib
/usr/local/lib/pkgconfig/epoxy.pc -> /usr/local/Cellar/libepoxy/1.5.9/lib/pkgconfig/epoxy.pc

`

What steps should I take?

@knazarov
Copy link
Owner

I'm going to release a new version with an updated libangle backend and latest fixes to qemu-virgl. Let's see if it works for you. The patch is already in progress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants