build fails with current uclibc
Hello,
Current buildroot fails with configuration:
BR2_arm=y
BR2_arm920t=y
BR2_ARM_TYPE="ARM920T"
BR2_ARM_OABI=y
BR2_KERNEL_HEADERS_2_6_21=y BR2_DEFAULT_KERNEL_HEADERS="2.6.21.5" BR2_UCLIBC_VERSION_SNAPSHOT=y BR2_USE_UCLIBC_SNAPSHOT="snapshot" BR2_UCLIBC_CONFIG="toolchain/uClibc/uClibc-0.9.29.config" BR2_PTHREADS_OLD=y
BR2_GCC_VERSION="3.4.6"
make[1]: Entering directory `buildroot/toolchain_build_arm/uClibc' ../libc/misc/wchar/wchar.c:170: error: syntax error before "attribute_hidden" ../libc/misc/wchar/wchar.c:170: warning: data definition has no type or storage class ../libc/misc/wchar/wchar.c:173: error: syntax error before "attribute_hidden" ../libc/misc/wchar/wchar.c:173: warning: data definition has no type or storage class make[2]: *** [../utils/iconv] Error 1
make[1]: *** [utils] ?????? 2
BR,
Ivan
Quoted 4 lines · Ivan Kuten
Hello,
Current buildroot fails with configuration:
*phew* glad i usually turn off locale as well as wchar support. Glad that I have a pending workaround for m4 being b0rked with wchar off, fwiw ;)
Quoted 13 lines
BR2_arm=y
BR2_arm920t=y
BR2_ARM_TYPE="ARM920T"
BR2_ARM_OABI=y
BR2_KERNEL_HEADERS_2_6_21=y BR2_DEFAULT_KERNEL_HEADERS="2.6.21.5" BR2_UCLIBC_VERSION_SNAPSHOT=y BR2_USE_UCLIBC_SNAPSHOT="snapshot" BR2_UCLIBC_CONFIG="toolchain/uClibc/uClibc-0.9.29.config" BR2_PTHREADS_OLD=y
BR2_GCC_VERSION="3.4.6"
Quoted 7 lines
make[1]: Entering directory `buildroot/toolchain_build_arm/uClibc'
../libc/misc/wchar/wchar.c:170: error: syntax error before "attribute_hidden"../libc/misc/wchar/wchar.c:170: warning: data definition has no type or storage class../libc/misc/wchar/wchar.c:173: error: syntax error before "attribute_hidden"../libc/misc/wchar/wchar.c:173: warning: data definition has no type or storage class make[2]: *** [../utils/iconv] Error 1
make[1]: *** [utils] ?????? 2
PS: I'll spare to make any mention of wchar support which is time-consuming as well as multilib support which falls into the same category. IMHO these two are exactly of those kinds where interrested parties should get in touch privately unless they want to sink their own time and money to provide a satisfactory correct solution, generally..
Put short, ask the uClibc folks about this
Hi,
The problem is in *iconv* binary for target, wchar support seems to be ok. For successful compilation, remove iconv from makefile. I spend 1 day digging in this problem and finaly decide to disable iconv in the target platform.
Attached is patch that must be copied into buildroot/toolchain/uClibc/ dir.
BR,
Assen Stoyanov
----- Original Message -----
From: "Bernhard Fischer" <[email protected]>
To: "Ivan Kuten" <[email protected]>
Cc: <[email protected]>
Sent: Friday, June 29, 2007 1:31 AM
Subject: Re: [Buildroot] build fails with current uclibc
Quoted 40 lines · Ivan Kuten
Quoted 4 lines
Hello,
Current buildroot fails with configuration:
*phew* glad i usually turn off locale as well as wchar support. Glad that I have a pending workaround for m4 being b0rked with wchar off, fwiw ;)
Quoted 13 lines
BR2_arm=y
BR2_arm920t=y
BR2_ARM_TYPE="ARM920T"
BR2_ARM_OABI=y
BR2_KERNEL_HEADERS_2_6_21=y BR2_DEFAULT_KERNEL_HEADERS="2.6.21.5" BR2_UCLIBC_VERSION_SNAPSHOT=y BR2_USE_UCLIBC_SNAPSHOT="snapshot" BR2_UCLIBC_CONFIG="toolchain/uClibc/uClibc-0.9.29.config" BR2_PTHREADS_OLD=y
BR2_GCC_VERSION="3.4.6"Quoted 11 lines
make[1]: Entering directory `buildroot/toolchain_build_arm/uClibc'
../libc/misc/wchar/wchar.c:170: error: syntax error before "attribute_hidden"../libc/misc/wchar/wchar.c:170: warning: data definition has no type or storage class../libc/misc/wchar/wchar.c:173: error: syntax error before "attribute_hidden"../libc/misc/wchar/wchar.c:173: warning: data definition has no type or storage class
make[2]: *** [../utils/iconv] Error 1
make[1]: *** [utils] ?????? 2PS: I'll spare to make any mention of wchar support which is time-consuming as well as multilib support which falls into the same category. IMHO these two are exactly of those kinds where interrested parties should get in touch privately unless they want to sink their own time and money to provide a satisfactory correct solution, generally..
Quoted 5 lines
Put short, ask the uClibc folks about this
_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uClibc-0.9.29-disable-broken-iconv-target.patch
Type: application/octet-stream
Size: 791 bytes
Desc: not available
Url : http://busybox.net/lists/buildroot/attachments/20070629/d0959978/attachment.obj
Quoted 13 lines · On Fri, 29 Jun 2007 11:21:30 +0300 softa at ttechgroup.com wrote:
Quoted 13 lines
Quoted 13 lines
BR2_arm=y
BR2_arm920t=y
BR2_ARM_TYPE="ARM920T"
BR2_ARM_OABI=y
BR2_KERNEL_HEADERS_2_6_21=y BR2_DEFAULT_KERNEL_HEADERS="2.6.21.5" BR2_UCLIBC_VERSION_SNAPSHOT=y BR2_USE_UCLIBC_SNAPSHOT="snapshot" BR2_UCLIBC_CONFIG="toolchain/uClibc/uClibc-0.9.29.config" BR2_PTHREADS_OLD=y
BR2_GCC_VERSION="3.4.6"
Quoted 12 lines
Quoted 12 lines
Quoted 11 lines
make[1]: Entering directory `buildroot/toolchain_build_arm/uClibc'
../libc/misc/wchar/wchar.c:170: error: syntax error before "attribute_hidden"../libc/misc/wchar/wchar.c:170: warning: data definition has no type or storage class../libc/misc/wchar/wchar.c:173: error: syntax error before "attribute_hidden"../libc/misc/wchar/wchar.c:173: warning: data definition has no type or storage class
make[2]: *** [../utils/iconv] Error 1
make[1]: *** [utils] ?????? 2
Wchar and locale uCLibc build is correct - i just enabled wchar&locale in uclibc config but not in BR2_ENABLE_LOCALE. Sorry for confusion.
BR,
Ivan
Quoted 8 lines · On Fri, 29 Jun 2007 12:25:56 +0300 Ivan Kuten wrote:
Quoted 1 line
Quoted 1 line
Wchar and locale uCLibc build is correct - i just enabled wchar&locale in uclibc config but not in
BR2_ENABLE_LOCALE. Sorry for confusion.Hi,
Quoted 8 lines
The problem is in *iconv* binary for target, wchar support seems to be ok. For successful compilation, remove iconv from makefile. I spend 1 day digging in this problem and finaly decide to disable iconv in the target platform.
Attached is patch that must be copied into buildroot/toolchain/uClibc/ dir.BR,
Assen Stoyanov
Again, I messed with ucLibc install - if doing from clean install build root this problem appears and indeed Assen's patch fixes behaviour.
However doing make from uclibc dir and uclibc .config I can make compile successfully - so it's more buildroot issue that of uclibc.
BR, Ivan