glibc-2.5-r7 package build failed with localedef error

TTZ W ttzweb at gmail.com
Mon Sep 24 06:50:47 CEST 2007


I found a way to get around with the build failure, it's
actually the failure from the binary locale generation.

Here is what I had to do:

- I found out that I first have to install ipkg-build script
  which I didn't have somehow(the Wiki seemed to have removed
  the reference)

  # wget http://www.openembedded.org/repo/org.openembedded.packaged-staging/contrib/scripts/ipkg-build

- I need to first run

  # unsetenv LD_LIBRARY_PATH
  # make openmoko-devel-image

- wait till it fails while building glibc-2.5-r7, seen something
  like
  ...
  NOTE: package glibc-2.5: started
  NOTE: package glibc-2.5-r7: task do_package: started
  NOTE: preparing tree for binary locale generation
  ...
  and it will fail soon afterwards.

- edit build/conf/local.conf and add the following

  ENABLE_BINARY_LOCALE_GENERATION = "0"

- # make clean-package-glibc-2.5-r7 && make rebuild-package-glibc-2.5-r7

- that should pass and then remove the 

  ENABLE_BINARY_LOCALE_GENERATION = "0"

  line from build/conf/local.conf

- run the build again

  # make openmoko-devel-image

Not a pretty hack but it took me further though I got hit by another 
build error in gettext-0.14.1-r5 that I will seek help with
in another thread.

It had been a quite a struggle with the build on Fedora, not sure it
is Fedora specific or I just didn't do all the things right, likely
both. 

Tom




On 22/09/07 22:21 -0500, TTZ W wrote:
> It seems that I keep hitting build errors on random places(I had not
> tried the suggestion made by a fellow member here to my last
> problem with the webkit-gtk, as I reinstalled my box with the FC7,
> probably not a smart thing to do). The latest is during building 
> glibc-2.5-r7 package:
> 
> NOTE: preparing tree for binary locale generation
> NOTE: generating locale es_NI (UTF-8)
> NOTE: Task failed: localedef returned an error (command was.....
> 
> The build was made on a scratch FedoraCore7 installation(as I mentioned,
> which I probably shouldn't have done) and I am following the 
> OpenMokoMakefile build instructions: 
> 
> Attached at the end is some more build log info..  I'd read some net 
> posts regarding using the "/usr/share/i18n" instead of the 
> "build-tree/usr/share/i18n", so I even made a sym link of the 
> "/usr/share/i18n" that points to the "build-tree/usr/share/i18n", but 
> that doesn't seem to help.
> 
> Had anyone else encountered the similar problem? I am building 
> another Debian Etch box and will try the build there to see if the
> build there could pass.
> 
> Any hint on how to resolve this is much appreciated,
> 
> Tom
> 
> 
> OE Build Configuration:
> BB_VERSION     = "1.8.8"
> OE_REVISION    = "5150c80af670db94e4e8f4cd404cc461f4a9a84e"
> TARGET_ARCH    = "arm"
> TARGET_OS      = "linux-gnueabi"
> MACHINE        = "fic-gta01"
> DISTRO         = "openmoko"
> DISTRO_VERSION = "P1-September-Snapshot-20070923"
> TARGET_FPU     = "soft"
> 
> ....
> 
> NOTE: preparing tree for binary locale generation
> NOTE: generating locale es_NI (UTF-8)
> NOTE: Task failed: localedef returned an error (command was
> PATH="/media/sdc1/mo
> ko/build/tmp/staging/i686-linux/bin/arm-angstrom-linux-gnueabi:/media/sdc1/moko/
> build/tmp/staging/i686-linux/bin:/media/sdc1/moko/build/tmp/cross/bin:/media/sdc
> 1/moko/bitbake/bin:.:/home/tzheng/bin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/o
> pt/arm/bin:/opt/axis2c/bin:/opt/gsoap/bin:/opt/java/ant/bin:/opt/java/j2se/jdk/b
> in:/opt/rar/:/opt/cbrowser:/opt/cscope/bin:/opt/firefox:/opt/netscape:/opt/expat
> /bin:/opt/perl5/bin:/opt/rar:/opt/local/bin:/bin:/etc:/usr/bin/X11"
> I18NPATH="/m
> edia/sdc1/moko/build/tmp/work/armv4t-angstrom-linux-gnueabi/glibc-2.5-r7/locale-
> tree//usr/share/i18n" qemu-arm -r 2.6.16 -L
> /media/sdc1/moko/build/tmp/work/armv
> 4t-angstrom-linux-gnueabi/glibc-2.5-r7/locale-tree
> /media/sdc1/moko/build/tmp/wo
> rk/armv4t-angstrom-linux-gnueabi/glibc-2.5-r7/locale-tree/bin/localedef
> --force
> --old-style --no-archive
> --prefix=/media/sdc1/moko/build/tmp/work/armv4t-angstro
> m-linux-gnueabi/glibc-2.5-r7/locale-tree
> --inputfile=/usr/share/i18n/locales/es_
> NI --charmap=UTF-8 es_NI).
> NOTE: package glibc-2.5-r7: task do_package: failed
> ERROR: TaskFailed event exception, aborting
> NOTE: package glibc-2.5: failed
> ERROR: Build of /media/sdc1/moko/openembedded/packages/glibc/glibc_2.5.bb
> do_package failed
> 
> 
> _______________________________________________
> OpenMoko community mailing list
> community at lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community




More information about the community mailing list