From: dony <dony.he@huawei.com.cn>
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: fadsrom questions...
Date: Tue, 15 Feb 2000 20:48:51 +0800 [thread overview]
Message-ID: <38A94B33.D06D64A8@huawei.com.cn> (raw)
In-Reply-To: 38A229CE.2472651F@grn.georet.net
Hello,
This is a strange question...
Since "puts()" in mbxboot/misc.c cannot work properly (it cannot print
messages via serial port correctly), I steal part of codes from vsprintf.c of
fadsrom, replacing puts() with printf().
Under the following old cross-compile environment, I can cross-compile my
kernel and run it on target correctly.
[binutils 2.9.1.0.19a]
[egcs-1.1.2]
[glibc-2.1 glibc-crypt-2.1 glibc-linuxthread-2.1]
When I upgrade my cross-compile environment to the following and recompile my
kernel, some errors occur:
[binutils 2.9.5.0.22]
[gcc-2.95.2]
[gcc-core-2.95.2]
[glibc-2.1.2 glibc-crypt-2.1.2 glibc-linuxthread-2.1.2]
Error:
In function 'vsprintf' (in vsprintf.c of fadsrom):
undefined reference to "__va_arg_type_violation".
I trace this problem and find that it calls "va_arg()" which is defined in
"stdarg.h" (under "/usr/local/lib/gcc-lib/powerpc-linux/2.95.2/include"). The
"stdarg.h" includes "va-ppc.h", and the "va-ppc.h" itself defines "
__va_arg_type_violation". I guess it is the link problem but don't know how to
solve it.
Does anyone know what's the problem?
Thanks very much.
dony
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
parent reply other threads:[~2000-02-15 12:48 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <38A229CE.2472651F@grn.georet.net>]
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=38A94B33.D06D64A8@huawei.com.cn \
--to=dony.he@huawei.com.cn \
--cc=linuxppc-embedded@lists.linuxppc.org \
/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).