Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71220 - qemu-0.6.0 "Could not initialize SDL - exiting"
Summary: qemu-0.6.0 "Could not initialize SDL - exiting"
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-14 16:13 UTC by Stephen Tallowitz
Modified: 2004-11-16 10:36 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Tallowitz 2004-11-14 16:13:25 UTC
This is the error message I get when trying to start a virtual machine with the commandline:
qemu -hda harddisk-image -cdrom someimage.iso -boot d

qemu was compiled with use flags:
softmmu sdl

No idea what causes the error as I don't know sdl. Seems to be a normal error-routine. See source code here: http://www.volny.cz/xnavara/sdl.c

Compiling without sdl works, but is not an option in this case, as I need graphical output in the virtual machine. Version of libsdl installed: 1.2.7-r3

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1,
2.6.8 i686)
=================================================================
System uname: 2.6.8 i686 Intel(R) Pentium(R) M processor 1600MHz
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs candy ccache distcc distlocks sandbox sfperms"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
http://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo
ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://mirror.switch.ch/ftp/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/
ftp://ftp.solnet.ch/mirror/Gentoo"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="alsa apm avi berkdb bitmap-fonts cdr crypt cups dri dvd encode esd f77 flac
foomaticdb fortran gdbm gif glx gpg gpm guile imagemagick imlib jack java jpeg
ldap libg++ libwww mad mikmod mmx motif mpeg mysql ncurses nls oggvorbis opengl
pam pdflib perl png postgres python qt quicktime readline samba sdl slang spell
sse ssl tcltk tcpd tetex tiff truetype x86 xml2 xorg xv zlib video_cards_radeon"
Comment 1 Luca Barbato gentoo-dev 2004-11-16 02:37:10 UTC
I'd like to see the error message and maybe a strace
Comment 2 Luca Barbato gentoo-dev 2004-11-16 02:38:40 UTC
Btw:

void sdl_display_init(DisplayState *ds)
{
    int flags;

    flags = SDL_INIT_VIDEO | SDL_INIT_NOPARACHUTE;
    if (SDL_Init (flags)) {
        fprintf(stderr, "Could not initialize SDL - exiting\n");
        exit(1);
    }


Any other sdl application work for you? Looks like a local issue IMHO
Comment 3 Stephen Tallowitz 2004-11-16 06:00:24 UTC
SDL does not work at all for me, so it is a local issue.

based on the code-snippet from below I've written this:

# sdltest.cpp: compile with "gcc -o sdltest -I/usr/include/SDL -lSDL sdltest.cpp"
#include <iostream>
using namespace std;
#include "SDL/SDL.h"

int
main ()
{
  int flags;

  flags = SDL_INIT_VIDEO | SDL_INIT_NOPARACHUTE;
  if (SDL_Init (flags))
    {
      cout << "SDL error:\n";
      cout << SDL_GetError () << endl;
      exit (1);
    }
  else
    {
      cout << "SDL video output is working correctly\n";
    }
  return 0;

}

this returns the following error on my installtion:
SDL error:
No available video device

I'm looking into the issue, but it's not really related to qemu, just noticed it here.
Comment 4 Stephen Tallowitz 2004-11-16 06:03:27 UTC
sorry, first line of my code should of course be:
// sdltest.cpp: compile with "gcc -o sdltest -I/usr/include/SDL -lSDL sdltest.cpp"
Comment 5 Stephen Tallowitz 2004-11-16 08:52:48 UTC
for anyone interested:

I've read in some other forums that recent versions of libsdl cause those sorts of problems, just out of curiosity I manually installed libsdl-1.2.1 (no ebuild around) and it worked together with qemu-0.6.1 (yes I've just updated to the new version)

So as a summary:
qemu-0.6.0 and qemu-0.6.1 didn't work with libsdl 1.2.7-r3
qemu-0.6.1 works with libsdl-1.2.1

Now it's all about finding out which version of libsdl doesn't work for my setup (the border must be somewhere between 1.2.1 and 1.2.7). I'll now have a look at some other bugreports and in the forums. Must be someone else around who has also experienced those problems.
Comment 6 Stephen Tallowitz 2004-11-16 09:35:09 UTC
Please close this bug.
My mistake: I had the useflag "-X" set. Don't ask me why ...
Comment 7 Luca Barbato gentoo-dev 2004-11-16 10:36:40 UTC
Nevermind, better one more than one less