* [Qemu-devel] qemu-ppc (user mode) and chroot
@ 2008-08-19 12:24 Miklos Vajna
2008-08-19 12:31 ` Miklos Vajna
0 siblings, 1 reply; 2+ messages in thread
From: Miklos Vajna @ 2008-08-19 12:24 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 1028 bytes --]
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 <stdio.h>
#include <unistd.h>
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!
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] qemu-ppc (user mode) and chroot
2008-08-19 12:24 [Qemu-devel] qemu-ppc (user mode) and chroot Miklos Vajna
@ 2008-08-19 12:31 ` Miklos Vajna
0 siblings, 0 replies; 2+ messages in thread
From: Miklos Vajna @ 2008-08-19 12:31 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 331 bytes --]
On Tue, Aug 19, 2008 at 02:24:18PM +0200, Miklos Vajna <vmiklos@frugalware.org> wrote:
> I have a ppc chroot on an x86 machine - both Linux, with nptl-enabled
> glibc.
Ah, forgot to mention that the kernel is a 2.6 one, with nptl support
(same for the real ppc machine), so the lack of kernel support can't be
a problem.
Thanks!
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-08-19 12:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-19 12:24 [Qemu-devel] qemu-ppc (user mode) and chroot Miklos Vajna
2008-08-19 12:31 ` Miklos Vajna
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).