From: Paolo Bonzini <pbonzini@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>, Fam Zheng <famz@redhat.com>
Cc: Kevin Wolf <kwolf@redhat.com>,
hjl.tools@gmail.com, Michael Tokarev <mjt@tls.msk.ru>,
QEMU Developers <qemu-devel@nongnu.org>,
Stefan Hajnoczi <stefanha@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v2] rules.mak: Fix DSO build by pulling in archive symbols
Date: Mon, 01 Sep 2014 13:28:13 +0200 [thread overview]
Message-ID: <5404584D.9000702@redhat.com> (raw)
In-Reply-To: <CAFEAcA9T1NPpVe1UMCwKXSiaTFQaxzGt86vK1wT2_+72knvmCA@mail.gmail.com>
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
next prev parent reply other threads:[~2014-09-01 11:28 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-01 10:35 [Qemu-devel] [PATCH v2] rules.mak: Fix DSO build by pulling in archive symbols Fam Zheng
2014-09-01 10:37 ` Paolo Bonzini
2014-09-01 10:59 ` Peter Maydell
2014-09-01 11:28 ` Paolo Bonzini [this message]
2014-09-01 11:46 ` Peter Maydell
2014-09-01 12:04 ` Paolo Bonzini
2014-09-01 12:07 ` Peter Maydell
2014-09-02 1:19 ` Fam Zheng
2014-09-02 12:07 ` Paolo Bonzini
2014-09-03 3:19 ` Fam Zheng
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=5404584D.9000702@redhat.com \
--to=pbonzini@redhat.com \
--cc=famz@redhat.com \
--cc=hjl.tools@gmail.com \
--cc=kwolf@redhat.com \
--cc=mjt@tls.msk.ru \
--cc=peter.maydell@linaro.org \
--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).