buildroot patches for gcc-4.2

Miguel Angel Alvarez ma.alvarez at ziv.es
Mon Sep 11 16:06:17 UTC 2006


Hi

Due to problems with gcc 4.1.1 release with my m68k architecture, I am 
trying to build up a toolchain based on uclibc and the source code in 
the svn trunk of gcc.

I have also added the patches of buildroot for gcc-4.2, but when I try 
to compile gcc I obtain the following.

/home/mac/uSEL/trunk/output/board-3tn0339-uclibc/toolchain/gcc-4.2.0-snapshot-final/./gcc/xgcc 
-shared-libgcc 
-B/home/mac/uSEL/trunk/output/board-3tn0339-uclibc/toolchain/gcc-4.2.0-snapshot-final/./gcc 
-nostdinc++ 
-L/home/mac/uSEL/trunk/output/board-3tn0339-uclibc/toolchain/gcc-4.2.0-snapshot-final/m68k-linux-uclibc/libstdc++-v3/src 
-L/home/mac/uSEL/trunk/output/board-3tn0339-uclibc/toolchain/gcc-4.2.0-snapshot-final/m68k-linux-uclibc/libstdc++-v3/src/.libs 
-B/home/mac/uSEL/trunk/output/board-3tn0339-uclibc/stage/m68k-linux-uclibc/bin/ 
-B/home/mac/uSEL/trunk/output/board-3tn0339-uclibc/stage/m68k-linux-uclibc/lib/ 
-isystem 
/home/mac/uSEL/trunk/output/board-3tn0339-uclibc/stage/m68k-linux-uclibc/include 
-isystem 
/home/mac/uSEL/trunk/output/board-3tn0339-uclibc/stage/m68k-linux-uclibc/sys-include 
-I/home/mac/uSEL/trunk/output/board-3tn0339-uclibc/toolchain/gcc-4.2.0-snapshot-final/m68k-linux-uclibc/libstdc++-v3/include/m68k-linux-uclibc 
-I/home/mac/uSEL/trunk/output/board-3tn0339-uclibc/toolchain/gcc-4.2.0-snapshot-final/m68k-linux-uclibc/libstdc++-v3/include 
-I/home/mac/uSEL/trunk/output/board-3tn0339-uclibc/toolchain/gcc-4.2.0-snapshot/libstdc++-v3/libsupc++ 
-fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual 
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections -g 
-Os -c 
/home/mac/uSEL/trunk/output/board-3tn0339-uclibc/toolchain/gcc-4.2.0-snapshot/libstdc++-v3/src/codecvt.cc  
-fPIC -DPIC -o .libs/codecvt.o
In file included from 
/home/mac/uSEL/trunk/output/board-3tn0339-uclibc/toolchain/gcc-4.2.0-snapshot-final/m68k-linux-uclibc/libstdc++-v3/include/locale:46,
                 from 
/home/mac/uSEL/trunk/output/board-3tn0339-uclibc/toolchain/gcc-4.2.0-snapshot/libstdc++-v3/src/codecvt.cc:30:
/home/mac/uSEL/trunk/output/board-3tn0339-uclibc/toolchain/gcc-4.2.0-snapshot-final/m68k-linux-uclibc/libstdc++-v3/include/bits/locale_facets.tcc: 
In member function 'virtual _OutIter std::money_put<_CharT, 
_OutIter>::do_put(_OutIter, bool, std::ios_base&, _CharT, long double) 
const':
/home/mac/uSEL/trunk/output/board-3tn0339-uclibc/toolchain/gcc-4.2.0-snapshot-final/m68k-linux-uclibc/libstdc++-v3/include/bits/locale_facets.tcc:1805: 
error: no matching function for call to '__convert_from_v(int*&, char*&, 
int, const char [6], int, long double&)'
make[5]: *** [codecvt.lo] Error 1
make[5]: se sale del directorio 
`/home/mac/uSEL/trunk/output/board-3tn0339-uclibc/toolchain/gcc-4.2.0-snapshot-final/m68k-linux-uclibc/libstdc++-v3/src'
make[4]: *** [all-recursive] Error 1
make[4]: se sale del directorio 
`/home/mac/uSEL/trunk/output/board-3tn0339-uclibc/toolchain/gcc-4.2.0-snapshot-final/m68k-linux-uclibc/libstdc++-v3'
make[3]: *** [all] Error 2
make[3]: se sale del directorio 
`/home/mac/uSEL/trunk/output/board-3tn0339-uclibc/toolchain/gcc-4.2.0-snapshot-final/m68k-linux-uclibc/libstdc++-v3'
make[2]: *** [all-target-libstdc++-v3] Error 2
make[2]: se sale del directorio 
`/home/mac/uSEL/trunk/output/board-3tn0339-uclibc/toolchain/gcc-4.2.0-snapshot-final'
make[1]: *** [all] Error 2
make[1]: se sale del directorio 
`/home/mac/uSEL/trunk/output/board-3tn0339-uclibc/toolchain/gcc-4.2.0-snapshot-final'
make: *** 
[/home/mac/uSEL/trunk/output/board-3tn0339-uclibc/toolchain/gcc-4.2.0-snapshot-final/.compiled] 
Error 2
mac at mac2:~/uSEL/trunk$ gedit 
output/board-3tn0339-uclibc/toolchain/gcc-4.2.0-snapshot/libstdc++-v3/src/codecvt.cc 
&
[1] 25690

I suppose that the problem is that __convert_from_v has changed its API 
in commit 114591 of gcc, but the patch of buildroot does not reflect this.

I have made a complementary patch to 200-uclibc-locale.patch.

It seems to work, but I would appreciate if you check it.

I know I should send this to the mailing list of buildroot but I am not 
able to subscribe to it...

Miguel Ángel 
 
----------------------------------------- PLEASE NOTE -------------------------------------------
This message, along with any attachments, may be confidential or legally privileged. 
It is intended only for the named person(s), who is/are the only authorized recipients.
If this message has reached you in error, kindly destroy it without review and notify the sender immediately.
Thank you for your help.
µSysCom uses virus scanning software but excludes any liability for viruses contained in any attachment.
 
------------------------------------ ROGAMOS LEA ESTE TEXTO -------------------------------
Este mensaje y sus anexos pueden contener información confidencial y/o con derecho legal. 
Está dirigido únicamente a la/s persona/s o entidad/es reseñadas como único destinatario autorizado.
Si este mensaje le hubiera llegado por error, por favor elimínelo sin revisarlo ni reenviarlo y notifíquelo inmediatamente al remitente. Gracias por su colaboración.  
µSysCom utiliza software antivirus, pero no se hace responsable de los virus contenidos en los ficheros anexos.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 206-uclibc-locale-convert_from_v.patch.uclibc
Url: http://lists.busybox.net/pipermail/uclibc/attachments/20060911/e536d381/attachment.diff 


More information about the uClibc mailing list