From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40963) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOPmY-0004oX-Rq for qemu-devel@nongnu.org; Mon, 01 Sep 2014 07:28:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XOPmU-0001c3-7J for qemu-devel@nongnu.org; Mon, 01 Sep 2014 07:28:22 -0400 Received: from mail-we0-x22a.google.com ([2a00:1450:400c:c03::22a]:61740) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOPmT-0001bv-WC for qemu-devel@nongnu.org; Mon, 01 Sep 2014 07:28:18 -0400 Received: by mail-we0-f170.google.com with SMTP id p10so5304801wes.29 for ; Mon, 01 Sep 2014 04:28:17 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <5404584D.9000702@redhat.com> Date: Mon, 01 Sep 2014 13:28:13 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1409567710-26217-1-git-send-email-famz@redhat.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2] rules.mak: Fix DSO build by pulling in archive symbols List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , Fam Zheng Cc: Kevin Wolf , hjl.tools@gmail.com, Michael Tokarev , QEMU Developers , Stefan Hajnoczi Il 01/09/2014 12:59, Peter Maydell ha scritto: > > warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm: > no name list > warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm: > no name list > warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm: > no name list > LINK qemu-nbd Is this with --enable-modules or without? Can you find out which invocations are printing the error? It could be one of "nm -P -g block/FILENAME.mo" or "nm -P -g libqemuutil.a" or "nm -P -g libqemustub.a". I found the error in http://www.opensource.apple.com/source/cctools/cctools-855/misc/nm.c if(st == NULL || st->nsyms == 0){ warning("no name list"); return; } I guess this could match the first part of this paragraph in the POSIX spec: "If no symbolic information is available for a valid input file, the nm utility shall report that fact, but not consider it an error condition". I guess we could use "2>&1" to shut it up, but it would be nice to know what the problem is. >> > +find-symbols = $(if $1, $(sort $(shell nm -P -g $1 | $2))) >> > +defined-symbols = $(call find-symbols,$1,awk '$$2!="U"{print $$1}') >> > +undefined-symbols = $(call find-symbols,$1,awk '$$2=="U"{print $$1}') > Are you sure your nm invocations are portable? Yes, http://pubs.opengroup.org/onlinepubs/9699919799/utilities/nm.html nm [-APv] [-g|-u] [-t format] file... -g Write only external (global) symbol information -P Write information in a portable output format, as specified in the STDOUT section. Paolo