On 03/29/2016 12:57 PM, John Paul Adrian Glaubitz wrote: > Here's a minimal chroot that I created myself that should work with > qemu-user. It already contains gcc-5 and Perl 5.22: > >> https://people.debian.org/~glaubitz/chroots/sid-powerpcspe-sbuild.tgz > > Use run a dist-upgrade to update the chroot first.
Many thanks. Unfortunately, apt-get update fails with illegal instruction in this image (but other binaries such as bash work). QEMU_CPU is set correctly, just in case you were wondering. (sid-powerpcspe-sbuild)root@...:/# apt-get --help apt 1.0.9.9 for powerpcspe compiled on Apr 28 2015 23:27:12 Usage: apt-get [options] command apt-get [options] install|remove pkg1 [pkg2 ...] apt-get [options] source pkg1 [pkg2 ...] [...] This APT has Super Cow Powers. (This means that apt-get in principle works.) (sid-powerpcspe-sbuild)root@...:/# apt-get update Invalid instruction NIP 6f9f6c0c LR 6fa16020 CTR 6fa12838 XER 00000000 CPU#0 MSR 02006000 HID0 00000000 HF 02006000 idx 0 TB 00156042 670196113302598 GPR00 000000006fa129d8 00000000f6fcd2c0 00000000f679a6d0 0000000000000000 GPR04 4010000000000000 00000000f6fcd8a0 0000000000000000 0000000000000000 GPR08 0000000000000000 0000000000000000 0000000000000066 00000000f6fcd380 GPR12 0000000028004428 00000000f6ffecd4 0000000000000000 00000000f6fcda28 GPR16 000000007fffffde 00000000f6fcd800 0000000000000000 000000006fb1a150 GPR20 000000006fa136d0 00000000f6fcdac0 000000000000002e 0000000000000000 GPR24 00000000ffff9010 0000000000000000 0000000000000000 0000000000000000 GPR28 00000000f6fcd800 00000000f6fcda28 000000006fb40ff4 00000000f6fcd2d0 CR 28004422 [ E L - - G G E E ] RES ffffffff FPR00 0000000000000000 0000000000000000 0000000000000000 0000000000000000 FPR04 0000000000000000 0000000000000000 0000000000000000 0000000000000000 FPR08 0000000000000000 0000000000000000 0000000000000000 0000000000000000 FPR12 0000000000000000 0000000000000000 0000000000000000 0000000000000000 FPR16 0000000000000000 0000000000000000 0000000000000000 0000000000000000 FPR20 0000000000000000 0000000000000000 0000000000000000 0000000000000000 FPR24 0000000000000000 0000000000000000 0000000000000000 0000000000000000 FPR28 0000000000000000 0000000000000000 0000000000000000 0000000000000000 FPSCR 00000000 qemu: uncaught target signal 4 (Illegal instruction) - core dumped Illegal instruction If I run qemu-ppc-static with -strace on that binary, I get the following before the invalid instruction message: 2540 execve("/usr/lib/apt/methods/http",{"/usr/lib/apt/methods/http",NULL}) = 0x00000001 ([5,],[],[],NULL) 2531 read(5,0xf6fbe68c,64000) = 64 2531 stat64("/var/lib/apt/lists/192.168.178.15:3142_debian-ports_dists_sid_InRelease",0xf6fce060) = -1 errno=2 (No such file or directory) 2531 stat64("/var/lib/apt/lists/partial/192.168.178.15:3142_debian-ports_dists_sid_InRelease.reverify",0xf6fce060) = -1 errno=2 (No such file or directory) 2531 stat64("/var/lib/apt/lists/192.168.178.15:3142_debian_dists_sid_InRelease",0xf6fce060) = -1 errno=2 (No such file or directory) 2531 stat64("/var/lib/apt/lists/partial/192.168.178.15:3142_debian_dists_sid_InRelease.reverify",0xf6fce060) = -1 errno=2 (No such file or directory) 2531 gettimeofday(-151198432,0,0,1919236640,1695156746,2) = 0 2531 gettimeofday(-151198424,0,0,1919236640,1695156746,2) = 0 2531 _newselect(9,[5,],[8,],[],{0,500000}) = 0x00000001 ([],[8,],[],{0,499998}) 2531 write(8,0xf669df8c,4979) = 4979 2531 gettimeofday(-151201560,0,-160863132,0,0,0) = 0 Invalid instruction Don't know if that could help or not. I only changed the APT mirror to my local apt-cacher-ng instance, and copied in qemu-ppc-static to /usr/bin, nothing else, the rest of the image is identical to your tarball. Of course, this could be a bug in QEMU... (I'm using the version from jessie-backports btw.) Maybe the best thing is to just wait a few weeks until more stuff is compiled in sid and try bootstrapping again... I'm very sorry, but unless you can give me a tarball with gcc5 that works with qemu-user or an image (with gcc5 + ssh) + a kernel that works with qemu-system, I'm afraid that I don't think I'm using my time productively. Sorry. :( I'll gladly help with porting the package itself once I have a working base setup for this. Regards, Christian PS: Just a heads-up: I had submitted a porterbox request to nm@d.o a while back for dietlibc, for a couple of platforms, but ppcspe was among them (I only started this thread later on after I was told in IRC that ppcspe may possible not have any porterboxes yet). myon forwarded my request to DSA today, so if they contact you w.r.t. it don't be surprised.
signature.asc
Description: OpenPGP digital signature