[uClibc]gcc-3.1.1-uclibc-20020807.src.tar.gz test result

Bob Cheng hdrhg at hotmail.com
Thu Aug 8 07:47:27 UTC 2002


Hi Eric:

(1) If I set "USE_UCLIBC_SNAPSHOT:=false" in Makefile, building g++ will 
fail
because wget can't find "uClibc-0.9.13.tar.bz2" file. If I change it
to uClibc-0.9.12, I can build g++ without error, but compiling my
helloworldcpp.cpp code will fail on the link step like this:

[bob at voip test]$ /home/bob/gcc-3.1.1/toolchain/bin/arm-uclibc-g++ -elf2flt 
hello
worldcpp.cpp
In file included from 
/home/bob/gcc-3.1.1/toolchain/include/c++/3.1.1/backward/i
ostream.h:31,
                 from helloworldcpp.cpp:1:
/home/bob/gcc-3.1.1/toolchain/include/c++/3.1.1/backward/backward_warning.h:32:2
: warning: #warning This file includes at least one deprecated or antiquated 
hea
der. Please consider using one of the 32 headers found in section 17.4.1.2 
of th
e C++ standard. Examples include substituting the <X> header for the <X.h> 
heade
r for C++ includes, or <sstream> instead of the deprecated header 
<strstream.h>.
To disable this warning use -Wno-deprecated.
/home/bob/gcc-3.1.1/toolchain/lib/gcc-lib/arm-linux/3.1.1/../../../../arm-linux/
lib/libstdc++.a(locale.o):/home/bob/gcc-3.1.1/build/gcc-3.1.1/libstdc++-v3/src/l
ocale.cc:308: the 'setlocale' function supports only C|POSIX locales
ERROR: text=31110 overlaps data=1 ?
collect2: ld returned 1 exit status


(2) If I set "USE_UCLIBC_SNAPSHOT:=true" in Makefile, I failed to build gcc
with errors like this:

make[4]: Entering directory `/home/bob/gcc-3.1.1/build/uClibc/libc/inet/rpc'
/home/bob/gcc-3.1.1/toolchain/bin/arm-uclibc-gcc -Wall -Wall 
-Wstrict-prototypes
-Wno-trigraphs -fno-strict-aliasing -Os -fstrict-aliasing -fno-builtin 
-nostdin
c  -I../../../include -iwithprefix include -I. -D_LIBC  -DNDEBUG  
-D_LIBC_REENTR
ANT -I../../../libpthread/linuxthreads/sysdeps/pthread -c ruserpass.c -o 
ruserpa
ss.o
ruserpass.c: In function `ruserpass':
ruserpass.c:99: storage size of `stb' isn't known
ruserpass.c:182: warning: implicit declaration of function `fstat64'
ruserpass.c:99: warning: unused variable `stb'
make[4]: *** [ruserpass.o] Error 1
make[4]: Leaving directory `/home/bob/gcc-3.1.1/build/uClibc/libc/inet/rpc'
make[3]: *** [_dir_rpc] Error 2
make[3]: Leaving directory `/home/bob/gcc-3.1.1/build/uClibc/libc/inet'
make[2]: *** [_dir_inet] Error 2
make[2]: Leaving directory `/home/bob/gcc-3.1.1/build/uClibc/libc'
make[1]: *** [_dir_libc] Error 2
make[1]: Leaving directory `/home/bob/gcc-3.1.1/build/uClibc'
make: *** [/home/bob/gcc-3.1.1/build/uClibc/lib/libc.a] Error 2


>Could you try the following updated toolchain for me?
>     
>http://www.uclibc.org/downloads/toolchain/gcc-3.1.1-uclibc-20020807.src.tar.gz
>
>Previously, I was disabling ctor/dtor support for mmuless
>systems, so I expect your problems are related to that...
>This updated toolchain now support ctors/dtors on mmuless
>systems as well,
>
>  -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