Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 221793 - sys-devel/gettext fails to cross-compile
Summary: sys-devel/gettext fails to cross-compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: ARM Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-12 09:01 UTC by Alexander Weber
Modified: 2011-09-07 02:10 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,132.65 KB, text/plain)
2008-05-12 09:02 UTC, Alexander Weber
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Weber 2008-05-12 09:01:34 UTC
I cannot emerge gettext.

My Emerge-Wrapper is emergewiz.sh
#!/bin/bash
export ac_cv_func_calloc_0_nonnull=yes
export ac_cv_func_malloc_0_nonnull=yes
export gl_cv_func_malloc_0_nonnull=yes
export ac_cv_func_realloc_0_nonnull=yes
export ac_cv_func_memcmp_working=yes
export ac_cv_func_strnlen_working=yes
export PKG_CONFIG=/var/cpuburner/linwizard/utils/armv5te-linwizard-linux-gnueabi-pkg-config
export PATH=/var/cpuburner/linwizard/utils/:$PATH
export CBUILD=$(portageq envvar CHOST)
export PORTAGE_CONFIGROOT=/usr/armv5te-linwizard-linux-gnueabi/ 
export SYSROOT=/usr/armv5te-linwizard-linux-gnueabi/
emerge $@


emergewiz.sh --info
Portage 2.1.4.4 (default-linux/arm/2007.0, gcc-4.2.3, glibc-2.5-r4, 2.6.25-tuxonice-r2 i686)
=================================================================
System uname: 2.6.25-tuxonice-r2 i686 AMD Athlon(tm) XP 2600+
Timestamp of tree: Mon, 12 May 2008 08:33:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.4
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="arm"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -pipe"
CHOST="armv5te-linwizard-linux-gnueabi"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch prelink sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="de_DE.UTF-8"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="arm berkdb bzip2 cli cracklib crypt cups iconv isdnlog midi mudflap ncurses nls nptl nptlonly openmp pcre perl ppds pppd python readline reflection session spl ssl tcpd unicode xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="chips dummy fbdevglint mach64 mga nv r128 radeon s3 s3virge savage sisusb tdfx trident v4l vga voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Alexander Weber 2008-05-12 09:02:11 UTC
Created attachment 152921 [details]
build.log
Comment 2 SpanKY gentoo-dev 2008-05-12 13:44:20 UTC
some of the widestring tests arent detecting properly, or they assume the worse when cross-compiling ... can probably be worked around by exporting some configure cache tests
Comment 3 Alexander Weber 2008-07-09 18:02:00 UTC
Which cache tests i can export for testing?
How is the environment variable for this?
Comment 4 Sean Harmer 2008-07-21 13:47:31 UTC
I also have this problem. I tried adding the following to my xmerge wrapper:

export gl_cv_header_wchar_h_standalone=no
export gt_cv_c_wchar_t=no
export ac_cv_header_wchar_h=no
export ac_cv_header_wctype_h=no
export ac_cv_type_mbstate_t=no

However, this just ended up with a different compilation problem. Not sure what else to try setting on behalf of the configure script.

As a work-around I'm now trying a slightly modified crossdev that builds the toolchain without nls so that I won't need to xmerge gettext in my ${SYSROOT}.
Comment 5 Pinky 2009-04-11 22:48:21 UTC
I thing this is a bug in uClibc it looks for my like not to define mbstate_t if we need it. Someone involved should check this.

--- wchar.h.orig	2009-04-12 00:13:45.000000000 +0200
+++ wchar.h	2009-04-12 00:34:19.000000000 +0200
@@ -23,7 +23,7 @@
 
 #ifndef _WCHAR_H
 
-#ifndef __need_mbstate_t
+#ifdef __need_mbstate_t
 # define _WCHAR_H 1
 # include <features.h>
 #endif
Comment 6 Mars Liu 2009-09-09 15:52:39 UTC
the patch for this bug was appeared on the web long time ago. For example, this link: http://svn.exactcode.de/t2/trunk/package/base/gettext/wchar-fix.patch

please update the ebuild and include this patch. 
Comment 7 Oleh Kravchenko 2009-11-22 00:01:35 UTC
(In reply to comment #6)
> the patch for this bug was appeared on the web long time ago. For example, this
> link: http://svn.exactcode.de/t2/trunk/package/base/gettext/wchar-fix.patch
> 
> please update the ebuild and include this patch. 
> 

Thank you! This patch work! ;)
Comment 8 SpanKY gentoo-dev 2009-11-22 00:09:31 UTC
the original bug was against glibc, not uClibc.  ignoring that, uClibc's wchar.h works the same as glibc's (because it's largely copied from it in the first place).

the patch you point out largely is against gnulib which means it isnt a bug in gettext.  i wonder if anyone has posted this to the gnulib lists ...
Comment 9 SpanKY gentoo-dev 2011-09-07 02:10:57 UTC
assuming fixed with gettext-0.18.1.1 as that has a much updated gnulib base