All of lore.kernel.org
 help / color / mirror / Atom feed
* build problem with ioemu
@ 2008-07-22  9:38 Christoph Egger
  2008-07-22 15:24 ` Ian Jackson
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Egger @ 2008-07-22  9:38 UTC (permalink / raw)
  To: xen-devel


Hi,

compiling ioemu from the git tree fails with:


 Install prefix    /usr
BIOS directory    /usr/share/qemu
binary directory  /usr/bin
Manual directory  /usr/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path       /xen-unstable.hg/tools/ioemu-dir
C compiler        gcc
Host C compiler   gcc
ARCH_CFLAGS       -m64
make              make
install           install
host CPU          x86_64
host big endian   no
target list       i386-softmmu x86_64-softmmu arm-softmmu cris-softmmu 
m68k-softmmu mips-softmmu mipsel-softmmu mips64-softmmu mips64el-softmmu 
ppc-softmmu ppcemb-softmmu ppc64-softmmu sh4-softmmu sh4eb-softmmu 
sparc-softmmu i386-linux-user x86_64-linux-user alpha-linux-user 
arm-linux-user armeb-linux-user cris-linux-user m68k-linux-user 
mips-linux-user mipsel-linux-user ppc-linux-user ppc64-linux-user 
ppc64abi32-linux-user sh4-linux-user sh4eb-linux-user sparc-linux-user 
sparc64-linux-user sparc32plus-linux-user
gprof enabled     no
profiler          no
static build      no
-Werror enabled   no
SDL support       no
OpenGL support
curses support    no
mingw32 support   no
Audio support     yes
Adlib support     no
AC97 support      no
GUS support       no
CoreAudio support no
ALSA support      no
EsounD support    no
DSound support    no
FMOD support      no
OSS support       yes
VNC TLS support   no
kqemu support     yes
brlapi support    no
Documentation     yes
The error log from compiling the libSDL test is:
/tmp/qemu-conf-20201-24898-30322.c:1:17: error: SDL.h: No such file or 
directory
/tmp/qemu-conf-20201-24898-30322.c: In function 'main':
/tmp/qemu-conf-20201-24898-30322.c:3: error: 'SDL_INIT_VIDEO' undeclared 
(first use in this function)
/tmp/qemu-conf-20201-24898-30322.c:3: error: (Each undeclared identifier is 
reported only once
/tmp/qemu-conf-20201-24898-30322.c:3: error: for each function it appears in.)
./configure: line 1113: test: =: unary operator expected
./configure: line 1121: test: =: unary operator expected
ERROR: QEMU requires SDL or Cocoa for graphical output
To build QEMU without graphical output configure with --disable-gfx-check
Note that this will disable all output from the virtual graphics card
except through VNC or curses.
make[2]: *** [ioemu-dir-find] Error 1
make[2]: Leaving directory `/xen-unstable.hg/tools'
make[1]: *** [subdirs-install] Error 2
make[1]: Leaving directory `/xen-unstable.hg/tools'
make: *** [install-tools] Error 2


Configure correctly detects, there's no sdl installed but sdl support
is tried to be compiled nonetheless.
SDL shouldn't be compiled if only VNC is of interest.

Christoph

-- 
AMD Saxony, Dresden, Germany
Operating System Research Center

Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
   Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
   AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
   Dr. Hans-R. Deppe, Thomas McCoy

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: build problem with ioemu
  2008-07-22  9:38 build problem with ioemu Christoph Egger
@ 2008-07-22 15:24 ` Ian Jackson
  2008-07-23 12:45   ` Christoph Egger
  0 siblings, 1 reply; 4+ messages in thread
From: Ian Jackson @ 2008-07-22 15:24 UTC (permalink / raw)
  To: Christoph Egger; +Cc: xen-devel

Christoph Egger writes ("[Xen-devel] build problem with ioemu"):
> compiling ioemu from the git tree fails with:
> ERROR: QEMU requires SDL or Cocoa for graphical output

Thanks for that report.  This should be fixed with this patch.

Ian.

commit 67f85e58d7622cdc9297bf6a216526fac28281ed
Author: Ian Jackson <ian.jackson@eu.citrix.com>
Date:   Tue Jul 22 16:23:47 2008 +0100

    Pass --disable-gfx-check to allow VNC-only builds.
    
    Qemu upstream inexplicably falls over during configuration if you will
    be forced to use VNC for graphics, as if that were somehow an
    unreasonable thing to do.  So hit that check on the head.
    
    Thanks to Christoph Egger for the report.
    
    Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>

diff --git a/xen-setup b/xen-setup
index b0eda89..2638e1e 100755
--- a/xen-setup
+++ b/xen-setup
@@ -9,7 +9,7 @@ rm -f config-host.mak
 
 if test -f config-host.h; then mv config-host.h config-host.h~; fi
 
-./configure --disable-gcc-check --disable-curses --disable-slirp "$@" --prefix=/usr
+./configure --disable-gfx-check --disable-gcc-check --disable-curses --disable-slirp "$@" --prefix=/usr
 
 target=i386-dm

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: build problem with ioemu
  2008-07-22 15:24 ` Ian Jackson
@ 2008-07-23 12:45   ` Christoph Egger
  2008-07-23 13:20     ` Ian Jackson
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Egger @ 2008-07-23 12:45 UTC (permalink / raw)
  To: Ian Jackson; +Cc: xen-devel


Sorry, no, this does not fix the problem.
configure already correctly detects, there's no SDL installed:

<snip>
-Werror enabled   no
SDL support       no        <----
OpenGL support
curses support    no
</snip>

The error is still the same:

Documentation     yes
The error log from compiling the libSDL test is:
/tmp/qemu-conf-26839-18490-32193.c:1:17: error: SDL.h: No such file or 
directory
/tmp/qemu-conf-26839-18490-32193.c: In function 'main':
/tmp/qemu-conf-26839-18490-32193.c:3: error: 'SDL_INIT_VIDEO' undeclared 
(first use in this function)
/tmp/qemu-conf-26839-18490-32193.c:3: error: (Each undeclared identifier is 
reported only once
/tmp/qemu-conf-26839-18490-32193.c:3: error: for each function it appears in.)
./configure: line 1113: test: =: unary operator expected
./configure: line 1121: test: =: unary operator expected


Christoph


On Tuesday 22 July 2008 17:24:35 Ian Jackson wrote:
> Christoph Egger writes ("[Xen-devel] build problem with ioemu"):
> > compiling ioemu from the git tree fails with:
> > ERROR: QEMU requires SDL or Cocoa for graphical output
>
> Thanks for that report.  This should be fixed with this patch.
>
> Ian.
>
> commit 67f85e58d7622cdc9297bf6a216526fac28281ed
> Author: Ian Jackson <ian.jackson@eu.citrix.com>
> Date:   Tue Jul 22 16:23:47 2008 +0100
>
>     Pass --disable-gfx-check to allow VNC-only builds.
>
>     Qemu upstream inexplicably falls over during configuration if you will
>     be forced to use VNC for graphics, as if that were somehow an
>     unreasonable thing to do.  So hit that check on the head.
>
>     Thanks to Christoph Egger for the report.
>
>     Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
>
> diff --git a/xen-setup b/xen-setup
> index b0eda89..2638e1e 100755
> --- a/xen-setup
> +++ b/xen-setup
> @@ -9,7 +9,7 @@ rm -f config-host.mak
>
>  if test -f config-host.h; then mv config-host.h config-host.h~; fi
>
> -./configure --disable-gcc-check --disable-curses --disable-slirp "$@"
> --prefix=/usr +./configure --disable-gfx-check --disable-gcc-check
> --disable-curses --disable-slirp "$@" --prefix=/usr
>
>  target=i386-dm



-- 
AMD Saxony, Dresden, Germany
Operating System Research Center

Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
   Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
   AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
   Dr. Hans-R. Deppe, Thomas McCoy

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: build problem with ioemu
  2008-07-23 12:45   ` Christoph Egger
@ 2008-07-23 13:20     ` Ian Jackson
  0 siblings, 0 replies; 4+ messages in thread
From: Ian Jackson @ 2008-07-23 13:20 UTC (permalink / raw)
  To: Christoph Egger; +Cc: xen-devel

Christoph Egger writes ("Re: [Xen-devel] build problem with ioemu"):
> Sorry, no, this does not fix the problem.
> configure already correctly detects, there's no SDL installed:
> 
> <snip>
> -Werror enabled   no
> SDL support       no        <----
> OpenGL support
> curses support    no
> </snip>
> 
> The error is still the same:
> The error log from compiling the libSDL test is:
> /tmp/qemu-conf-26839-18490-32193.c:1:17: error: SDL.h: No such file or 
> directory
> [etc]

It prints this complaint, yes.  The upstream configure script, for
reasons which are inexplicable, prints that error message _and then
exits successfully_.  So those errors are really a kind of warning.

I agree that they are inappropriate but I don't want to mess with the
upstream configure script any more than absolutely necessary as it is
something of a swamp.

Did you just run xen-setup ?  In my tree I see this:

mariner:qemu-iwj.git> ./xen-setup 
...
SDL support       no
...
The error log from compiling the libSDL test is: 
/tmp/qemu-conf-19939-21769-27099.c:1:17: error: SDL.h: No such file or directory
...
/tmp/qemu-conf-19939-21769-27099.c:3: error: for each function it appears in.)
mariner:qemu-iwj.git> echo $?
0
mariner:qemu-iwj.git

and a `make' succeeds.  Invokind xen-unstable build system works for
me as well.

Ian.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-07-23 13:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-22  9:38 build problem with ioemu Christoph Egger
2008-07-22 15:24 ` Ian Jackson
2008-07-23 12:45   ` Christoph Egger
2008-07-23 13:20     ` Ian Jackson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.