On 241113 2040, Philippe Mathieu-Daud?? wrote:
> On 13/11/24 16:37, Alexander Bulekov wrote:
> > OSS-Fuzz builds have been failing due to some strange issues that seem
> > to be related to color codes from libffi:
> > https://oss-fuzz-build-logs.storage.googleapis.com/log-8d5435ee-1677-40af-9656-b4162fa881e1.txt
> >
> > Disable tcg to disable libffi.
> >
> > Signed-off-by: Alexander Bulekov <[email protected]>
> > ---
> > scripts/oss-fuzz/build.sh | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/scripts/oss-fuzz/build.sh b/scripts/oss-fuzz/build.sh
> > index 7398298173..095f7a90e3 100755
> > --- a/scripts/oss-fuzz/build.sh
> > +++ b/scripts/oss-fuzz/build.sh
> > @@ -65,7 +65,7 @@ mkdir -p "$DEST_DIR/lib/" # Copy the shared libraries
> > here
> > # Build once to get the list of dynamic lib paths, and copy them over
> > ../configure --disable-werror --cc="$CC" --cxx="$CXX" --enable-fuzzing \
> > --prefix="/opt/qemu-oss-fuzz" \
> > - --extra-cflags="$EXTRA_CFLAGS" --target-list="i386-softmmu"
> > + --extra-cflags="$EXTRA_CFLAGS" --target-list="i386-softmmu"
> > --disable-tcg
>
> IIUC we are using the QTest 'software [un]accelerator' to fuzz via I/O,
> right?
> Then maybe we can disable all accelerators to speed up build. But please
> mention it in the commit description.
>
That would be nice, but needs some changes to meson.build, which doesn't
treat qtest as a real accelerator and will complain if building w/o tcg
and kvm:
error('No accelerator available for target @0@'.format(target))
> Regards,
>
> Phil.