2009-03-17 07:51:16     *** Building uClibc error

Document created by Aaronwu Employee on Sep 26, 2013
Version 1Show Document
  • View in full screen mode

2009-03-17 07:51:16     *** Building uClibc error

sudeep tarafdar (INDIA)

Message: 71098   

 

extra/locale/gen_wc8bit `cat extra/locale/codesets.txt`

error: couldn't open file "./charmaps/KOI8-T.pairs"

make: *** [extra/locale/c8tables.h] Error 1

 

QuoteReplyEditDelete

 

 

2009-03-17 08:25:44     Re: *** Building uClibc error

Mike Frysinger (UNITED STATES)

Message: 71101   

 

you need to fully describe what you're doing.  a random snippet of a log is not enough to help you.

 

what version of source code are you using ?  what commands exactly are you running ?  etc...

QuoteReplyEditDelete

 

 

2009-03-18 01:56:33     Re: *** Building uClibc error

sudeep tarafdar (INDIA)

Message: 71154   

 

I have downloaded blackfin from the from link

 

http://docs.blackfin.uclinux.org/doku.php?id=developing_with_blackfin_live_sources  using the command

 

$ svn checkout svn://blackfin.uclinux.org/toolchain/trunk toolchain

$ svn checkout svn://blackfin.uclinux.org/u-boot/trunk/u-boot-1.1.6 u-boot

$ svn checkout svn://blackfin.uclinux.org/uclinux-dist/trunk uclinux-dist

 

after that i was trying to build it by using the the follwing command

 

~/blackfin-sources/toolchain/buildscript/BuildToolChain \

     -b ~/blackfin-sources/build \

     -k ~/blackfin-sources/uclinux-dist/linux-2.6.x \

     -s ~/blackfin-sources/toolchain \

     -u ~/blackfin-sources/u-boot -j 1

 

in which i am getting the following output

 

 

 

Checking for development packages (skip checks with the -D option)

Found multiple versions of m4, using the one at /usr/local/bin/m4

Found multiple versions of which, using the one at /usr/bin/which

Building gcc versions 4.1

Utilizing make: make -j1

Removing /opt/uClinux/bfin-linux-uclibc/bin/ from the PATH

Toolchain source is at      /home/novus/blackfin-sources/toolchain

Kernel source is at         /home/novus/blackfin-sources/uclinux-dist/linux-2.6.x

Build will be done in       /home/novus/blackfin-sources/build

Path to elf output dir      /home/novus/blackfin-sources/build/bfin-elf

/home/novus/blackfin-sources/build/bfin-elf already exists - cleaning

Path to binutils dir        /home/novus/blackfin-sources/toolchain/binutils-2.17

Path to gcc-4.1 dir         /home/novus/blackfin-sources/toolchain/gcc-4.1

Path to elf2flt dir         /home/novus/blackfin-sources/toolchain/elf2flt

Path to uClibc dir          /home/novus/blackfin-sources/toolchain/uClibc

    uClibc CFLAGS           -g -O2

Path to ldr-utils           /home/novus/blackfin-sources/toolchain/ldr-utils

Path to gdbproxy            /home/novus/blackfin-sources/toolchain/gdbproxy

Path to libftdi             /home/novus/blackfin-sources/toolchain/libftdi

Path to jtag                /home/novus/blackfin-sources/toolchain/jtag

Path to uClinux output dir  /home/novus/blackfin-sources/build/bfin-uclinux

/home/novus/blackfin-sources/build/bfin-uclinux already exists - cleaning

Path to linux-uClibc output dir /home/novus/blackfin-sources/build/bfin-linux-uclibc

/home/novus/blackfin-sources/build/bfin-linux-uclibc already exists - cleaning

Path to kernel output dir   /home/novus/blackfin-sources/build/kernel_build

/home/novus/blackfin-sources/build/kernel_build already exists - cleaning

Path to U-Boot Source       /home/novus/blackfin-sources/u-boot

Path to uClibc Config files /home/novus/blackfin-sources/toolchain/uClibc/extra/Configs/

Creating log file           /home/novus/blackfin-sources/build/logs/log

*** Configuring elf Binutils & GDB                  Wed Mar 18 10:44:25 IST 2009

*** Building elf Binutils & GDB                     Wed Mar 18 10:44:30 IST 2009

*** Installing elf Binutils & GDB                   Wed Mar 18 10:51:36 IST 2009

*** Building elf elf2flt                            Wed Mar 18 10:53:33 IST 2009

*** Make elf elf2flt                                Wed Mar 18 10:53:37 IST 2009

*** Installing elf elf2flt                          Wed Mar 18 10:53:39 IST 2009

*** Linking newlib and libgloss                     Wed Mar 18 10:53:39 IST 2009

*** Configuring GCC (4.1)                           Wed Mar 18 10:53:40 IST 2009

*** Building GCC                                    Wed Mar 18 10:53:43 IST 2009

*** Installing GCC                                  Wed Mar 18 11:16:20 IST 2009

*** Checking uClibc CFLAGS: -g -O2 OK

*** Configuring Linux Kernel                        Wed Mar 18 11:17:23 IST 2009

*** Configuring uClibc for .                        Wed Mar 18 11:17:33 IST 2009

*** Cleaning uClibc                                 Wed Mar 18 11:17:33 IST 2009

*** Building uClibc                                 Wed Mar 18 11:17:48 IST 2009

Please report an error to http://blackfin.uclinux.org/gf/project/toolchain

Build error Wed Mar 18 11:17:55 IST 2009

  occurred 33m41s into script

tar: Removing leading `/' from member names

When reporting issue, we may ask for /home/novus/blackfin-sources/build/logs/config.logs.tbz2

Last logfile entries:

true -Stripping_disabled -x -R .note -R .comment lib/crt1.o

install -d lib/

bfin-elf-gcc -c libc/sysdeps/linux/bfin/crti.S -o lib/crti.o -include ./include/libc-symbols.h -Wall -Wstrict-prototypes -fno-strict-aliasing -fno-stack-protector -fno-builtin -nostdinc -I./include -I. -I./libc/sysdeps/linux/bfin -DUCLIBC_INTERNAL -DSTATIC -Os -funit-at-a-time -fno-tree-loop-optimize -fno-tree-dominator-opts -fno-strength-reduce -g -O2 -I./libpthread/linuxthreads.old/sysdeps/unix/sysv/linux/bfin -I./libpthread/linuxthreads.old/sysdeps/bfin -I./libpthread/linuxthreads.old/sysdeps/unix/sysv/linux -I./libpthread/linuxthreads.old/sysdeps/pthread -I./libpthread/linuxthreads.old -I./libpthread -I/home/novus/blackfin-sources/build/kernel_build/usr/include/ -I/home/novus/blackfin-sources/build/bfin-elf/lib/gcc/bfin-elf/4.1.2//include-fixed -I/home/novus/blackfin-sources/build/bfin-elf/lib/gcc/bfin-elf/4.1.2/include -DNDEBUG -D__UCLIBC_UNDERSCORES__ -g -O2 -MT lib/crti.o -MD -MP -MF lib/.crti.o.dep -D__ASSEMBLER__

install -d lib/

bfin-elf-gcc -c libc/sysdeps/linux/bfin/crtn.S -o lib/crtn.o -include ./include/libc-symbols.h -Wall -Wstrict-prototypes -fno-strict-aliasing -fno-stack-protector -fno-builtin -nostdinc -I./include -I. -I./libc/sysdeps/linux/bfin -DUCLIBC_INTERNAL -DSTATIC -Os -funit-at-a-time -fno-tree-loop-optimize -fno-tree-dominator-opts -fno-strength-reduce -g -O2 -I./libpthread/linuxthreads.old/sysdeps/unix/sysv/linux/bfin -I./libpthread/linuxthreads.old/sysdeps/bfin -I./libpthread/linuxthreads.old/sysdeps/unix/sysv/linux -I./libpthread/linuxthreads.old/sysdeps/pthread -I./libpthread/linuxthreads.old -I./libpthread -I/home/novus/blackfin-sources/build/kernel_build/usr/include/ -I/home/novus/blackfin-sources/build/bfin-elf/lib/gcc/bfin-elf/4.1.2//include-fixed -I/home/novus/blackfin-sources/build/bfin-elf/lib/gcc/bfin-elf/4.1.2/include -DNDEBUG -D__UCLIBC_UNDERSCORES__ -g -O2 -MT lib/crtn.o -MD -MP -MF lib/.crtn.o.dep -D__ASSEMBLER__

bfin-elf-gcc -c libcrypt/crypt.c -o libcrypt/crypt.o -include ./include/libc-symbols.h -Wall -Wstrict-prototypes -fno-strict-aliasing -fno-stack-protector -fno-builtin -nostdinc -I./include -I. -I./libc/sysdeps/linux/bfin -DUCLIBC_INTERNAL -DSTATIC -std=gnu99 -Os -funit-at-a-time -fno-tree-loop-optimize -fno-tree-dominator-opts -fno-strength-reduce -g -O2 -I./libpthread/linuxthreads.old/sysdeps/unix/sysv/linux/bfin -I./libpthread/linuxthreads.old/sysdeps/bfin -I./libpthread/linuxthreads.old/sysdeps/unix/sysv/linux -I./libpthread/linuxthreads.old/sysdeps/pthread -I./libpthread/linuxthreads.old -I./libpthread -I/home/novus/blackfin-sources/build/kernel_build/usr/include/ -I/home/novus/blackfin-sources/build/bfin-elf/lib/gcc/bfin-elf/4.1.2//include-fixed -I/home/novus/blackfin-sources/build/bfin-elf/lib/gcc/bfin-elf/4.1.2/include -DNDEBUG -D__UCLIBC_UNDERSCORES__ -g -O2 -DNOT_IN_libc -DIS_IN_libcrypt -MT libcrypt/crypt.o -MD -MP -MF libcrypt/.crypt.o.dep

gcc extra/locale/gen_wc8bit.c  -o extra/locale/gen_wc8bit    -O2 -Wall  -D__UCLIBC_GEN_LOCALE -DUCLIBC_CTYPE_HEADER='"./include/bits/uClibc_ctype.h"' -DCTYPE_PACKED=1

extra/locale/gen_wc8bit `cat extra/locale/codesets.txt`

error: couldn't open file "./charmaps/KOI8-T.pairs"

make: *** [extra/locale/c8tables.h] Error 1

 

 

 

QuoteReplyEditDelete

 

 

2009-03-20 22:06:44     Re: *** Building uClibc error

Robin Getz (UNITED STATES)

Message: 71324   

 

Sudeep:

 

The default build does not build locale - so something in your description is wrong. (You modified something, or your checkout has been messed up).

 

Can you build things without changing anything?

QuoteReplyEditDelete

 

 

2009-03-23 02:19:27     Re: *** Building uClibc error

sudeep tarafdar (INDIA)

Message: 71359   

 

yes I have made the  following changes so that i can unable wc_char

 

diff --git a/uClibc/extra/Configs/Config.bfin.default b/uClibc/extra/Configs/Config.bfin.default

index 8c408d3..280c50a 100644

--- a/uClibc/extra/Configs/Config.bfin.default

+++ b/uClibc/extra/Configs/Config.bfin.default

@@ -99,8 +99,11 @@ UCLIBC_HAS_CTYPE_SIGNED=y

UCLIBC_HAS_CTYPE_UNSAFE=y

# UCLIBC_HAS_CTYPE_CHECKED is not set

# UCLIBC_HAS_CTYPE_ENFORCED is not set

-# UCLIBC_HAS_WCHAR is not set

-# UCLIBC_HAS_LOCALE is not set

+UCLIBC_HAS_WCHAR=y

+UCLIBC_HAS_LOCALE=y

+UCLIBC_PREGENERATED_LOCALE_DATA=y

+# UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA is not set

+UCLIBC_HAS_XLOCALE=y

# UCLIBC_HAS_HEXADECIMAL_FLOATS is not set

# UCLIBC_HAS_GLIBC_CUSTOM_PRINTF is not set

# USE_OLD_VFPRINTF is not set

diff --git a/uClibc/extra/Configs/Config.bfinfdpic.default b/uClibc/extra/Configs/Config.bfinfdpic.default

index 34971ff..34a918e 100644

--- a/uClibc/extra/Configs/Config.bfinfdpic.default

+++ b/uClibc/extra/Configs/Config.bfinfdpic.default

@@ -106,8 +106,11 @@ UCLIBC_HAS_CTYPE_SIGNED=y

UCLIBC_HAS_CTYPE_UNSAFE=y

# UCLIBC_HAS_CTYPE_CHECKED is not set

# UCLIBC_HAS_CTYPE_ENFORCED is not set

-# UCLIBC_HAS_WCHAR is not set

-# UCLIBC_HAS_LOCALE is not set

+UCLIBC_HAS_WCHAR=y

+UCLIBC_HAS_LOCALE=y

+UCLIBC_PREGENERATED_LOCALE_DATA=y

+# UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA is not set

+UCLIBC_HAS_XLOCALE=y

# UCLIBC_HAS_HEXADECIMAL_FLOATS is not set

# UCLIBC_HAS_GLIBC_CUSTOM_PRINTF is not set

# USE_OLD_VFPRINTF is not set

 

after doing this I am getting the following error

 

Last logfile entries:

extra/locale/gen_wc8bit.c:318: error: '__CTYPE_print_space_nonblank' undeclared (first use in this function)

extra/locale/gen_wc8bit.c:320: error: '__CTYPE_print_space_blank' undeclared (first use in this function)

extra/locale/gen_wc8bit.c:323: error: '__CTYPE_space_nonblank_noncntrl' undeclared (first use in this function)

extra/locale/gen_wc8bit.c:325: error: '__CTYPE_space_blank_noncntrl' undeclared (first use in this function)

extra/locale/gen_wc8bit.c:328: error: '__CTYPE_cntrl_nonspace' undeclared (first use in this function)

extra/locale/gen_wc8bit.c:330: error: '__CTYPE_cntrl_space_nonblank' undeclared (first use in this function)

extra/locale/gen_wc8bit.c:332: error: '__CTYPE_cntrl_space_blank' undeclared (first use in this function)

extra/locale/gen_wc8bit.c:467: warning: pointer targets in assignment differ in signedness

extra/locale/gen_wc8bit.c:618: warning: pointer targets in assignment differ in signedness

make: *** [extra/locale/gen_wc8bit] Error 1

 

 

 

QuoteReplyEditDelete

 

 

2009-03-23 02:27:36     Re: *** Building uClibc error

sudeep tarafdar (INDIA)

Message: 71360   

 

after the above error i change gen_wc8bit.c and gen_wctype.c

 

#include UCLIBC_CTYPE_HEADER to # include "uClib_ctype.h"

 

then i have got the following error

 

 

 

 

 

bfin-elf-gcc -c libc/sysdeps/linux/bfin/crtn.S -o lib/crtn.o -include ./include/libc-symbols.h -Wall -Wstrict-prototypes -fno-strict-aliasing -mid-shared-library -fno-stack-protector -fno-builtin -nostdinc -I./include -I. -I./libc/sysdeps/linux/bfin -mid-shared-library -DUCLIBC_INTERNAL -DSTATIC -Os -funit-at-a-time -fno-tree-loop-optimize -fno-tree-dominator-opts -fno-strength-reduce -g -O2 -I./libpthread/linuxthreads.old/sysdeps/unix/sysv/linux/bfin -I./libpthread/linuxthreads.old/sysdeps/bfin -I./libpthread/linuxthreads.old/sysdeps/unix/sysv/linux -I./libpthread/linuxthreads.old/sysdeps/pthread -I./libpthread/linuxthreads.old -I./libpthread -I/home/novus/blackfin-sources/build/kernel_build/usr/include/ -I/home/novus/blackfin-sources/build/bfin-elf/lib/gcc/bfin-elf/4.1.2//include-fixed -I/home/novus/blackfin-sources/build/bfin-elf/lib/gcc/bfin-elf/4.1.2/include -DNDEBUG -D__UCLIBC_UNDERSCORES__ -g -O2 -MT lib/crtn.o -MD -MP -MF lib/.crtn.o.dep -D__ASSEMBLER__

 

 

gcc extra/locale/gen_wc8bit.c  -o extra/locale/gen_wc8bit    -O2 -Wall  -D__UCLIBC_GEN_LOCALE -DUCLIBC_CTYPE_HEADER='"./include/bits/uClibc_ctype.h"' -DCTYPE_PACKED=1 -DDO_WIDE_CHAR=1

extra/locale/gen_wc8bit.c: In function 'main':

extra/locale/gen_wc8bit.c:467: warning: pointer targets in assignment differ in signedness

extra/locale/gen_wc8bit.c:618: warning: pointer targets in assignment differ in signedness

extra/locale/gen_wc8bit `cat extra/locale/codesets.txt`

error: couldn't open file "./charmaps/KOI8-T.pairs"

make: *** [exextra/locale/gen_wc8bit.c  -o extra/locale/gen_wc8bit    -O2 -Wall  -D__UCLIBC_GEN_LOCALE -DUCLIBC_CTYPE_HEADER='"./include/bits/uClibc_ctype.h"' -DCTYPE_PACKED=1 -DDO_WIDE_CHAR=1

extra/locale/gen_wc8bit.c: In function 'main':

extra/locale/gen_wc8bit.c:467: warning: pointer targets in assignment differ in signedness

extra/locale/gen_wc8bit.c:618: warning: pointer targets in assignment differ in signedness

extra/locale/gen_wc8bit `cat extra/locale/codesets.txt`

error: couldn't open file "./charmaps/KOI8-T.pairs"

make: *** [extra/locale/c8tables.h] Error 1

ra/locale/c8tables.h] Error 1

 

 

 

QuoteReplyEditDelete

 

 

2009-03-23 14:31:45     Re: *** Building uClibc error

Mike Frysinger (UNITED STATES)

Message: 71385   

 

you shouldnt be modifying the source code like this.  you need to be reading the documentation and setting things up like it tells you to.  otherwise uClibc will fail to compile.

 

http://docs.blackfin.uclinux.org/doku.php?id=toolchain:buildscript#building_a_toolchain_with_locale_support

QuoteReplyEditDelete

 

 

2009-03-24 04:47:33     Re: *** Building uClibc error

sudeep tarafdar (INDIA)

Message: 71429   

 

i have tried this tooo

 

 

 

but i cant understand the steps what exactly had  to be  followed by me eg (copy the existing .coconfig-used-for-bfinnfig-used-for-bfin to .config )  and i am not getting any file named .config-used-for-bfin.

 

 

 

i am not able to understand the following lines in the read me file

 

 

 

'find ./charmaps -name "*.pairs" > codesets.txt'.

 

Script used to generate the charmaps/*.pairs files:

 

cat $1 | awk 'BEGIN { i = 0 } ; { if ($1 == "CHARMAP") i=1 ; else if ($1 == "END") i=0 ; else if (i==1) { sub("/","0",$2) ; sub("<U","0x",$1) ; sub(">","",$1) ; print "{", $2, ",", $1, "}," } }'

 

 

 

can u send me step by step details to enable locale support

 

 

 

it will be nice for me

 

 

 

thanks

QuoteReplyEditDelete

 

 

2009-03-26 11:41:54     Re: *** Building uClibc error

Robin Getz (UNITED STATES)

Message: 71609   

 

Sudeep:

 

The steps are detailed in the page that Mike sent previously. Nothing has changed since then - and they work for me.

 

-Robin

QuoteReplyEditDelete

 

 

2010-07-22 05:47:32     Re: *** Building uClibc error

Waqas Saleem (PAKISTAN)

Message: 91578   

 

Dear Sundeep

 

Did u manage to compile the toolchain with locale support??

 

If yes than please let me know how? I am also facing same problem and read the blackfin buildscript doc.... i could not find the  .config-used-for-bfin file in toolchain/uClib folder.

 

I can successfully compile the toolchain without the Locale support but when i enable the locale support as described in the doc it gives error....

 

Looking forward to your reply

Attachments

    Outcomes