From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MEKq2-0002sl-3z for qemu-devel@nongnu.org; Wed, 10 Jun 2009 06:15:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MEKpx-0002s8-4D for qemu-devel@nongnu.org; Wed, 10 Jun 2009 06:15:21 -0400 Received: from [199.232.76.173] (port=47211 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MEKpw-0002s5-V2 for qemu-devel@nongnu.org; Wed, 10 Jun 2009 06:15:17 -0400 Received: from virgo.iok.hu ([212.40.97.103]:59261) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MEKpw-0005Bp-B9 for qemu-devel@nongnu.org; Wed, 10 Jun 2009 06:15:16 -0400 Date: Wed, 10 Jun 2009 12:15:14 +0200 From: Miklos Vajna Subject: Re: [Qemu-devel] [PATCH 0/7] target-ppc/linux-user: NPTL support Message-ID: <20090610101514.GG19075@genesis.frugalware.org> References: <32707231.321001244626577355.JavaMail.servlet@kundenserver> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BzCohdixPhurzSK4" Content-Disposition: inline In-Reply-To: <32707231.321001244626577355.JavaMail.servlet@kundenserver> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier Cc: qemu-devel@nongnu.org, froydnj@codesourcery.com --BzCohdixPhurzSK4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 10, 2009 at 11:36:17AM +0200, Laurent Vivier wrote: > >$ cat /proc/sys/fs/binfmt_misc/qemu-ppc > >enabled > >interpreter /usr/bin/qemu-ppc >=20 > 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 #include 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-pp= c.tar.bz2 --BzCohdixPhurzSK4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkovh7IACgkQe81tAgORUJY/4wCeIohSp/MemK4u1nYhFdGyjalA PlUAnirwQ6dgcmsoB33YxW3l190hahCc =Zag+ -----END PGP SIGNATURE----- --BzCohdixPhurzSK4--