Open Ioozer opened 4 years ago
@Ioozer: Silly me, I'd asked earlier in #321 about the Linux distribution without realising, that you are the same user that had opened both issues. So now I believe to know the answer to my question.
I've downloaded sparkylinux-2020.09-x86_64-xfce.iso
, but when I run it as a live session the result of uname -r
is '5.7.0-3-amd64'. BUT, after an apt update
the apt install -y linux-headers-amd64
command wants to download headers for v5.8.0 (and the correct ones for linux-headers-$( uname -r )
could not be found). So this "(Semi)-Rolling" distribution can't be used in a live environment for this test (and I'm not gone waste more of my time installing such a …).
It is highly likely that in one of the newer Linux kernels (after v5.4) a change occurred, that lead to the build issue you've run into. For the moment you could use the "stable" release of SparkyLinux (with a v4.19 kernel). Or if you fancy something newer, one of the many distributions derived from Ubuntu 20.04 (that are using a v5.4 kernel). I say this because that is what I've successfully tested HAXM v7.6.5 with on 'Linux Mint 20'.
Well, I now believe that the problem might not be a big deal.
After a bit of an analysis I've just added the header file that seems to be required (i.e. 'asm/io.h') into 'hax_mem_alloc.c' (see HAXM-issue_322.patch.gz )
I've only done some fairly limited testing with a Linux kernel v5.0 (using: Mint v19.3), and v5.8 (using: Manjaro v20.1). So I think the original author @AlexAltea should take a look at it.
@maronz Patch looks good to me!
patch also worked for me on arch 5.9.14. builds successfully
The patch doesn't work with the 7.7.0 version, but the bug is still present...
System information:
Packages installed:
linux-header-amd64 nasm
to allow it to started to buildThe error message: