qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Alexander Bulekov <alxndr@bu.edu>
Cc: Li Qiang <liq3ea@163.com>, "liq3ea@gmail.com" <liq3ea@gmail.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	Bandan Das <bsd@redhat.com>,
	Stefan Hajnoczi <stefanha@redhat.com>,
	Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: build error of unused function as MACRO G_DEFINE_AUTOPTR_CLEANUP_FUNC expand
Date: Wed, 8 Jul 2020 21:39:25 +0200	[thread overview]
Message-ID: <cc2d0e7a-a708-fdbc-fe0e-d2656db3bfe0@redhat.com> (raw)
In-Reply-To: <20200708192339.ex4ygaebjekxk2qc@mozz.bu.edu>

On 7/8/20 9:23 PM, Alexander Bulekov wrote:
> Hi Li,
> I usually build the fuzzer with "make i386-softmmu/fuzz", so I must have
> missed the nbd issue... I could not reproduce this locally since:
> 
> alxndr@mozz:qemu(master)$ dpkg -l "*glib2.0-bin*"
> Desired=Unknown/Install/Remove/Purge/Hold
> | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
> |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
> ||/ Name           Version      Architecture Description
> +++-==============-============-============-=================================
> ii  libglib2.0-bin 2.60.6-2     amd64        Programs for the GLib library
> 
>  The issue described in 9bda600b083 only shows up in versions older than
>  2.57.2... 
> 
> After some digging, in ./configure:
> ...
>   if test "$have_fuzzer" = "yes"; then
>     FUZZ_LDFLAGS=" -fsanitize=address,fuzzer"
>     FUZZ_CFLAGS=" -fsanitize=address,fuzzer"
>     CFLAGS=" -fsanitize=address,fuzzer-no-link"
> 
> Thats probably the issue. Should be
>     CFLAGS="$CFLAGS -fsanitize=address,fuzzer-no-link"

Oops, 3 reviewers missed that...

> 
> I'm also having trouble building, but for a different reason..
> 
> CC=clang-8 CXX=clang++-8  ./configure  --target-list="i386-softmmu" --enable-fuzzing
> ...
>   CC      i386-softmmu/tests/qtest/fuzz/qtest_wrappers.o
> /tmp/qemu/tests/qtest/fuzz/fuzz.c:215:5: error: implicit declaration of function 'rcu_enable_atfork' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
>     rcu_enable_atfork();
>     ^
> 45222b9a9016488289a1938a528239c3b83eddb1 is the first bad commit
> commit 45222b9a9016488289a1938a528239c3b83eddb1
> Author: Alexander Bulekov <alxndr@bu.edu>
> Date:   Thu Jun 18 12:05:16 2020 -0400
> 
>     fuzz: fix broken qtest check at rcu_disable_atfork
> 
> Looks like I forgot a header... I'll send fixes for both of these
> issues.
> 
> Thank you
> -Alex



  reply	other threads:[~2020-07-08 22:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-08 15:41 build error of unused function as MACRO G_DEFINE_AUTOPTR_CLEANUP_FUNC expand Li Qiang
2020-07-08 16:50 ` Philippe Mathieu-Daudé
2020-07-08 19:23   ` Alexander Bulekov
2020-07-08 19:39     ` Philippe Mathieu-Daudé [this message]
2020-07-08 20:06     ` Alexander Bulekov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cc2d0e7a-a708-fdbc-fe0e-d2656db3bfe0@redhat.com \
    --to=philmd@redhat.com \
    --cc=alxndr@bu.edu \
    --cc=bsd@redhat.com \
    --cc=liq3ea@163.com \
    --cc=liq3ea@gmail.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).