I try to build an ncurses for arm. I think that ebuild isn't written correctly for crosscompile, because it fails to build Reproducible: Always Steps to Reproduce: 1. try to build with armv5te-iwmmxt-linux-gnueabi-emerge ncurses Actual Results: * ERROR: sys-libs/ncurses-5.7-r5 failed: * make sources failed * * Call stack: * ebuild.sh, line 54: Called src_compile * environment, line 2582: Called do_compile 'narrowc' * environment, line 667: Called die * The specific snippet of code: * emake -j1 sources || die "make sources failed"; * * If you need support, post the output of 'emerge --info =sys-libs/ncurses-5.7-r5', * the complete build log and the output of 'emerge -pqv =sys-libs/ncurses-5.7-r5'. * The complete build log is located at '/var/tmp/portage/sys-libs/ncurses-5.7-r5/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-libs/ncurses-5.7-r5/temp/environment'. * S: '/var/tmp/portage/sys-libs/ncurses-5.7-r5/work/ncurses-5.7' >>> Failed to emerge sys-libs/ncurses-5.7-r5 for /usr/armv5te-iwmmxt-linux-gnueabi/, Log file: >>> '/var/tmp/portage/sys-libs/ncurses-5.7-r5/temp/build.log' * Messages for package sys-libs/ncurses-5.7-r5 merged to /usr/armv5te-iwmmxt-linux-gnueabi/: * ERROR: sys-libs/ncurses-5.7-r5 failed: * make sources failed * * Call stack: * ebuild.sh, line 54: Called src_compile * environment, line 2581: Called do_compile 'narrowc' * environment, line 667: Called die * The specific snippet of code: * emake -j1 sources || die "make sources failed"; * * If you need support, post the output of 'emerge --info =sys-libs/ncurses-5.7-r5', * the complete build log and the output of 'emerge -pqv =sys-libs/ncurses-5.7-r5'. * The complete build log is located at '/var/tmp/portage/sys-libs/ncurses-5.7-r5/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-libs/ncurses-5.7-r5/temp/environment'. * S: '/var/tmp/portage/sys-libs/ncurses-5.7-r5/work/ncurses-5.7' Expected Results: it must works ebuild try to make it with i686-pc-linux-gnu-gcc, but i need armv5te-iwmmxt-linux-gnueabi-gcc NNIIL / # armv5te-iwmmxt-linux-gnueabi-emerge --info Portage 2.1.8.3 (embedded, gcc-4.4.4, unavailable, 2.6.34-ARCH i686) ================================================================= System uname: Linux-2.6.34-ARCH-i686-Intel-R-_Celeron-R-_D_CPU_3.06GHz-with-gentoo-2.0.1 Timestamp of tree: Wed, 14 Jul 2010 16:30:01 +0000 app-shells/bash: 4.1_p7 dev-lang/python: 2.6.4-r1 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.1-r1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.65-r1 sys-devel/automake: 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.3.4, 4.4.4-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 virtual/os-headers: 2.6.34 ACCEPT_KEYWORDS="arm ~arm" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-pc-linux-gnu" CFLAGS="-Os -pipe -mtune=iwmmxt -mcpu=xscale" CHOST="armv5te-iwmmxt-linux-gnueabi" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d" CXXFLAGS="-Os -pipe -mtune=iwmxt -mcpu=xscale" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="ru_RU.UTF-8" LDFLAGS="" LINGUAS="en ru" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/usr/armv5te-iwmmxt-linux-gnueabi/" 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" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="kdrive minimal mktemp modules multicall pam ssh zlib" INPUT_DEVICES="evdev mouse keyboard tslib" KERNEL="linux" LINGUAS="en ru" USERLAND="GNU" VIDEO_CARDS="fbdev" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
build.log please
marking invalid. At second time it compile normally.