2010-07-22 06:51:06     Error while compiling toolchain with locale support

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

2010-07-22 06:51:06     Error while compiling toolchain with locale support

Waqas Saleem (PAKISTAN)

Message: 91580   

 

I am following the https://docs.blackfin.uclinux.org/doku.php?id=toolchain:buildscript#building_a_toolchain_with_locale_support

 

i have downloaded the toolchain, uclinux-dis and u-boot source code from the svn branches. Running this command to compile the toolchain :

 

./BuildToolChain -s /home/user/checkouts/gcc/ \

  -k /home/user/checkouts/kernel/uClinux-dist/linux-2.6.x \

  -u /home/user/checkouts/uboot/u-boot_1.1.3  \

  -b /home/user/gcc-build/ -o /home/user/cvsoutput \

  -l c -C /home/user/checkouts/toolchain/uClibc/config_locale_on

 

But i am having error:

 

*** Installing uClibc                               Thu Jul 22 15:28:51 PKT 2010

*** Configuring uClibc for bf532-none               Thu Jul 22 15:29:01 PKT 2010

*** Cleaning uClibc                                 Thu Jul 22 15:29:01 PKT 2010

*** Building uClibc                                 Thu Jul 22 15:29:09 PKT 2010

*** Building Locale                                 Thu Jul 22 15:29:09 PKT 2010

      Creating codesets.txt

      Creating locales.txt

*** Installing uClibc                               Thu Jul 22 15:30:55 PKT 2010

*** Configuring uClibc for mid-shared-library       Thu Jul 22 15:31:04 PKT 2010

*** Cleaning uClibc                                 Thu Jul 22 15:31:05 PKT 2010

*** Building uClibc                                 Thu Jul 22 15:31:12 PKT 2010

*** Building Locale                                 Thu Jul 22 15:31:12 PKT 2010

      Creating codesets.txt

      Creating locales.txt

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

Build error Thu Jul 22 15:31:39 PKT 2010

  occurred 21:13 into script

tar: Removing leading `/' from member names

Since the build was done in parallel, I'm not sure where the

happened. The best thing to do is add a '-j 1' option to this

BuildToolChain script, and try again.

 

 

The log file entries are :

 

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/user/blackfin-sources/tool-build/kernel_build/usr/include/ -I/home/user/blackfin-sources/tool-out/-elf/lib/gcc/bfin-elf/4.1.2//include-fixed -I/home/user/blackfin-sources/tool-out/-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"' -I./ -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/ISO-8859-16.pairs"

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

 

 

 

any help would be appreciated....

 

Thanks

 

Waqas

QuoteReplyEditDelete

 

 

2010-07-22 19:19:29     Re: Error while compiling toolchain with locale support

Mike Frysinger (UNITED STATES)

Message: 91626   

 

u-boot-1.1.3 ... so you're using an ancient release ?  sounds like you need to upgrade.

 

the last release (2009R1.1) includes a uClibc already compiled with locale support.

QuoteReplyEditDelete

 

 

2010-07-23 02:43:55     Re: Error while compiling toolchain with locale support

Waqas Saleem (PAKISTAN)

Message: 91633   

 

thanks for ur reply... i am using the 2009R1.1 branch for toolchain, uclinux-dis and uboot (that was copy paste from the doc soory about it).... please help...

QuoteReplyEditDelete

 

 

2010-07-23 02:47:05     Re: Error while compiling toolchain with locale support

Mike Frysinger (UNITED STATES)

Message: 91634   

 

so why not use the binary package i already pointed out ?  it includes locale already.

QuoteReplyEditDelete

 

 

2010-07-23 03:04:21     Re: Error while compiling toolchain with locale support

Waqas Saleem (PAKISTAN)

Message: 91635   

 

Thank for the prompt reply.. My detailed problem is that i am trying to compile the minicom with the blackfin toolchain. Here is how i am going about it:

 

[user@localhost minicom-2.4]$ ./configure --build i686-pc-linux-gnu --host bfin-uclinuxchecking for a BSD-compatible install... /usr/bin/install -cchecking whether build environment is sane... yeschecking for bfin-uclinux-strip... bfin-uclinux-strip

checking for a thread-safe mkdir -p... /bin/mkdir -p

checking for gawk... gawk

checking whether make sets $(MAKE)... yes

checking for bfin-uclinux-gcc... bfin-uclinux-gcc

checking whether the C compiler works... yes

checking for C compiler default output file name... a.out

checking for suffix of executables...

checking whether we are cross compiling... yes

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether bfin-uclinux-gcc accepts -g... yes

checking for bfin-uclinux-gcc option to accept ISO C89... none needed

checking for style of include used by make... GNU

checking dependency style of bfin-uclinux-gcc... gcc3

checking how to run the C preprocessor... bfin-uclinux-gcc -E

checking for grep that handles long lines and -e... /bin/grep

checking for egrep... /bin/grep -E

checking for ANSI C header files... yes

checking for sys/types.h... yes

checking for sys/stat.h... yes

checking for stdlib.h... yes

checking for string.h... yes

checking for memory.h... yes

checking for strings.h... yes

checking for inttypes.h... yes

checking for stdint.h... yes

checking for unistd.h... yes

checking minix/config.h usability... no

checking minix/config.h presence... no

checking for minix/config.h... no

checking whether it is safe to define __EXTENSIONS__... yes

checking for bfin-uclinux-ranlib... bfin-uclinux-ranlib

checking for library containing strerror... none required

checking whether NLS is requested... yes

checking for msgfmt... /usr/bin/msgfmt

checking for gmsgfmt... /usr/bin/msgfmt

checking for xgettext... /usr/bin/xgettext

checking for msgmerge... /usr/bin/msgmerge

checking build system type... i686-pc-linux-gnu

checking host system type... bfin-unknown-uclinux

checking for ld used by GCC... /home/user/blackfin-sources/tool-out/bfin-uclinux/bfin-uclinux/bin/ld

checking if the linker (/home/user/blackfin-sources/tool-out/bfin-uclinux/bfin-uclinux/bin/ld) is GNU ld... yes

checking for shared library run path origin... done

checking for CFPreferencesCopyAppValue... no

checking for CFLocaleCopyCurrent... no

checking for GNU gettext in libc... no

checking for iconv... no, consider installing GNU libiconv

checking for GNU gettext in libintl... no

checking whether to use NLS... no

checking for kermit... no

checking for tputs in -ltinfo... no

checking for tputs in -lncurses... no

checking for tputs in -lcurses... no

checking for tputs in -ltermcap... no

checking for tputs in -lterminfo... no

checking for tputs in -ltermlib... no

checking for socket in -lsocket... no

checking for dirent.h that defines DIR... yes

checking for library containing opendir... none required

checking for ANSI C header files... (cached) yes

checking for sys/wait.h that is POSIX.1 compatible... yes

checking whether stat file-mode macros are broken... no

checking whether time.h and sys/time.h may both be included... yes

checking POSIX termios... yes

checking whether termios.h defines TIOCGWINSZ... no

checking whether sys/ioctl.h defines TIOCGWINSZ... yes

checking stdarg.h usability... yes

checking stdarg.h presence... yes

checking for stdarg.h... yes

checking varargs.h usability... no

checking varargs.h presence... no

checking for varargs.h... no

checking termcap.h usability... no

checking termcap.h presence... no

checking for termcap.h... no

checking termio.h usability... yes

checking termio.h presence... yes

checking for termio.h... yes

checking termios.h usability... yes

checking termios.h presence... yes

checking for termios.h... yes

checking setjmp.h usability... yes

checking setjmp.h presence... yes

checking for setjmp.h... yes

checking errno.h usability... yes

checking errno.h presence... yes

checking for errno.h... yes

checking pwd.h usability... yes

checking pwd.h presence... yes

checking for pwd.h... yes

checking signal.h usability... yes

checking signal.h presence... yes

checking for signal.h... yes

checking fcntl.h usability... yes

checking fcntl.h presence... yes

checking for fcntl.h... yes

checking sgtty.h usability... yes

checking sgtty.h presence... yes

checking for sgtty.h... yes

checking locale.h usability... yes

checking locale.h presence... yes

checking for locale.h... yes

checking for sys/stat.h... (cached) yes

checking sys/file.h usability... yes

checking sys/file.h presence... yes

checking for sys/file.h... yes

checking sys/ioctl.h usability... yes

checking sys/ioctl.h presence... yes

checking for sys/ioctl.h... yes

checking sys/time.h usability... yes

checking sys/time.h presence... yes

checking for sys/time.h... yes

checking sys/ttold.h usability... no

checking sys/ttold.h presence... no

checking for sys/ttold.h... no

checking sys/param.h usability... yes

checking sys/param.h presence... yes

checking for sys/param.h... yes

checking for unistd.h... (cached) yes

checking posix1_lim.h usability... no

checking posix1_lim.h presence... no

checking for posix1_lim.h... no

checking for sgtty.h... (cached) yes

checking features.h usability... yes

checking features.h presence... yes

checking for features.h... yes

checking for an ANSI C-conforming const... yes

checking for function prototypes... yes

checking for string.h... (cached) yes

checking for uid_t in sys/types.h... yes

checking for mode_t... yes

checking for pid_t... yes

checking for size_t... yes

checking whether struct tm is in sys/time.h or time.h... time.h

checking return type of signal handlers... void

checking for error_at_line... yes

checking whether closedir returns void... yes

checking if malloc debugging is wanted... no

checking for getcwd... yes

checking for getwd... no

checking for memmove... yes

checking for strerror... yes

checking for strstr... yes

checking for vsnprintf... yes

checking for vprintf... yes

checking for select... yes

checking for snprintf... yes

checking for usleep... yes

checking for getopt... yes

checking for getopt_long... yes

checking for long file names... yes

checking for com line lock directory... /var/lock

checking for default serial port device... /dev/ttyS1

checking for default baud rate... 115200

configure: creating ./config.status

config.status: creating Makefile

config.status: creating doc/Makefile

config.status: creating extras/Makefile

config.status: creating extras/linux/Makefile

config.status: creating extras/tables/Makefile

config.status: creating extras/termcap/Makefile

config.status: creating extras/terminfo/Makefile

config.status: creating man/Makefile

config.status: creating lib/Makefile

config.status: creating src/Makefile

config.status: creating po/Makefile.in

config.status: creating minicom.spec

config.status: creating config.h

config.status: config.h is unchanged

config.status: executing depfiles commands

config.status: executing po-directories commands

config.status: creating po/POTFILES

config.status: creating po/Makefile

[user@localhost minicom-2.4]$ whereis ncurses

ncurses: /usr/include/ncurses.h /usr/include/ncurses /usr/share/man/man3/ncurses.3x.gz

 

 

[user@localhost minicom-2.4]$ make

make  all-recursive

make[1]: Entering directory `/home/user/Desktop/minicom-2.4'

Making all in doc

make[2]: Entering directory `/home/user/Desktop/minicom-2.4/doc'

make[2]: Nothing to be done for `all'.

make[2]: Leaving directory `/home/user/Desktop/minicom-2.4/doc'

Making all in extras

make[2]: Entering directory `/home/user/Desktop/minicom-2.4/extras'

Making all in linux

make[3]: Entering directory `/home/user/Desktop/minicom-2.4/extras/linux'

make[3]: Nothing to be done for `all'.

make[3]: Leaving directory `/home/user/Desktop/minicom-2.4/extras/linux'

Making all in tables

make[3]: Entering directory `/home/user/Desktop/minicom-2.4/extras/tables'

make[3]: Nothing to be done for `all'.

make[3]: Leaving directory `/home/user/Desktop/minicom-2.4/extras/tables'

Making all in termcap

make[3]: Entering directory `/home/user/Desktop/minicom-2.4/extras/termcap'

make[3]: Nothing to be done for `all'.

make[3]: Leaving directory `/home/user/Desktop/minicom-2.4/extras/termcap'

Making all in terminfo

make[3]: Entering directory `/home/user/Desktop/minicom-2.4/extras/terminfo'

make[3]: Nothing to be done for `all'.

make[3]: Leaving directory `/home/user/Desktop/minicom-2.4/extras/terminfo'

make[3]: Entering directory `/home/user/Desktop/minicom-2.4/extras'

make[3]: Nothing to be done for `all-am'.

make[3]: Leaving directory `/home/user/Desktop/minicom-2.4/extras'

make[2]: Leaving directory `/home/user/Desktop/minicom-2.4/extras'

Making all in man

make[2]: Entering directory `/home/user/Desktop/minicom-2.4/man'

make[2]: Nothing to be done for `all'.

make[2]: Leaving directory `/home/user/Desktop/minicom-2.4/man'

Making all in po

make[2]: Entering directory `/home/user/Desktop/minicom-2.4/po'

make[2]: Nothing to be done for `all'.

make[2]: Leaving directory `/home/user/Desktop/minicom-2.4/po'

Making all in lib

make[2]: Entering directory `/home/user/Desktop/minicom-2.4/lib'

make[2]: Nothing to be done for `all'.

make[2]: Leaving directory `/home/user/Desktop/minicom-2.4/lib'

Making all in src

make[2]: Entering directory `/home/user/Desktop/minicom-2.4/src'

bfin-uclinux-gcc -DHAVE_CONFIG_H -I. -I..  -I../lib -DCONFDIR=\"/usr/local/etc\" -DLOCALEDIR=\"/usr/local/share/locale\"  -g -O2 -Wall -W -g -O2 -MT minicom.o -MD -MP -MF .deps/minicom.Tpo -c -o minicom.o minicom.c

minicom.c:31:19: error: wchar.h: No such file or directory

minicom.c:32:20: error: wctype.h: No such file or directory

minicom.c:33:19: error: iconv.h: No such file or directory

minicom.c: In function ‘drawhist_look’:

minicom.c:228: warning: implicit declaration of function ‘wcslen’

minicom.c: In function ‘upcase’:

minicom.c:351: warning: implicit declaration of function ‘towupper’

minicom.c:351: warning: incompatible implicit declaration of built-in function ‘towupper’

minicom.c: In function ‘StrStr’:

minicom.c:366: warning: implicit declaration of function ‘wcsstr’

minicom.c:366: warning: return makes pointer from integer without a cast

minicom.c:368: warning: return makes pointer from integer without a cast

minicom.c: At top level:

minicom.c:860: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘iconv_rem2local’

minicom.c: In function ‘init_iconv’:

minicom.c:896: error: ‘iconv_rem2local’ undeclared (first use in this function)

minicom.c:896: error: (Each undeclared identifier is reported only once

minicom.c:896: error: for each function it appears in.)

minicom.c:896: warning: implicit declaration of function ‘iconv_open’

minicom.c:897: error: ‘iconv_t’ undeclared (first use in this function)

minicom.c: In function ‘do_iconv’:

minicom.c:908: warning: implicit declaration of function ‘iconv’

minicom.c:908: error: ‘iconv_rem2local’ undeclared (first use in this function)

minicom.c:910: warning: comparison between signed and unsigned

minicom.c: In function ‘close_iconv’:

minicom.c:925: warning: implicit declaration of function ‘iconv_close’

minicom.c:925: error: ‘iconv_rem2local’ undeclared (first use in this function)

make[2]: *** [minicom.o] Error 1

make[2]: Leaving directory `/home/user/Desktop/minicom-2.4/src'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/user/Desktop/minicom-2.4'

make: *** [all] Error 2

 

 

After googling around and searching throught this forum i came to know that i need "locale support" enabled in toolchain since its missing libiconv.... I have tried to compile it with the pre-built tool chain using both the default-uclibc and full uclibc package.... when i used full these two errors get remove:

 

minicom.c:31:19: error: wchar.h: No such file or directory

minicom.c:32:20: error: wctype.h: No such file or directory

 

BUT

 

minicom.c:33:19: error: iconv.h: No such file or directory  persist....

 

Any help or direction would be highly appreciated. Thanks in advance

QuoteReplyEditDelete

 

 

2010-07-23 03:10:03     Re: Error while compiling toolchain with locale support

Mike Frysinger (UNITED STATES)

Message: 91636   

 

so once again, why dont you install the uclibc binary package i already mentioned that includes locale support ?

 

ignoring that, why exactly do you want minicom ?  seems like an odd fit to be running that package on the Blackfin processor itself.

QuoteReplyEditDelete

 

 

2010-07-23 03:33:45     Re: Error while compiling toolchain with locale support

Waqas Saleem (PAKISTAN)

Message: 91651   

 

Thanks again for ur prompt reply Mike... i will definitely try the uclibc binary now.

 

Actually i am trying to send a text message from my gsm phone connected to the USB port of the IP08 board thats why im trying to compile minicom for IP08 board running uclinux. Any suggestion or help regarding how to go about it in a more efficient and easy would be highly highly appreciated.

 

p.s: i need to make this sending sms thingy to work on IP08 board. Plus i am a newbie and sorry if i m being annoying but i really need help.

QuoteReplyEditDelete

 

 

2010-07-23 03:52:59     Re: Error while compiling toolchain with locale support

Mike Frysinger (UNITED STATES)

Message: 91652   

 

if all you want to do is send some simple text strings, you'd be much better off with picocom if you dont want to write your own code.  then you wouldnt need the larger locale enabled uclibc.

 

check out:

http://docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:picocom

QuoteReplyEditDelete

 

 

2010-07-26 06:47:33     Re: Error while compiling toolchain with locale support

Waqas Saleem (PAKISTAN)

Message: 91724   

 

Dear Mike... Can you please confirm that the binary uclibc-full has locale support enabled or it just has wchar support?

QuoteReplyEditDelete

 

 

2010-07-26 18:23:22     Re: Error while compiling toolchain with locale support

Mike Frysinger (UNITED STATES)

Message: 91749   

 

i think you're right.  only wchar support, not locale, is enabled in the uclibc-full version.

Attachments

    Outcomes