qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Miklos Vajna <vmiklos@frugalware.org>
To: Laurent Vivier <laurent@vivier.eu>
Cc: qemu-devel@nongnu.org, froydnj@codesourcery.com
Subject: Re: [Qemu-devel] [PATCH 0/7] target-ppc/linux-user: NPTL support
Date: Wed, 10 Jun 2009 12:15:14 +0200	[thread overview]
Message-ID: <20090610101514.GG19075@genesis.frugalware.org> (raw)
In-Reply-To: <32707231.321001244626577355.JavaMail.servlet@kundenserver>

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

On Wed, Jun 10, 2009 at 11:36:17AM +0200, Laurent Vivier <laurent@vivier.eu> wrote:
> >$ cat /proc/sys/fs/binfmt_misc/qemu-ppc
> >enabled
> >interpreter /usr/bin/qemu-ppc
> 
> so qemu must be located at /usr/bin/ not / under your chrooted filesystem.

Ah, wow.

So it was a bug on my side, now it works!

OTOH, there is an other odd error. Here is a sample test program:

#include <stdio.h>
#include <sys/stat.h>

int main()
{
        struct stat buf;
        if (stat("usr/bin/ls", &buf)) {
                printf("not found\n");
        } else {
                printf("found\n");
        }
        return 0;
}

host$ ppc-frugalware-linux-gcc hello2.c -o hello2
host$ file hello2
hello2: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1
(SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.4.3, not
stripped
host$ ./hello2
found
host$ sudo chroot .
chroot:/# ./hello2
not found
chroot:/# grep usr hello2.c
        if (stat("usr/bin/ls", &buf)) {
chroot:/# ls usr/bin/ls
usr/bin/ls

Is it a bug that stat() does not found what ls does, or have I missed
something? :)

Thanks.

PS: Just in case somebody wants to play with it, here is the PPC chroot
tarball I'm using:

http://ftp.frugalware.org/pub/frugalware/frugalware-1.0-iso/fwchroot-1.0-ppc.tar.bz2

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2009-06-10 10:15 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-10  9:36 [Qemu-devel] [PATCH 0/7] target-ppc/linux-user: NPTL support Laurent Vivier
2009-06-10 10:15 ` Miklos Vajna [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-06-10 10:54 Laurent Vivier
2009-06-10 11:10 ` Miklos Vajna
2009-06-10 10:44 Laurent Vivier
2009-06-10 10:50 ` Miklos Vajna
2009-06-04 18:51 Nathan Froyd
2009-06-05 23:04 ` malc
2009-06-06  2:56   ` Paul Brook
2009-07-06 15:28   ` Nathan Froyd
2009-06-09 23:37 ` Miklos Vajna
2009-06-10  0:24   ` Daniel Jacobowitz
2009-06-10  0:30     ` Miklos Vajna
2009-06-10  2:49       ` Daniel Jacobowitz
2009-06-10  9:31         ` Miklos Vajna
2009-06-10  0:57   ` Laurent Vivier
2009-06-10  9:28     ` Miklos Vajna

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=20090610101514.GG19075@genesis.frugalware.org \
    --to=vmiklos@frugalware.org \
    --cc=froydnj@codesourcery.com \
    --cc=laurent@vivier.eu \
    --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 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).