All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nigel Horne <njh@bandsman.co.uk>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Mips guest
Date: Wed, 19 Sep 2007 13:37:32 +0100	[thread overview]
Message-ID: <46F1180C.6050905@bandsman.co.uk> (raw)
In-Reply-To: <Pine.LNX.4.64.0709191037140.28395@racer.site>

[-- Attachment #1: Type: text/plain, Size: 2449 bytes --]

I suddenly remembered I'd forgotten to do a "make clean" after my last checkout (oops).

So I did that, and got this compilation error:

...
In file included from /home/njh/src/qemu/linux-user/syscall.c:4040:
/home/njh/src/qemu/linux-user/syscall.c: In function `do_syscall':
/usr/include/bits/unistd.h:62: sorry, unimplemented: inlining failed in call to 'pread': recursive inlining
/home/njh/src/qemu/linux-user/syscall.c:63: sorry, unimplemented: called from here
make[1]: *** [syscall.o] Error 1
make[1]: Leaving directory `/home/njh/src/qemu/i386-linux-user'
make: *** [subdir-i386-linux-user] Error 2

This is because both unistd.h and linux/unistd.h are included. Remove unistd.h from line 27 and that compiles OK.

The next (similar) failure is in mmap.c:

...
/home/njh/src/qemu/linux-user/mmap.c:392: warning: comparison between signed and unsigned
/home/njh/src/qemu/linux-user/mmap.c: In function `mmap_frag':
/usr/include/bits/unistd.h:62: sorry, unimplemented: inlining failed in call to 'pread': recursive inlining
/home/njh/src/qemu/linux-user/mmap.c:63: sorry, unimplemented: called from here
/home/njh/src/qemu/linux-user/mmap.c:139: warning: ignoring return value of `pread', declared with attribute warn_unused_result

Here the fix was on line 24 to replace #include <unistd.h> with <linux/unistd.h>

Then:

...
/home/njh/src/qemu/linux-user/flatload.c: In function `target_pread':
/usr/include/bits/unistd.h:62: sorry, unimplemented: inlining failed in call to 'pread': recursive inlining
/home/njh/src/qemu/linux-user/flatload.c:63: sorry, unimplemented: called from here

Which needs the same fix at line 41.

I suspect these may break building on other OS's, so a cleaner fix will be needed.

The next compilation error is:

...
/home/njh/src/qemu/monitor.c:52: warning: function declaration isn't a prototype
/home/njh/src/qemu/monitor.c:61: error: array size missing in 'term_cmds'
/home/njh/src/qemu/monitor.c:62: error: array size missing in 'info_cmds'

The fix is to change term_cmds[] to *term_cmds, and similarly to info_cmds. This is less than optimal,
but it gets the code compiling pending a code tidy.

The good news is that with these fixes it all compiles and the mips guest runs again (note to self: remember
to run make clean ;-) )


-Nigel

-- 
Nigel Horne. Adjudicator, Arranger, Band Trainer, Composer, Tutor, Typesetter.
NJH Music, Barnsley, UK.  ICQ#20252325
njh@bandsman.co.uk http://www.bandsman.co.uk

[-- Attachment #2: njh.vcf --]
[-- Type: text/x-vcard, Size: 279 bytes --]

begin:vcard
fn:Nigel Horne
n:Horne;Nigel
org:NJH Music
adr:Pogmoor;;28 Wharfedale Road;Barnsley;South Yorkshire;S75 2LJ;UK
email;internet:njh@bandsman.co.uk
tel;fax:+44 870 705 9334
note:Skype: nigelhorne
x-mozilla-html:FALSE
url:http://www.bandsman.co.uk
version:2.1
end:vcard


  reply	other threads:[~2007-09-19 12:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-19  9:21 [Qemu-devel] Mips guest Nigel Horne
2007-09-19  9:43 ` Johannes Schindelin
2007-09-19 12:37   ` Nigel Horne [this message]
2007-09-19 12:53     ` Thiemo Seufer
2007-09-19 13:49       ` Nigel Horne
2007-09-19 14:33         ` Ronald
2007-09-19 15:07           ` Nigel Horne
2007-09-19 10:16 ` Thiemo Seufer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46F1180C.6050905@bandsman.co.uk \
    --to=njh@bandsman.co.uk \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.