From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47874) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNgSw-0005J9-Bl for qemu-devel@nongnu.org; Thu, 14 Jul 2016 09:14:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNgSr-0002rO-Af for qemu-devel@nongnu.org; Thu, 14 Jul 2016 09:14:09 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:41818) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNgSr-0002rA-4R for qemu-devel@nongnu.org; Thu, 14 Jul 2016 09:14:05 -0400 Date: Thu, 14 Jul 2016 09:13:55 -0400 From: Aaron Lindsay Message-ID: <20160714131355.GA24499@codeaurora.org> References: <1465557378-24105-1-git-send-email-dgilbert@redhat.com> <1465557378-24105-3-git-send-email-dgilbert@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1465557378-24105-3-git-send-email-dgilbert@redhat.com> Subject: Re: [Qemu-devel] [PATCH v3 2/2] avx2 configure: Use primitives in test List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Dr. David Alan Gilbert (git)" Cc: qemu-devel@nongnu.org, pbonzini@redhat.com, peter.maydell@linaro.org, amit.shah@redhat.com, liang.z.li@intel.com, quintela@redhat.com On Jun 10 12:16, Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" > > Use the avx2 primitives during the test, thus making sure that the > compiler and assembler could actually use avx2. > > This also detects the failure case on gcc 4.8.x with -save-temps > and avoids the need for the gcc version check in cutils. I'm getting a segfault when running the latest tip compiled with gcc 4.8.4 on Ubuntu 14.04 and I've bisected it to this commit. # gcc --version gcc (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4 I'm configuring with: # ./configure \ --static \ --disable-gtk \ --target-list=aarch64-softmmu When run under gdb, I get: Program received signal SIGSEGV, Segmentation fault. buffer_find_nonzero_offset_ifunc () at ./util/cutils.c:333 333 { (gdb) bt #0 buffer_find_nonzero_offset_ifunc () at ./util/cutils.c:333 #1 0x0000000000939c58 in __libc_start_main () #2 0x0000000000419337 in _start () I confess I don't understand the intricacies here, but I'm willing to test fixes if you have any ideas for how to make this also work for my compiler without blindly excluding all gcc < 4.9. -Aaron