Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KVQG9-0003Jv-Uq for qemu-devel@nongnu.org; Tue, 19 Aug 2008 08:24:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KVQG8-0003IV-Rn for qemu-devel@nongnu.org; Tue, 19 Aug 2008 08:24:25 -0400 Received: from [199.232.76.173] (port=59358 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KVQG8-0003I2-GH for qemu-devel@nongnu.org; Tue, 19 Aug 2008 08:24:24 -0400 Received: from virgo.iok.hu ([193.202.89.103]:34425) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KVQG8-0004M8-73 for qemu-devel@nongnu.org; Tue, 19 Aug 2008 08:24:24 -0400 Received: from kag.elte.hu (kag.elte.hu [157.181.177.1]) by virgo.iok.hu (Postfix) with ESMTP id E9D891B250C for ; Tue, 19 Aug 2008 14:24:18 +0200 (CEST) Received: from genesis.frugalware.org (frugalware.elte.hu [157.181.177.34]) by kag.elte.hu (Postfix) with ESMTP id 4B2814465E for ; Tue, 19 Aug 2008 13:28:22 +0200 (CEST) Date: Tue, 19 Aug 2008 14:24:18 +0200 From: Miklos Vajna Message-ID: <20080819122418.GA17582@genesis.frugalware.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tKW2IUtsqtDRztdT" Content-Disposition: inline Subject: [Qemu-devel] qemu-ppc (user mode) and chroot Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --tKW2IUtsqtDRztdT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, I recently found a mailing list post: http://osdir.com/ml/emulators.qemu/2004-02/msg00162.html That's exactly what I'm trying to set up. I have a ppc chroot on an x86 machine - both Linux, with nptl-enabled glibc. I'm trying to run the following test app: #include #include int main() { int pid; pid = fork(); printf("child is %d\n", pid); if (pid == -1) perror("fork() failed"); return 0; } When I link this statically to a linuxthreads-enabled libc on ppc, then I can run this using qemu-ppc without any problem: $ sudo chroot . /qemu-ppc /hello-static child is 0 child is 29207 However, when I link it dynamically (so it will use the nptl-enabled libc from the chroot), I get: $ sudo chroot . /qemu-ppc /hello child is -1 fork() failed: Invalid argument and yes, I just checked, when I run the same dynamic executable on a real ppc, it works just fine, so I think this is a bug in qemu. I tried qemu-0.9.1 and svn trunk, with the same results. Is this a known issue? Thanks! --tKW2IUtsqtDRztdT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkiqu3IACgkQe81tAgORUJbyZwCfWnDAwKIA88zRrDHEFdRSeT1l BBgAn3i0KNvONIvYmkuAQr4KzW0nEyq1 =TU4y -----END PGP SIGNATURE----- --tKW2IUtsqtDRztdT--