On 2/20/21 9:01 PM, Philippe Mathieu-Daudé wrote: > On 2/15/21 2:45 PM, Fredrik Noring wrote: >> On Mon, Feb 15, 2021 at 11:59:57AM +0000, Daniel P. Berrangé wrote: >>> On Sun, Feb 14, 2021 at 06:59:02PM +0100, Philippe Mathieu-Daudé wrote: >>>> Add a Docker image providing cross toolchain for the MIPS R5900 CPU >>>> (used on the Sony PS2). >>>> >>>> This image is based on Gentoo and the toolchain is built using crossdev. >>> >>> Is there any way we can do this with a distro that isn't Gentoo >>> so that we can get a container build that is fast enough to be >>> useful for CI ?
Using the Debian cross image I get: /home/phil/source/qemu/tests/docker/docker.py --engine auto cc --cc mips64el-linux-gnuabi64-gcc -i qemu/debian-mips64el-cross -s /home/phil/source/qemu -- -Wall -Werror -O0 -g -fno-strict-aliasing -mabi=n32 -march=r5900 /home/phil/source/qemu/tests/tcg/mips/test-r5900-dmult.c -o test-r5900-dmult -static cc1: error: unsupported combination: -march=r5900 -mhard-float -mdouble-float No clue what is setting '-mhard-float -mdouble-float' yet. >> >> Is it necessary to rebuild the toolchain every time? > > No. > >> Also, perhaps a >> generic MIPS suite can be used; it shouldn't to necessary to have one >> specifically made for the R5900 (except libc, if needed, I guess). > > We want it to build TCG tests. If we can link them, that should be OK. > >> As an alternative, TobiX at Github made an R5900 Docker image last year >> <https://github.com/frno7/linux/issues/33#issuecomment-632284209>, >> perhaps it could be useful somehow? > > Thanks, I'll have a look. > > Regards, > > Phil. >