Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 626444 - app-emulation/qemu-2.9.0-r56 missing dependency: x11 -> Could not initialize SDL
Summary: app-emulation/qemu-2.9.0-r56 missing dependency: x11 -> Could not initialize SDL
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo QEMU Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-28 14:56 UTC by José Pekkarinen
Modified: 2018-02-26 13:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (file_626444.txt,9.36 KB, text/plain)
2017-07-28 14:56 UTC, José Pekkarinen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description José Pekkarinen 2017-07-28 14:56:10 UTC
Created attachment 487064 [details]
emerge --info

Hi,

    Running qemu with default output under kwin_wayland fails to execute giving the following output:

No protocol specified
Could not initialize SDL(x11 not available) - exiting

    The way it's called:

sudo qemu-system-x86_64 -enable-kvm -cpu host -smp 2,cores=1,threads=2 -m 4G \
        -netdev user,id=user.0,smb=/home/pekkari/share -device e1000,netdev=user.0 \
        -device ich9-usb-uhci3,id=uhci -device usb-ehci,id=ehci -device nec-usb-xhci,id=xhci \
        -usb -usbdevice tablet -k fi \
        -device virtio-serial \
        -chardev socket,path=/tmp/virtio-serial.sock,server,nowait,id=serial-log \
        -device virtserialport,chardev=serial-log,name=ant.port.0 \
        -drive file=win7.img,format=raw,cache=none,aio=native,if=virtio

    Switching to kwin_x11 runs ok. As soon as it's a windows virtual machine the serial port doesn't give any relevant.

    Stracing it:

execve("/usr/bin/sudo", ["sudo", "qemu-system-x86_64", "-enable-kvm", "-cpu", "host", "-smp", "2,cores=1,threads=2", "-m", "4G", "-netdev", "user,id=user.0,smb=/home/pekkari"..., "-device", "e1000,netdev=user.0", "-device", "ich9-usb-uhci3,id=uhci", "-device", "usb-ehci,id=ehci", "-device", "nec-usb-xhci,id=xhci", "-usb", "-usbdevice", "tablet", "-k", "fi", "-device", "virtio-serial", "-chardev", "socket,path=/tmp/virtio-serial.s"..., "-device", "virtserialport,chardev=serial-lo"..., "-drive", "file=win7.img,format=raw,cache=n"...], [/* 112 vars */]) = 0
brk(NULL)                               = 0x1e2b000
fcntl(0, F_GETFD)                       = 0
fcntl(1, F_GETFD)                       = 0
fcntl(2, F_GETFD)                       = 0
access(0x7fd1204451bd, F_OK)            = -1 ENOENT (No such file or directory)
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd12064a000
access(0x7fd120447f40, R_OK)            = -1 ENOENT (No such file or directory)
open(0x7ffc184faca0, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat(0x7ffc184faca0, 0x7ffc184fad70)    = -1 ENOENT (No such file or directory)
open(0x7ffc184faca0, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat(0x7ffc184faca0, 0x7ffc184fad70)    = -1 ENOENT (No such file or directory)
open(0x7ffc184faca0, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat(0x7ffc184faca0, 0x7ffc184fad70)    = -1 ENOENT (No such file or directory)
open(0x7ffc184faca0, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat(0x7ffc184faca0, 0x7ffc184fad70)    = 0
open(0x7fd120445c57, O_RDONLY|O_CLOEXEC) = 3
fstat(3, 0x7ffc184fad30)                = 0
mmap(NULL, 313473, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fd1205fd000
close(3)                                = 0
open(0x7fd12064a6d0, O_RDONLY|O_CLOEXEC) = 3
read(3, 0x7ffc184faed8, 832)            = 832
fstat(3, 0x7ffc184fad70)                = 0
mmap(NULL, 2105608, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd120225000
mprotect(0x7fd120227000, 2093056, PROT_NONE) = 0
mmap(0x7fd120426000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x7fd120426000
close(3)                                = 0
open(0x7ffc184fac60, O_RDONLY|O_CLOEXEC) = 3
read(3, 0x7ffc184fae98, 832)            = 832
fstat(3, 0x7ffc184fad30)                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd1205fc000
mmap(NULL, 2176744, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd120011000
mprotect(0x7fd120024000, 2093056, PROT_NONE) = 0
mmap(0x7fd120223000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12000) = 0x7fd120223000
close(3)                                = 0
open(0x7ffc184fac20, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(0x7fd1205fc4d0, O_RDONLY|O_CLOEXEC) = 3
read(3, 0x7ffc184fae58, 832)            = 832
fstat(3, 0x7ffc184facf0)                = 0
mmap(NULL, 3770584, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd11fc78000
mprotect(0x7fd11fe08000, 2093056, PROT_NONE) = 0
mmap(0x7fd120007000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18f000) = 0x7fd120007000
mmap(0x7fd12000d000, 14552, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fd12000d000
close(3)                                = 0
open(0x7fd1205fc9c8, O_RDONLY|O_CLOEXEC) = 3
read(3, 0x7ffc184facf8, 832)            = 832
fstat(3, 0x7ffc184fab90)                = 0
mmap(NULL, 2109680, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd11fa74000
mprotect(0x7fd11fa76000, 2097152, PROT_NONE) = 0
mmap(0x7fd11fc76000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7fd11fc76000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd1205fb000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd1205fa000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd1205f9000
arch_prctl(ARCH_SET_FS, 0x7fd1205fa700) = 0
mprotect(0x7fd120007000, 16384, PROT_READ) = 0
mprotect(0x7fd11fc76000, 4096, PROT_READ) = 0
mprotect(0x7fd120223000, 4096, PROT_READ) = 0
mprotect(0x7fd120426000, 4096, PROT_READ) = 0
mprotect(0x61c000, 4096, PROT_READ)     = 0
mprotect(0x7fd12064b000, 4096, PROT_READ) = 0
munmap(0x7fd1205fd000, 313473)          = 0
fcntl(0, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE)
fcntl(1, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE)
fcntl(2, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE)
brk(NULL)                               = 0x1e2b000
brk(0x1e4c000)                          = 0x1e4c000
open(0x7fd11fddf540, O_RDONLY|O_CLOEXEC) = 3
fstat(3, 0x7fd12000c960)                = 0
mmap(NULL, 3244688, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fd11f75b000
close(3)                                = 0
open(0x7fd11fdd954f, O_RDONLY|O_CLOEXEC) = 3
fstat(3, 0x7ffc184fc360)                = 0
fstat(3, 0x7ffc184fc1d0)                = 0
read(3, 0x1e2c280, 4096)                = 1909
lseek(3, -1210, SEEK_CUR)               = 699
read(3, 0x1e2c280, 4096)                = 1210
close(3)                                = 0
stat(0x7fd12002099d, 0x7ffc184fc250)    = -1 ENOENT (No such file or directory)
geteuid()                               = 1000
access(0x7ffc184fb430, X_OK)            = -1 ENOENT (No such file or directory)
access(0x7ffc184fb430, X_OK)            = 0
stat(0x7ffc184fb430, 0x7ffc184fb3a0)    = 0
open(0x7ffc184faea0, O_RDONLY|O_CLOEXEC) = 3
fstat(3, 0x7ffc184fad10)                = 0
read(3, 0x1e2d760, 4096)                = 2997
read(3, "", 4096)                       = 0
close(3)                                = 0
open(0x1e2c0d0, O_RDONLY)               = -1 ENOENT (No such file or directory)
open(0x1e2c2e0, O_RDONLY)               = -1 ENOENT (No such file or directory)
open(0x1e2c160, O_RDONLY)               = -1 ENOENT (No such file or directory)
open(0x1e2c260, O_RDONLY)               = -1 ENOENT (No such file or directory)
open(0x1e2c320, O_RDONLY)               = -1 ENOENT (No such file or directory)
open(0x1e2c1e0, O_RDONLY)               = -1 ENOENT (No such file or directory)
write(2, 0x7ffc184fd578, 4sudo)             = 4
write(2, 0x7fd120020426, 2: )             = 2
write(2, 0x7ffc184f87f0, 133effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?)           = 133
write(2, 0x7fd12000c5a3, 1
)             = 1
exit_group(1)                           = ?
+++ exited with 1 +++

    Use flags:

$ emerge -pv qemu

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ~] app-emulation/qemu-2.9.0-r56::gentoo  USE="aio alsa bluetooth bzip2 caps curl fdt filecaps jpeg ncurses nls opengl pin-upstream-blobs png sdl sdl2 seccomp smartcard usb vhost-net vnc xattr -accessibility -debug -glusterfs -gnutls -gtk -gtk2 -infiniband -iscsi -lzo -nfs -numa -pulseaudio -python -rbd -sasl (-selinux) -snappy -spice -ssh -static -static-user -systemtap -tci {-test} -usbredir -vde -virgl -virtfs -vte -xen -xfs" LINGUAS="-bg -de_DE -fr_FR -hu -it -tr -zh_CN" PYTHON_TARGETS="python2_7" QEMU_SOFTMMU_TARGETS="i386 x86_64 -aarch64 -alpha -arm -cris -lm32 -m68k -microblaze -microblazeel -mips -mips64 -mips64el -mipsel -moxie -nios2 -or1k -ppc -ppc64 -ppcemb -s390x -sh4 -sh4eb -sparc -sparc64 -tricore -unicore32 -xtensa -xtensaeb" QEMU_USER_TARGETS="i386 x86_64 -aarch64 -alpha -arm -armeb -cris -hppa -m68k -microblaze -microblazeel -mips -mips64 -mips64el -mipsel -mipsn32 -mipsn32el -nios2 -or1k -ppc -ppc64 -ppc64abi32 -ppc64le -s390x -sh4 -sh4eb -sparc -sparc32plus -sparc64 -tilegx" 28,048 KiB

Total: 1 package (1 reinstall), Size of downloads: 28,048 KiB

    Worthy to note is that sdl2 is active. Any idea what may be happening?

    Thanks!

    José.