All of lore.kernel.org
 help / color / mirror / Atom feed
* glibc-2.12.1-r6: task do_package: Failed
@ 2012-02-29  4:57 sonu vishwakarma
  2012-02-29  7:25 ` sonu vishwakarma
  0 siblings, 1 reply; 3+ messages in thread
From: sonu vishwakarma @ 2012-02-29  4:57 UTC (permalink / raw)
  To: poky


[-- Attachment #1.1: Type: text/plain, Size: 884 bytes --]

Hi ,

I am building poky working on bernard branch on Ubuntu 10.10 ,64 bit host.
I get the error in do_package in glibc-2.12  something like this :

********************************************************
| NOTE: generating locale es_CR (UTF-8)
| NOTE: cmd:
| NOTE: stdout:
| NOTE:
| NOTE: stderr:
| NOTE:
/home/poky/build/tmp/work/atom-poky-linux/glibc-2.12.1-r6/locale-tree//usr/share/i18n/locales/es_CR:56:
LC_MONETARY: syntax error
| LC_MONETARY: field `currency_symbol' not defined
|
| ERROR: Function 'localedef returned an error' failed
NOTE: package glibc-2.12.1-r6: task do_package: Failed
**********************************************************

I'm attaching the recipec 'glibc_2.12.1.bb' as well as the
'usr/share/i18n/locales/es_CR' for your reference.
Can anyone help me out of this issue ????
Thanks in advance.

Regards
Sonu Vishwakarma

[-- Attachment #1.2: Type: text/html, Size: 1749 bytes --]

[-- Attachment #2: glibc_2.12.1.bb --]
[-- Type: application/octet-stream, Size: 6517 bytes --]

require glibc.inc

ARM_INSTRUCTION_SET = "arm"

PACKAGES_DYNAMIC = "libc6*"
RPROVIDES_${PN}-dev = "libc6-dev virtual-libc-dev"

PR = "r6"

# the -isystem in bitbake.conf screws up glibc do_stage
BUILD_CPPFLAGS = "-I${STAGING_INCDIR_NATIVE}"
TARGET_CPPFLAGS = "-I${STAGING_DIR_TARGET}${includedir}"

GLIBC_ADDONS ?= "ports,nptl,libidn"

GLIBC_BROKEN_LOCALES = " _ER _ET so_ET yn_ER sid_ET tr_TR mn_MN gez_ET gez_ER bn_BD te_IN"

FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/glibc-2.12.1', '${FILE_DIRNAME}/glibc-2.4', '${FILE_DIRNAME}/glibc', '${FILE_DIRNAME}/files', '${FILE_DIRNAME}' ], d)}"

#
# For now, we will skip building of a gcc package if it is a uclibc one
# and our build is not a uclibc one, and we skip a glibc one if our build
# is a uclibc build.
#
# See the note in gcc/gcc_3.4.0.oe
#

python __anonymous () {
    import bb, re
    uc_os = (re.match('.*uclibc$', bb.data.getVar('TARGET_OS', d, 1)) != None)
    if uc_os:
        raise bb.parse.SkipPackage("incompatible with target %s" %
                                   bb.data.getVar('TARGET_OS', d, 1))
}

RDEPENDS_${PN}-dev = "linux-libc-headers-dev"

#	   file://noinfo.patch;patch=1
#	   file://ldconfig.patch;patch=1;pnum=0
#	   file://arm-machine-gmon.patch;patch=1;pnum=0
#	   file://arm-ioperm.patch;patch=1;pnum=0
#	   file://ldd.patch;patch=1;pnum=0
SRC_URI = "ftp://ftp.gnu.org/pub/gnu/glibc/glibc-2.12.1.tar.bz2 \
           ftp://ftp.gnu.org/pub/gnu/glibc/glibc-ports-2.12.1.tar.bz2 \
           ftp://ftp.gnu.org/pub/gnu/glibc/glibc-libidn-2.10.1.tar.bz2 \
	   file://nscd-init.patch;striplevel=0 \
           file://arm-memcpy.patch \
           file://arm-longlong.patch \
           file://fhs-linux-paths.patch \
           file://dl-cache-libcmp.patch \
           file://ldsocache-varrun.patch \
           file://glibc-check_pf.patch;striplevel=0 \
           file://ldd-unbash.patch \
           file://glibc-arm-IO-acquire-lock-fix.diff \
           file://mips-rld-map-check.patch \
           file://generic-bits_select.h \
           file://generic-bits_types.h \
           file://generic-bits_typesizes.h \
           file://generic-bits_time.h \
           file://etc/ld.so.conf \
           file://generate-supported.mk \
           file://march-i686.patch;striplevel=0 \
           file://glibc_es_CR.patch \
           file://rulesfix.patch "


#	    file://nptl-crosscompile.patch \ 
#	    file://glibc-2.9-enable-binutils-2.2.patch \
#           file://glibc_c_translit.patch \
#           file://glibc_translit_neutral.patch \

SRC_URI[md5sum] = "be0ea9e587f08c87604fe10a91f72afd"
SRC_URI[sha256sum] = "759f115c52bc12c5bb453af559dcd456d32138250b7cc96e47804e3d0ec97407"


# Build fails on sh3 and sh4 without additional patches
SRC_URI_append_sh3 = " file://no-z-defs.patch"
SRC_URI_append_sh4 = " file://no-z-defs.patch"

#powerpc patches to add support for soft-float
SRC_URI_append_powerpc= " file://powerpc-sqrt-hack.diff"

S = "${WORKDIR}/glibc-2.12.1"
B = "${WORKDIR}/build-${TARGET_SYS}"

# We need this for nativesdk
export libc_cv_slibdir = "${base_libdir}"

EXTRA_OECONF = "--enable-kernel=${OLDEST_KERNEL} \
                --without-cvs --disable-profile --disable-debug --without-gd \
                --enable-clocale=gnu \
                --enable-add-ons=nptl \
                --with-binutils=${STAGING_BINDIR} \    
                --enable-add-ons=${GLIBC_ADDONS} \
                --with-headers=${STAGING_INCDIR} \
                --without-selinux \
                ${GLIBC_EXTRA_OECONF}"


EXTRA_OECONF += "${@get_libc_fpu_setting(bb, d)}"

do_munge() {
	# Integrate ports and libidn into tree

	mv ${WORKDIR}/glibc-ports-2.12.1 ${S}/ports
	mv ${WORKDIR}/glibc-libidn-2.10.1 ${S}/libidn

	# Ports isn't really working... Fix it
	# Some of this is rather dirty, but it seems to be the only
	# quick way to get this cruft to compile
	rm -rf ${S}/ports/sysdeps/unix/sysv/linux/arm/linuxthreads
	ln -s nptl ${S}/ports/sysdeps/unix/sysv/linux/arm/linuxthreads
	cp ${S}/nptl/sysdeps/pthread/bits/sigthread.h ${S}/ports/sysdeps/unix/sysv/linux/arm/bits/
	cp ${S}/sysdeps/unix/sysv/linux/i386/bits/wchar.h ${S}/ports/sysdeps/unix/sysv/linux/arm/bits/
	cp ${S}/sysdeps/wordsize-32/bits/wordsize.h ${S}/ports/sysdeps/unix/sysv/linux/arm/bits/
	cp ${WORKDIR}/generic-bits_select.h ${S}/ports/sysdeps/unix/sysv/linux/arm/bits/select.h
	cp ${WORKDIR}/generic-bits_types.h ${S}/ports/sysdeps/unix/sysv/linux/arm/bits/types.h
	cp ${WORKDIR}/generic-bits_typesizes.h ${S}/ports/sysdeps/unix/sysv/linux/arm/bits/typesizes.h
	cp ${WORKDIR}/generic-bits_time.h ${S}/ports/sysdeps/unix/sysv/linux/arm/bits/time.h
	# Copy in generic stuff for not yet implemented headers
	for i in ${S}/bits/*.h; do
		F=`basename $i`
		[ "$F" = "local_lim.h" ] && continue
		[ "$F" = "errno.h" ] && continue
		test -e ${S}/ports/sysdeps/unix/sysv/linux/arm/bits/$F || test -e ${S}/ports/sysdeps/arm/bits/$F || test -e ${S}/sysdeps/unix/sysv/linux/bits/$F || test -e ${S}/sysdeps/ieee754/bits/$F || cp $i ${S}/ports/sysdeps/unix/sysv/linux/arm/bits/
	done
	# This is harmful; we need to get the one from nptl/sysdeps/pthreads
	rm -f ${S}/ports/sysdeps/unix/sysv/linux/arm/bits/libc-lock.h
	# Obsoleted by sysdeps/arm/{fpu,eabi}/bits/fenv.h
	rm -f ${S}/ports/sysdeps/unix/sysv/linux/arm/bits/fenv.h
	# Obsoleted by sysdeps/gnu/bits/utmp.h
	rm -f ${S}/ports/sysdeps/unix/sysv/linux/arm/bits/utmp.h
}

addtask munge before do_patch after do_unpack


do_configure () {
# /var/db was not included to FHS
	sed -i s:/var/db/nscd:/var/run/nscd: ${S}/nscd/nscd.h
# override this function to avoid the autoconf/automake/aclocal/autoheader
# calls for now
# don't pass CPPFLAGS into configure, since it upsets the kernel-headers
# version check and doesn't really help with anything
	if [ -z "`which rpcgen`" ]; then
		echo "rpcgen not found.  Install glibc-devel."
		exit 1
	fi
	(cd ${S} && gnu-configize) || die "failure in running gnu-configize"
	CPPFLAGS="" oe_runconf
}

rpcsvc = "bootparam_prot.x nlm_prot.x rstat.x \
          yppasswd.x klm_prot.x rex.x sm_inter.x mount.x \
          rusers.x spray.x nfs_prot.x rquota.x key_prot.x"

do_compile () {
	# -Wl,-rpath-link <staging>/lib in LDFLAGS can cause breakage if another glibc is in staging
	unset LDFLAGS
	base_do_compile
	(
		cd ${S}/sunrpc/rpcsvc
		for r in ${rpcsvc}; do
			h=`echo $r|sed -e's,\.x$,.h,'`
			rpcgen -h $r -o $h || oewarn "unable to generate header for $r"
		done
	)
}

require glibc-stage.inc

require glibc-package.inc

BBCLASSEXTEND = "nativesdk"

[-- Attachment #3: es_CR --]
[-- Type: application/octet-stream, Size: 5528 bytes --]

comment_char %
escape_char  /
%
% Spanish language locale for Costa Rica
% Language: es
% Territory: CR
% Date: 2000-08-21
% Application: general
% Users: general
% Charset: ISO-8859-1
% Distribution and use is free, also
% for commercial purposes.

LC_IDENTIFICATION
title      "Spanish locale for Costa Rica"
source     "Free Software Foundation, Inc."
address    "59 Temple Place - Suite 330, Boston, MA 02111-1307, USA"
contact    ""
email      "bug-glibc-locales@gnu.org"
tel        ""
fax        ""
language   "Spanish"
territory  "Costa Rica"
revision   "1.1"
date       "2009-12-23"
%
category  "es_CR:2000";LC_IDENTIFICATION
category  "es_CR:2000";LC_CTYPE
category  "es_CR:2000";LC_COLLATE
category  "es_CR:2000";LC_TIME
category  "es_CR:2000";LC_NUMERIC
category  "es_CR:2000";LC_MONETARY
category  "es_CR:2000";LC_MESSAGES
category  "es_CR:2000";LC_PAPER
category  "es_CR:2000";LC_NAME
category  "es_CR:2000";LC_ADDRESS
category  "es_CR:2000";LC_TELEPHONE

END LC_IDENTIFICATION

LC_COLLATE
copy "es_ES"
END LC_COLLATE

LC_CTYPE
copy "es_ES"
END LC_CTYPE

LC_MESSAGES
yesexpr "<U005E><U005B><U0073><U0053><U0079><U0059><U005D><U002E><U002A>"
noexpr  "<U005E><U005B><U006E><U004E><U005D><U002E><U002A>"
END LC_MESSAGES

LC_MONETARY
int_curr_symbol      "<U0043><U0052><U0043><U0020>"
currency_symbol      "<U20A1>"
% Decreto Ejecutivo 29660
mon_decimal_point    "<U002C>"
mon_thousands_sep    "<U0020>"
mon_grouping         3;3
positive_sign        ""
negative_sign        "<U002D>"
int_frac_digits      2
frac_digits          2
p_cs_precedes        1
p_sep_by_space       1
n_cs_precedes        1
n_sep_by_space       1
p_sign_posn          1
n_sign_posn          1
END LC_MONETARY

LC_NUMERIC
% Decreto Ejecutivo 29660
decimal_point        "<U002C>"
thousands_sep        "<U0020>"
grouping             3;3
END LC_NUMERIC

LC_TIME
abday   "<U0064><U006F><U006D>";"<U006C><U0075><U006E>";/
        "<U006D><U0061><U0072>";"<U006D><U0069><U00E9>";/
        "<U006A><U0075><U0065>";"<U0076><U0069><U0065>";/
        "<U0073><U00E1><U0062>"
day     "<U0064><U006F><U006D><U0069><U006E><U0067><U006F>";/
        "<U006C><U0075><U006E><U0065><U0073>";/
        "<U006D><U0061><U0072><U0074><U0065><U0073>";/
        "<U006D><U0069><U00E9><U0072><U0063><U006F><U006C><U0065><U0073>";/
        "<U006A><U0075><U0065><U0076><U0065><U0073>";/
        "<U0076><U0069><U0065><U0072><U006E><U0065><U0073>";/
        "<U0073><U00E1><U0062><U0061><U0064><U006F>"
abmon   "<U0065><U006E><U0065>";"<U0066><U0065><U0062>";/
        "<U006D><U0061><U0072>";"<U0061><U0062><U0072>";/
        "<U006D><U0061><U0079>";"<U006A><U0075><U006E>";/
        "<U006A><U0075><U006C>";"<U0061><U0067><U006F>";/
        "<U0073><U0065><U0070>";"<U006F><U0063><U0074>";/
        "<U006E><U006F><U0076>";"<U0064><U0069><U0063>"
mon     "<U0065><U006E><U0065><U0072><U006F>";/
        "<U0066><U0065><U0062><U0072><U0065><U0072><U006F>";/
        "<U006D><U0061><U0072><U007A><U006F>";/
        "<U0061><U0062><U0072><U0069><U006C>";/
        "<U006D><U0061><U0079><U006F>";/
        "<U006A><U0075><U006E><U0069><U006F>";/
        "<U006A><U0075><U006C><U0069><U006F>";/
        "<U0061><U0067><U006F><U0073><U0074><U006F>";/
        "<U0073><U0065><U0070><U0074><U0069><U0065><U006D><U0062><U0072><U0065>";/
        "<U006F><U0063><U0074><U0075><U0062><U0072><U0065>";/
        "<U006E><U006F><U0076><U0069><U0065><U006D><U0062><U0072><U0065>";/
        "<U0064><U0069><U0063><U0069><U0065><U006D><U0062><U0072><U0065>"
d_t_fmt "<U0025><U0061><U0020><U0025><U0064><U0020><U0025><U0062><U0020><U0025><U0059><U0020><U0025><U0054><U0020><U0025><U005A>"
d_fmt   "<U0025><U0064><U002F><U0025><U006D><U002F><U0025><U0059>"
t_fmt   "<U0025><U0054>"
am_pm   "<U0061><U002E><U006D><U002E>";"<U0070><U002E><U006D><U002E>"
t_fmt_ampm "<U0025><U0049><U003A><U0025><U004D><U003A><U0025><U0053><U0020><U0025><U0070>"
date_fmt	"<U0025><U0061><U0020><U0025><U0065><U0020><U0025><U0062>/
<U0020><U0025><U0048><U003A><U0025><U004D><U003A><U0025><U0053><U0020>/
<U0025><U005A><U0020><U0025><U0059>"
first_weekday 2
first_workday 2
END LC_TIME

LC_PAPER
height   279
width    216
END LC_PAPER

LC_TELEPHONE
tel_int_fmt "<U002B><U0025><U0063><U0020><U0025><U0061><U0020>/
<U0025><U006C>"
tel_dom_fmt "<U0025><U006C>"
int_prefix     "<U0035><U0030><U0036>"
int_select     "<U0030><U0030>"
END LC_TELEPHONE

LC_MEASUREMENT
measurement    1
END LC_MEASUREMENT

LC_NAME
name_fmt    "<U0025><U0064><U0025><U0074><U0025><U0067><U0025><U0074>/
<U0025><U006D><U0025><U0074><U0025><U0066>"
name_gen    "<U0053><U0072><U002E><U002F><U0053><U0072><U0061><U002E>"
name_miss   "<U0053><U0072><U0074><U0061><U002E>"
name_mr     "<U0053><U0072><U002E>"
name_mrs    "<U0053><U0072><U0061><U002E>"
name_ms     "<U0053><U0072><U0061><U002E>"
END LC_NAME

LC_ADDRESS
postal_fmt    "<U0025><U0066><U0025><U004E><U0025><U0061><U0025><U004E>/
<U0025><U0064><U0025><U004E><U0025><U0062><U0025><U004E><U0025><U0073>/
<U0020><U0025><U0068><U0020><U0025><U0065><U0020><U0025><U0072><U0025>/
<U004E><U0025><U007A><U0020><U0025><U0054><U0025>/
<U004E><U0025><U0063><U0025><U004E>"
country_name  "<U0043><U006F><U0073><U0074><U0061><U0020><U0052><U0069><U0063><U0061>"
country_post  "<U0043><U0052>"
country_car   "<U0043><U0052>"
country_isbn  "9930,9977,9968"
lang_name     "<U0045><U0073><U0070><U0061><U00F1><U006F><U006C>"
lang_ab       "<U0065><U0073>"
lang_term     "<U0073><U0070><U0061>"
country_ab2   "<U0043><U0052>"
country_ab3   "<U0043><U0052><U0049>"
country_num   188
END LC_ADDRESS

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-02-29 11:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-29  4:57 glibc-2.12.1-r6: task do_package: Failed sonu vishwakarma
2012-02-29  7:25 ` sonu vishwakarma
2012-02-29 11:08   ` Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.