* [Qemu-devel] build problems with linux usb support?
@ 2006-03-08 16:55 Troy Benjegerdes
2006-03-08 17:08 ` Johannes Schindelin
2006-03-11 19:57 ` Daniel Jacobowitz
0 siblings, 2 replies; 5+ messages in thread
From: Troy Benjegerdes @ 2006-03-08 16:55 UTC (permalink / raw)
To: qemu-devel
I'm trying to build qemu from cvs on a Debian-amd64 system, and having
errors like this:
gcc-3.4 -Wall -O2 -g -fno-strict-aliasing -I.
-I/afs/scl.ameslab.gov/user/troy/src/qemu-cvs/target-i386
-I/afs/scl.ameslab.gov/user/troy/src/qemu-cvs -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-I/afs/scl.ameslab.gov/user/troy/src/qemu-cvs/fpu -DHAS_AUDIO
-I/afs/scl.ameslab.gov/user/troy/src/qemu-cvs/slirp -c -o usb-linux.o
/afs/scl.ameslab.gov/user/troy/src/qemu-cvs/usb-linux.c
In file included from /usr/include/asm-x86_64/div64.h:1,
from /usr/include/asm/div64.h:8,
from /usr/include/linux/jiffies.h:9,
from /usr/include/linux/sched.h:12,
from /usr/include/asm-x86_64/compat.h:8,
from /usr/include/asm/compat.h:8,
from /usr/include/linux/compat.h:15,
from /usr/include/linux/usbdevice_fs.h:35,
from
/afs/scl.ameslab.gov/user/troy/src/qemu-cvs/usb-linux.c:30:
/usr/include/asm-generic/div64.h:54:3: #error do_div() does not yet
support the C64
The only think I can track down so far is that BITS_PER_LONG is only
defined in /usr/include/asm-x86_64/types.h if __KERNEL__ is also set.
What other linux distros/headers work with the current qemu cvs usb
code?
Thanks.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] build problems with linux usb support?
2006-03-08 16:55 [Qemu-devel] build problems with linux usb support? Troy Benjegerdes
@ 2006-03-08 17:08 ` Johannes Schindelin
2006-03-11 19:57 ` Daniel Jacobowitz
1 sibling, 0 replies; 5+ messages in thread
From: Johannes Schindelin @ 2006-03-08 17:08 UTC (permalink / raw)
To: qemu-devel
Hi,
On Wed, 8 Mar 2006, Troy Benjegerdes wrote:
> /afs/scl.ameslab.gov/user/troy/src/qemu-cvs/usb-linux.c:30:
> /usr/include/asm-generic/div64.h:54:3: #error do_div() does not yet
> support the C64
You really try to make QEmu run on a C64? Wow!
;-) Sorry, could not resist,
Dscho
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] build problems with linux usb support?
2006-03-08 16:55 [Qemu-devel] build problems with linux usb support? Troy Benjegerdes
2006-03-08 17:08 ` Johannes Schindelin
@ 2006-03-11 19:57 ` Daniel Jacobowitz
2006-03-22 20:45 ` Troy Benjegerdes
1 sibling, 1 reply; 5+ messages in thread
From: Daniel Jacobowitz @ 2006-03-11 19:57 UTC (permalink / raw)
To: qemu-devel
On Wed, Mar 08, 2006 at 10:55:21AM -0600, Troy Benjegerdes wrote:
> The only think I can track down so far is that BITS_PER_LONG is only
> defined in /usr/include/asm-x86_64/types.h if __KERNEL__ is also set.
>
> What other linux distros/headers work with the current qemu cvs usb
> code?
I've just been disabling USB support by a local patch and hoping
someone else fixed this :-)
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] build problems with linux usb support?
2006-03-11 19:57 ` Daniel Jacobowitz
@ 2006-03-22 20:45 ` Troy Benjegerdes
2006-03-23 3:10 ` Daniel Jacobowitz
0 siblings, 1 reply; 5+ messages in thread
From: Troy Benjegerdes @ 2006-03-22 20:45 UTC (permalink / raw)
To: qemu-devel
On Sat, Mar 11, 2006 at 02:57:03PM -0500, Daniel Jacobowitz wrote:
> On Wed, Mar 08, 2006 at 10:55:21AM -0600, Troy Benjegerdes wrote:
> > The only think I can track down so far is that BITS_PER_LONG is only
> > defined in /usr/include/asm-x86_64/types.h if __KERNEL__ is also set.
> >
> > What other linux distros/headers work with the current qemu cvs usb
> > code?
>
> I've just been disabling USB support by a local patch and hoping
> someone else fixed this :-)
Would you mind posting the 'disable usb' patch?
Right now I am resorting to gross things like building on a redhat box
and installing the binaries on debian.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] build problems with linux usb support?
2006-03-22 20:45 ` Troy Benjegerdes
@ 2006-03-23 3:10 ` Daniel Jacobowitz
0 siblings, 0 replies; 5+ messages in thread
From: Daniel Jacobowitz @ 2006-03-23 3:10 UTC (permalink / raw)
To: qemu-devel
On Wed, Mar 22, 2006 at 02:45:11PM -0600, Troy Benjegerdes wrote:
> On Sat, Mar 11, 2006 at 02:57:03PM -0500, Daniel Jacobowitz wrote:
> > On Wed, Mar 08, 2006 at 10:55:21AM -0600, Troy Benjegerdes wrote:
> > > The only think I can track down so far is that BITS_PER_LONG is only
> > > defined in /usr/include/asm-x86_64/types.h if __KERNEL__ is also set.
> > >
> > > What other linux distros/headers work with the current qemu cvs usb
> > > code?
> >
> > I've just been disabling USB support by a local patch and hoping
> > someone else fixed this :-)
>
> Would you mind posting the 'disable usb' patch?
>
> Right now I am resorting to gross things like building on a redhat box
> and installing the binaries on debian.
Trivial:
Index: qemu/usb-linux.c
===================================================================
--- qemu.orig/usb-linux.c 2005-11-26 19:32:55.000000000 -0500
+++ qemu/usb-linux.c 2005-11-26 19:32:59.000000000 -0500
@@ -23,7 +23,7 @@
*/
#include "vl.h"
-#if defined(__linux__)
+#if 0 && defined(__linux__)
#include <dirent.h>
#include <sys/ioctl.h>
#include <linux/usbdevice_fs.h>
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-03-23 3:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-08 16:55 [Qemu-devel] build problems with linux usb support? Troy Benjegerdes
2006-03-08 17:08 ` Johannes Schindelin
2006-03-11 19:57 ` Daniel Jacobowitz
2006-03-22 20:45 ` Troy Benjegerdes
2006-03-23 3:10 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).