News for hackers. Stuff that matters.
Re:ARM Mac Impact on Intel by jcelerier on Monday June 22, 2020 @02:49PM (#23604123)
I'm using https://github.com/multiarch/qemu-user-static - that's what it is, right ?
Re:ARM Mac Impact on Intel by anthk on Monday June 22, 2020 @03:56PM (#23605549)
Yes, indeed.

But instead of docker, just deboostrap the amd64 release under a directory, copy qemu-amd64 to $DIR/usr/bin and chroot into that directory. Docker is a bit of a mess.

Before chrooting, bind-mount:

/dev to $DIR/dev

/proc to $DIR/proc

/dev/pts to $DIR/pts

/sys to $DIR/dev

/home to $DIR/home

copy /etc/resolv.conf to $DIR/etc/resolv.conf

Then chroot and login (su -l yourusername). That way you could try running a lot of software.

Re:ARM Mac Impact on Intel by jcelerier on Monday June 22, 2020 @05:08PM (#23606686)
okay, will try to see what that gives. I'm curious as to why it would be slower (when taking into account that an equivalent docker container, say running debian stable, but with the same architecture as the host, runs in more-or-less the same time as building directly with my host's GCC)
Re:ARM Mac Impact on Intel by anthk on Tuesday June 23, 2020 @06:46AM (#23612208)
>ut with the same architecture as the host

debootstrap an ARM rootfs, please.