[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#819069: dietlibc: FTBFS on powerpcspe due to missing FPU emulation in library


On 03/27/2016 10:51 PM, Christian Seiler wrote:
> I don't have access to PowerPCSPE hardware. Of course, I could play
> the game of "let's try something and upload to experimental and see
> what the buildds do", but my previous upload of dietlibc to
> experimental (unrelated to this bug) isn't even built yet on ppcspe,

That's because I'm currently building unstable packages only since so
far only one buildd is set up yet. More buildds are hopefully coming
soon and then I will also enable building of experimental packages.

> so I'd rather not do that. Is there any way to get access to some
> hardware to test this? I asked around in IRC a bit and was told that
> ppcspe isn't bootstrapped yet, so my guess is that there's no official
> porterbox access, right? Is there any hardware you have where I could
> get access to? [1]

Of course, it's bootstrapped. That's the reason why I was able to write
the bug report in the first place. The buildd picked the dietlibc
package and failed to build it due to the missing FPU emulation.

> [1] Of course, if you know how to properly set up a qemu-based chroot
>     on amd64, that'd also be sufficient for me. But I did try to
>     debootstrap with the http://antcom.de/powerpcspe/ repository
>     according to <https://wiki.debian.org/PowerPCSPEPort>, but
>     qemu-ppc-static doesn't like it and I get "illegal instruction",
>     regardless of what binary I try to execute. qemu-ppc-static does
>     work for the 'powerpc' architecture in that fashion. (I'm using
>     QEMU 2.5 btw.)

The reason why that doesn't work is because you need to tell qemu
to switch the CPU type to e500v2 as it defaults to standard powerpc
CPU emulation which doesn't support some of the powerpcspe instructions.

You can try the following to boot qemu in system mode with e500v2

qemu-system-ppc -cpu e500v2 -M mpc8544ds -enable-kvm -m 2047 -bios
./u-boot.e500 -nographic -kernel ./uImage-kvm-guest -drive
file=debian_ppcspe.img,index=0,if=virtio -net nic,vlan=0,model=e1000
-net user,vlan=0 -append "rw root=/dev/vda1"

The BIOS can be found here:

> https://github.com/qemu/qemu/blob/master/pc-bios/u-boot.e500

I will get back to you once I have obtained both a filesystem image
as well as a usable kernel. But creating the image should be possible
with vmdebootstrap at least: https://wiki.debian.org/vmdebootstrap

You can already try to use (vm)debootstrap on ftp.debian-ports.org
which contains a powerpcspe archive as well which is constantly
filling up (the buildd is currently at around 2000 up-to-date


 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

Attachment: signature.asc
Description: OpenPGP digital signature

Reply to: