Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 243408 - sys-libs/uclibc-0.9.30_rc1 fails to cross compile for arm/eabi target
Summary: sys-libs/uclibc-0.9.30_rc1 fails to cross compile for arm/eabi target
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
: 254962 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-23 15:34 UTC by Alex Filov
Modified: 2010-04-11 21:39 UTC (History)
2 users (show)

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


Attachments
fix arm building with USE=iconv (uclibc-iconv.ebuild.patch,344 bytes, patch)
2009-03-03 05:15 UTC, Pinky
Details | Diff
fix problems witch bootstrap process in previous patch (uclibc-iconv.ebuild.patch,323 bytes, patch)
2009-03-03 23:01 UTC, Pinky
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Filov 2008-10-23 15:34:55 UTC
Failed while running crossdev -t arm-unknown-linux-uclibc 

 * Done with patching
/bin/sh: line 1:  2398 Segmentation fault      arm-unknown-linux-uclibc-ld --warn-unresolved-symbols -o /dev/null -b binary /dev/null > /dev/null 2>&1
>>> Source unpacked.
>>> Compiling source in /var/tmp/cross/arm-unknown-linux-uclibc/portage/cross-arm-unknown-linux-uclibc/uclibc-0.9.30_rc1/work/uClibc-0.9.30-rc1 ...
/bin/sh: line 1:  4058 Segmentation fault      arm-unknown-linux-uclibc-ld --warn-unresolved-symbols -o /dev/null -b binary /dev/null > /dev/null 2>&1
  MKDIR include/bits
  GEN include/bits/uClibc_config.h
/bin/sh: line 1:  4126 Segmentation fault      arm-unknown-linux-uclibc-ld --warn-unresolved-symbols -o /dev/null -b binary /dev/null > /dev/null 2>&1
  LN include/pthread.h
  LN include/semaphore.h
  LN include/bits/pthreadtypes.h
  LN include/fpu_control.h
...
  LN include/sys/ucontext.h
  LN include/sys/user.h
rm -f ../../extra/locale/gen_collate ../../extra/locale/gen_wc8bit ../../extra/locale/gen_wctype ../../extra/locale/locale_data.c ../../extra/locale/{*.{o,os,txt},gen_locale,gen_ldc}
rm -f ../../extra/locale/{uClibc_locale_data,lt_defines,c8tables,wctables,locale_tables,locale_collate}.h
rm -f ../../extra/locale/{lmmtolso,gen_mmap,locale.mmap}
/var/tmp/cross/arm-unknown-linux-uclibc/portage/cross-arm-unknown-linux-uclibc/uclibc-0.9.30_rc1/work/uClibc-0.9.30-rc1/extra/locale
make: *** No rule to make target `../../include/bits/sysnum.h', needed by `../../extra/locale/gen_ldc'.  Stop.
 * 



Portage 2.2_rc12 (default/linux/x86/2008.0, gcc-4.2.3, glibc-2.7-r2, 2.6.27-rc6-dell-desktop i686)
=================================================================
System uname: Linux-2.6.27-rc6-dell-desktop-i686-Intel-R-_Pentium-R-_4_CPU_1.70GHz-with-glibc2.0
Timestamp of tree: Thu, 23 Oct 2008 10:05:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.4.8
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
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.25-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/c
gi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="parallel-fetch preserve-libs protect-owned sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="ru"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeou
t=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl alsa berkdb bitmap-fonts bzip2 cli cracklib crypt cups doc dri encode examples fftw fortran gdbm gpm iconv 
isdnlog jpeg kqemu lame lapack midi mmx mp2 mp3 mudflap ncurses nls nptl nptlonly opengl openmp pam pcre perl png pppd python 
qt3support qt4 readline reflection sandbox session spl sse sse2 ssl sysfs tcpd tk truetype-fonts type1-fonts unicode vorbis wi
n32codecs x264 x86 xorg xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens137
0 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_P
LUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mu
law multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm a
uthn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs d
av_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime m
ime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="ke
yboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" 
USERLAND="GNU" VIDEO_CARDS="vesa nv nvidia ati radeon r128 fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAG
E_RSYNC_EXTRA_OPTS




Reproducible: Always

Steps to Reproduce:
Comment 1 SpanKY gentoo-dev 2008-10-25 20:45:47 UTC
your linker is broken, not uClibc.  what version of binutils exactly are you using ?
Comment 2 Alex Filov 2008-10-27 07:54:07 UTC
sys-devel/binutils:  2.18-r1
Comment 3 Alex Filov 2008-10-28 12:04:45 UTC
With binutils-2.18-r4:

 * Done with patching
/bin/sh: line 1: 26151 Segmentation fault      arm-unknown-linux-uclibceabi-ld --warn-unresolved-symbols -o /dev/null -b binary /dev/null > /dev/null 2>&1
>>> Source unpacked.
>>> Compiling source in /var/tmp/cross/arm-unknown-linux-uclibceabi/portage/cross-arm-unknown-linux-uclibceabi/uclibc-0.9.30_rc1/work/uClibc-0.9.30-rc1 ...
/bin/sh: line 1: 27808 Segmentation fault      arm-unknown-linux-uclibceabi-ld --warn-unresolved-symbols -o /dev/null -b binary /dev/null > /dev/null 2>&1
  MKDIR include/bits
  GEN include/bits/uClibc_config.h
/bin/sh: line 1: 27875 Segmentation fault      arm-unknown-linux-uclibceabi-ld --warn-unresolved-symbols -o /dev/null -b binary /dev/null > /dev/null 2>&1
  LN include/pthread.h
  LN include/semaphore.h
  LN include/bits/pthreadtypes.h
...
 LN include/sys/ucontext.h
  LN include/sys/user.h
rm -f ../../extra/locale/gen_collate ../../extra/locale/gen_wc8bit ../../extra/locale/gen_wctype ../../extra/locale/locale_data.c ../../extra/locale/{*.{o,$
rm -f ../../extra/locale/{uClibc_locale_data,lt_defines,c8tables,wctables,locale_tables,locale_collate}.h
rm -f ../../extra/locale/{lmmtolso,gen_mmap,locale.mmap}
/var/tmp/cross/arm-unknown-linux-uclibceabi/portage/cross-arm-unknown-linux-uclibceabi/uclibc-0.9.30_rc1/work/uClibc-0.9.30-rc1/extra/locale
make: *** No rule to make target `../../include/bits/sysnum.h', needed by `../../extra/locale/gen_ldc'.  Stop.
 *
 * ERROR: cross-arm-unknown-linux-uclibceabi/uclibc-0.9.30_rc1 failed.
 * Call stack:
 * ebuild.sh, line   49:  Called src_compile
 * environment, line 2598:  Called die
 * The specific snippet of code:
 * emake || die "make locales failed";
 * The die message:
 * make locales failed
Comment 4 Pinky 2009-03-03 04:27:44 UTC
Similar bug is described in 

http://www.mail-archive.com/uclibc@uclibc.org/msg01862.html

this bug is made by portage. (call make in subdirectory -> ignore dependencies)

Solution is similar, for example call 

make pregen

I'm curently looking for best and simplest solution
Comment 5 Pinky 2009-03-03 05:15:13 UTC
Created attachment 183742 [details, diff]
fix arm building with USE=iconv

This is simplest solution which i found.

note: (dont mess make pregen with pregen USE flag)
Comment 6 solar (RETIRED) gentoo-dev 2009-03-03 19:42:54 UTC
Thank you for the update. However chances are both iconv/pregen are going to be dropped from the ebuild as well being phased out upstream. It's just too broke.
Comment 7 Pinky 2009-03-03 23:01:43 UTC
Created attachment 183820 [details, diff]
fix problems witch bootstrap process in previous patch

Previous patch cause problems with bootstrap, this solve the bootstrap problem

(succesfully cross build bootstrap on amd64)
Comment 8 solar (RETIRED) gentoo-dev 2009-03-03 23:29:41 UTC
0.9.30.1 is in the tree without any keywords. pregen/iconv/nls/locale support has been removed.
Comment 9 SpanKY gentoo-dev 2010-04-11 21:39:27 UTC
*** Bug 254962 has been marked as a duplicate of this bug. ***