[uClibc]Re: beginner's stupid toolchain question
Bob Cheng
hdrhg at hotmail.com
Wed Aug 7 08:47:07 UTC 2002
Hi Eric:
Yes! Now I got helloworldcpp.o and helloworldcpp.o.gdb, helloworldcpp.o
seems to be flat formatted. However, I got error message like this when I
try to run it on uClinux (kernel 2.4.6, ARM940TDMI):
#./helloworldcpp.o
fault-common.c 242
Bus error
#
[bob at voip test]$ /home/bob/gcc-3.1/toolchain/bin/arm-uclibc-g++ -elf2flt
hellowo
rldcpp.cpp -o helloworldcpp.o
In file included from
/home/bob/gcc-3.1/toolchain/include/g++-v3/backward/iostre
am.h:31,
from helloworldcpp.cpp:1:
/home/bob/gcc-3.1/toolchain/include/g++-v3/backward/backward_warning.h:32:2:
war
ning: #warning This file includes at least one deprecated or antiquated
header.
Please consider using one of the 32 headers found in section 17.4.1.2 of the
C++
standard. Examples include substituting the <X> header for the <X.h> header
for
C++ includes, or <sstream> instead of the deprecated header <strstream.h>.
To d
isable this warning use -Wno-deprecated.
/home/bob/gcc-3.1/toolchain/lib/gcc-lib/arm-linux/3.1/../../../../arm-linux/lib/
libstdc++.a(locale.o):/home/bob/gcc-3.1/build/gcc-3.1/libstdc++-v3/src/locale.cc
:308: the 'setlocale' function supports only C|POSIX locales
[bob at voip test]$ ls -al helloworldcpp.*
-rw-rw-r-- 1 bob bob 64 8¤ë 7 11:52 helloworldcpp.cpp
-rwxr--r-- 1 bob bob 233804 8¤ë 7 16:49 helloworldcpp.o
-rwxrwxr-x 1 bob bob 1919497 8¤ë 7 16:49 helloworldcpp.o.gdb
>From: Erik Andersen <andersen at codepoet.org>
>Reply-To: andersen at codepoet.org
>To: Bob Cheng <hdrhg at hotmail.com>
>CC: uclibc at uclibc.org
>Subject: Re: beginner's stupid toolchain question
>Date: Wed, 7 Aug 2002 02:00:38 -0600
>
>On Wed Aug 07, 2002 at 02:59:05PM +0800, Bob Cheng wrote:
> > [bob at voip test]$ file helloworldcpp.o
> > helloworldcpp.o: ELF 32-bit LSB executable, ARM, version 1, statically
> > linked, n
> > ot stripped
> > [bob at voip test]$ /home/bob/gcc-3.1/toolchain/bin/arm-uclibc-elf2flt
> > helloworldcp
> > p.o
> > helloworldcpp.o: Input file contains no relocation info
>
>Hmm. Elf2flt is integrated into the linker, so when you
>compile things, just add the '-elf2flt' option and it should
>do the right thing automagically,
>
> -Erik
>
>--
>Erik B. Andersen http://codepoet-consulting.com/
>--This message was written using 73% post-consumer electrons--
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
More information about the uClibc
mailing list