Qemu build issues on Ubuntu 19
See original GitHub issueHi,
There seems to be a problem with building QEMU while running Ubuntu 19 when setting up phuzzer.
static int memfd_create(const char *name, unsigned int flags)
^~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/bits/mman-linux.h:111:0,
from /usr/include/x86_64-linux-gnu/bits/mman.h:34,
from /usr/include/x86_64-linux-gnu/sys/mman.h:41,
from /tmp/pip-req-build-r26yq_bw/bin/afl-unix/qemu_mode/qemu-2.10.0/include/sysemu/os-posix.h:29,
from /tmp/pip-req-build-r26yq_bw/bin/afl-unix/qemu_mode/qemu-2.10.0/include/qemu/osdep.h:104,
from util/memfd.c:28:
/usr/include/x86_64-linux-gnu/bits/mman-shared.h:50:5: note: previous declaration of ‘memfd_create’ was here
int memfd_create (const char *__name, unsigned int __flags) __THROW;
^~~~~~~~~~~~
make: *** [/tmp/pip-req-build-r26yq_bw/bin/afl-unix/qemu_mode/qemu-2.10.0/rules.mak:66: util/memfd.o] Error 1
I’ve tried downgrading gcc and etc to 6.0 (was using 8.4 before), and same issue. It might be related to a similar issue in Avatar2: https://github.com/avatartwo/avatar2/issues/14.
To maybe help diagnose this would it be possible to know what distro and kernel verion phuzzer is being developed with? Thanks!
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Virtualization - qemu
Qemu is a machine emulator that can run operating systems and programs for one machine on a different machine. Mostly it is not...
Read more >Build, Install, and Use QEMU on Ubuntu | hacklog
This post describes how you can build, install, and use QEMU on an Ubuntu machine. I basically refererenced http://wiki.qemu.org/Hosts/Linux ...
Read more >Load of pre-upgrade qemu modules needs to avoid noexec
This is due to qemu modules only working with exactly the same build. * The problem is that the path everyone (upstream+security) agreed...
Read more >Problem with compiling qemu from source : r/linuxquestions
For some reason there is no Spice OpenGl support build into the Linux Mint qemu package so I had to compile it from...
Read more >fails on "petalinux-boot --qemu --prebuilt 3"
Problem : when running command petalinux-boot --qemu --prebuilt 3, ... 4.10.0-28-generic #32~16.04.2-Ubuntu SMP Thu Jul 20 10:19:48 UTC 2017 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This issue seems to have to do with building the binaries for shellphish-afl and shellphish-qemu rather than the phuzzer package itself. This should be able to be bypassed by installing our wheels from the angr/wheels repo. I was able to get phuzzer installed in a 20.04 docker container like this:
This issue is related to shellphish-qemu and we have a workaround, so I’m going to consider this complete.