From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40419) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNmZI-00068V-Kc for qemu-devel@nongnu.org; Thu, 14 Jul 2016 15:45:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNmZD-0002Wc-Mf for qemu-devel@nongnu.org; Thu, 14 Jul 2016 15:45:08 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:54670) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNmZD-0002Vz-GT for qemu-devel@nongnu.org; Thu, 14 Jul 2016 15:45:03 -0400 Date: Thu, 14 Jul 2016 15:44:55 -0400 From: Aaron Lindsay Message-ID: <20160714194455.GA13450@codeaurora.org> References: <1465557378-24105-1-git-send-email-dgilbert@redhat.com> <1465557378-24105-3-git-send-email-dgilbert@redhat.com> <20160714131355.GA24499@codeaurora.org> <44bd9275-b1d0-63fb-afaf-9a119e513a09@redhat.com> <20160714142711.GB28687@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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: Peter Maydell Cc: Paolo Bonzini , Juan Quintela , Liang Li , "Dr. David Alan Gilbert (git)" , QEMU Developers , Amit Shah On Jul 14 15:35, Peter Maydell wrote: > On 14 July 2016 at 15:27, Aaron Lindsay wrote: > > On Jul 14 14:23, Peter Maydell wrote: > >> On 14 July 2016 at 14:15, Paolo Bonzini wrote: > >> > On 14/07/2016 15:13, Aaron Lindsay wrote: > >> >> I'm configuring with: > >> >> # ./configure \ > >> >> --static \ > >> >> --disable-gtk \ > >> >> --target-list=aarch64-softmmu > >> > >> > Hmm, it's possible that we have to disable ifunc together with --static. > >> > >> I'm still tempted to say we should just forbid building the softmmu > >> binaries with --static, unless somebody has a serious use case for it... > > > > FWIW, we do find it convenient to be able to compile one binary capable > > of running on multiple systems with different (and incompatible) library > > versions. > > The difficulty here is that the system emulators may call > functions in glibc which do dynamic resolution anyway, and so > "require the shared libraries from the glibc version used for > linking", to quote the linker warning. For the user-only binaries > we can claim we don't make those function calls, but for softmmu > we do. We haven't observed any problems with this approach so far, but your point is well taken. Perhaps we get what we deserve if we insist on statically compiling ;-) -Aaron -- Qualcomm Datacenter Technologies as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.