Closed bennofs closed 3 years ago
Can approve it.
Program scripts/decodetree.py found: YES (/usr/bin/python3 /opt/wokr/FUZZING/AFLplusplus/qemu_mode/qemuafl/scripts/decodetree.py)
Program @INPUT@ found: NO
../target/hexagon/meson.build:33:0: ERROR: Program '@INPUT@' not found
A full log can be found at /opt/wokr/FUZZING/AFLplusplus/qemu_mode/qemuafl/build/meson-logs/meson-log.txt
ERROR: meson setup failed
meson --version 0.58.999
you have to report this upstream to qemu itself, the meson setup is by them. until this is fixed and we then update from qemu you will have to install an older version or find a workaround.
@kotee4ko do not post your issues to completely different items!
Since this is still present in the current version, here's a rather simple workaround based on the patches pointed out by @bennofs:
build_qemu_support.sh
until it fails with the Program '@INPUT@' not found
error above. I'm assuming you're now in the qemu_mode
folder of AFLplusplus.cd qemuafl
curl 'https://pastebin.com/raw/i4xw9uNM' | tr -d '\r' > qemu-meson-workaround.patch
(this is just a merged version of the two commits; if you'd rather not trust me, manually merge them)patch -p1 < qemu-meson-workaround.patch
cd ..
NO_CHECKOUT=1 ./build_qemu_support.sh
The NO_CHECKOUT
flag must be set to any nonempty string. Otherwise, build_qemu_support.sh
will simply checkout qemuafl again, immediately overwriting your patch.
Tested (compiles, not tested if it works) on a6758d1cc3e4dde88fca3f0b3a903581b7c8b2e5.
Two commits from upstream qemu fix this: