Created attachment 310491 [details] this patch fix cross-compiling issue
Please provide the actual error and emerge --info in the bug report.
The actual error $ sudo emerge =nspr-4.9 * IMPORTANT: 3 news items need reading for repository 'gentoo'. * Use eselect news to read news items. Calculating dependencies... done! >>> Verifying ebuild manifests >>> Emerging (1 of 1) dev-libs/nspr-4.9 for /opt/hec-mx53/debug/ * nspr-4.9.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking nspr-4.9.tar.gz to /var/tmp/portage/dev-libs/nspr-4.9/work >>> Source unpacked in /var/tmp/portage/dev-libs/nspr-4.9/work >>> Preparing source in /var/tmp/portage/dev-libs/nspr-4.9/work/nspr-4.9 ... * Applying nspr-4.8-config.patch ... [ ok ] * Applying nspr-4.6.1-config-1.patch ... [ ok ] * Applying nspr-4.6.1-lang.patch ... [ ok ] * Applying nspr-4.7.0-prtime.patch ... [ ok ] * Applying nspr-4.9-pkgconfig-gentoo.patch ... [ ok ] * Applying nspr-4.7.1-solaris.patch ... [ ok ] * Applying nspr-4.7.4-solaris.patch ... [ ok ] * Applying nspr-4.8.3-aix-gcc.patch ... [ ok ] * Applying nspr-4.8.4-darwin-install_name.patch ... [ ok ] * Applying nspr-4.8.9-link-flags.patch ... [ ok ] * Running autoconf ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-libs/nspr-4.9/work/nspr-4.9 ... * econf: updating nspr-4.9/mozilla/nsprpub/build/autoconf/config.sub with /usr/share/gnuconfig/config.sub * econf: updating nspr-4.9/mozilla/nsprpub/build/autoconf/config.guess with /usr/share/gnuconfig/config.guess ../mozilla/nsprpub/configure --prefix=/usr --build=i686-pc-linux-gnu --host=arm-linux-gnueabi --target=arm-linux-gnueabi --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-debug --enable-optimize --libdir=/usr/lib loading site script /usr/share/config.site configure: loading site script /usr/share/crossdev/include/site/linux configure: loading site script /usr/share/crossdev/include/site/linux-gnu configure: loading site script /usr/share/crossdev/include/site/arm-linux-gnu configure: loading site script /usr/share/crossdev/include/site/linux-gnueabi configure: loading site script /usr/share/crossdev/include/site/arm-linux-gnueabi configure: loading site script /usr/share/crossdev/include/site/arm-linux-gnueabi creating cache ./config.cache checking host system type... arm-unknown-linux-gnueabi checking target system type... arm-unknown-linux-gnueabi checking build system type... i686-pc-linux-gnu checking for whoami... /usr/bin/whoami checking for gcc... /opt/hec-mx53/debug/usr/bin/arm-linux-gnueabi-gcc checking whether the C compiler (/opt/hec-mx53/debug/usr/bin/arm-linux-gnueabi-gcc -O2 -pipe -Wl,-O2 -Wl,--as-needed ) works... yes checking whether the C compiler (/opt/hec-mx53/debug/usr/bin/arm-linux-gnueabi-gcc -O2 -pipe -Wl,-O2 -Wl,--as-needed ) is a cross-compiler... yes checking whether we are using GNU C... yes checking whether /opt/hec-mx53/debug/usr/bin/arm-linux-gnueabi-gcc accepts -g... yes checking how to run the C preprocessor... /opt/hec-mx53/debug/usr/bin/arm-linux-gnueabi-cpp checking for ranlib... /opt/hec-mx53/debug/usr/bin/arm-linux-gnueabi-ranlib checking for as... /opt/hec-mx53/debug/usr/bin/arm-linux-gnueabi-as checking for ar... /opt/hec-mx53/debug/usr/bin/arm-linux-gnueabi-ar checking for ld... /opt/hec-mx53/debug/usr/bin/arm-linux-gnueabi-ld checking for strip... /opt/hec-mx53/debug/usr/bin/arm-linux-gnueabi-strip checking for windres... no checking for gcc -pipe support... no checking whether C compiler supports -fprofile-generate... yes checking for visibility(hidden) attribute... yes checking for visibility pragma support... yes checking for perl... /usr/bin/perl checking for dlopen in -ldl... yes checking for dlfcn.h... yes checking whether /opt/hec-mx53/debug/usr/bin/arm-linux-gnueabi-gcc needs -traditional... no checking for lchown... yes checking for strerror... yes checking for dladdr... yes checking for pthread_create in -lpthreads... no checking for pthread_create in -lpthread... yes checking whether /opt/hec-mx53/debug/usr/bin/arm-linux-gnueabi-gcc accepts -pthread... yes updating cache ./config.cache creating ./config.status creating Makefile creating config/Makefile creating config/autoconf.mk creating config/nsprincl.mk creating config/nsprincl.sh creating config/nspr-config creating config/nspr.pc creating lib/Makefile creating lib/ds/Makefile creating lib/libc/Makefile creating lib/libc/include/Makefile creating lib/libc/src/Makefile creating lib/tests/Makefile creating pkg/Makefile creating pr/Makefile creating pr/include/Makefile creating pr/include/md/Makefile creating pr/include/obsolete/Makefile creating pr/include/private/Makefile creating pr/src/Makefile creating pr/src/io/Makefile creating pr/src/linking/Makefile creating pr/src/malloc/Makefile creating pr/src/md/Makefile creating pr/src/md/unix/Makefile creating pr/src/memory/Makefile creating pr/src/misc/Makefile creating pr/src/threads/Makefile creating pr/tests/Makefile creating pr/tests/dll/Makefile creating pkg/linux/Makefile creating pr/src/pthreads/Makefile >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-libs/nspr-4.9/work/nspr-4.9 ... make CC=/opt/hec-mx53/debug/usr/bin/arm-linux-gnueabi-gcc CXX=/opt/hec-mx53/debug/usr/bin/arm-linux-gnueabi-g++ make -C config export make[1]: Entering directory `/var/tmp/portage/dev-libs/nspr-4.9/work/nspr-4.9/build/config' /opt/hec-mx53/debug/usr/bin/arm-linux-gnueabi-gcc -o now.o -c -O2 -pipe -Wl,-O2 -Wl,--as-needed -DXP_UNIX ../../mozilla/nsprpub/config/now.c /opt/hec-mx53/debug/usr/bin/arm-linux-gnueabi-gcc now.o -o now /opt/hec-mx53/debug/usr/bin/arm-linux-gnueabi-gcc -o nsinstall.o -c -O2 -pipe -Wl,-O2 -Wl,--as-needed -DXP_UNIX ../../mozilla/nsprpub/config/nsinstall.c /opt/hec-mx53/debug/usr/bin/arm-linux-gnueabi-gcc nsinstall.o -o nsinstall rm -f nfspwd; cp ../../mozilla/nsprpub/config/nfspwd.pl nfspwd; chmod +x nfspwd rm -f ../dist/bin/nspr-config make[1]: Leaving directory `/var/tmp/portage/dev-libs/nspr-4.9/work/nspr-4.9/build/config' make -C pr export make[1]: Entering directory `/var/tmp/portage/dev-libs/nspr-4.9/work/nspr-4.9/build/pr' make -C include export make[2]: Entering directory `/var/tmp/portage/dev-libs/nspr-4.9/work/nspr-4.9/build/pr/include' make -C md export make[3]: Entering directory `/var/tmp/portage/dev-libs/nspr-4.9/work/nspr-4.9/build/pr/include/md' ../../../config/./nsinstall -R -m 444 ../../../../mozilla/nsprpub/pr/include/md/_openbsd.cfg ../../../../mozilla/nsprpub/pr/include/md/_nec.cfg ../../../../mozilla/nsprpub/pr/include/md/_reliantunix.cfg ../../../../mozilla/nsprpub/pr/include/md/_nto.cfg ../../../../mozilla/nsprpub/pr/include/md/_riscos.cfg ../../../../mozilla/nsprpub/pr/include/md/_dgux.cfg ../../../../mozilla/nsprpub/pr/include/md/_winnt.cfg ../../../../mozilla/nsprpub/pr/include/md/_aix32.cfg ../../../../mozilla/nsprpub/pr/include/md/_hpux64.cfg ../../../../mozilla/nsprpub/pr/include/md/_os2.cfg ../../../../mozilla/nsprpub/pr/include/md/_linux.cfg ../../../../mozilla/nsprpub/pr/include/md/_qnx.cfg ../../../../mozilla/nsprpub/pr/include/md/_darwin.cfg ../../../../mozilla/nsprpub/pr/include/md/_bsdi.cfg ../../../../mozilla/nsprpub/pr/include/md/_beos.cfg ../../../../mozilla/nsprpub/pr/include/md/_irix32.cfg ../../../../mozilla/nsprpub/pr/include/md/_freebsd.cfg ../../../../mozilla/nsprpub/pr/include/md/_irix64.cfg ../../../../mozilla/nsprpub/pr/include/md/_win95.cfg ../../../../mozilla/nsprpub/pr/include/md/_netbsd.cfg ../../../../mozilla/nsprpub/pr/include/md/_solaris.cfg ../../../../mozilla/nsprpub/pr/include/md/_unixware7.cfg ../../../../mozilla/nsprpub/pr/include/md/_scoos.cfg ../../../../mozilla/nsprpub/pr/include/md/_osf1.cfg ../../../../mozilla/nsprpub/pr/include/md/_unixware.cfg ../../../../mozilla/nsprpub/pr/include/md/_sunos4.cfg ../../../../mozilla/nsprpub/pr/include/md/_aix64.cfg ../../../../mozilla/nsprpub/pr/include/md/_symbian.cfg ../../../../mozilla/nsprpub/pr/include/md/_ncr.cfg ../../../../mozilla/nsprpub/pr/include/md/_sony.cfg ../../../../mozilla/nsprpub/pr/include/md/_nextstep.cfg ../../../../mozilla/nsprpub/pr/include/md/_hpux32.cfg ../../../dist/include/nspr/md ../../../config/./nsinstall: ../../../config/./nsinstall: cannot execute binary file make[3]: *** [export] Error 126 make[3]: Leaving directory `/var/tmp/portage/dev-libs/nspr-4.9/work/nspr-4.9/build/pr/include/md' make[2]: *** [export] Error 2 make[2]: Leaving directory `/var/tmp/portage/dev-libs/nspr-4.9/work/nspr-4.9/build/pr/include' make[1]: *** [export] Error 2 make[1]: Leaving directory `/var/tmp/portage/dev-libs/nspr-4.9/work/nspr-4.9/build/pr' make: *** [export] Error 2 emake failed * ERROR: dev-libs/nspr-4.9 failed (compile phase): * failed to build * * Call stack: * ebuild.sh, line 85: Called src_compile * environment, line 2675: Called die * The specific snippet of code: * emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die "failed to build" * * If you need support, post the output of 'emerge --info =dev-libs/nspr-4.9', * the complete build log and the output of 'emerge -pqv =dev-libs/nspr-4.9'. * The complete build log is located at '/opt/hec-mx53/debug/var/log/dev-libs:nspr-4.9:20120501-055635.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-libs/nspr-4.9/temp/environment'. * S: '/var/tmp/portage/dev-libs/nspr-4.9/work/nspr-4.9' >>> Failed to emerge dev-libs/nspr-4.9 for /opt/hec-mx53/debug/, Log file: >>> '/opt/hec-mx53/debug/var/log/dev-libs:nspr-4.9:20120501-055635.log' * Messages for package dev-libs/nspr-4.9 merged to /opt/hec-mx53/debug/: * ERROR: dev-libs/nspr-4.9 failed (compile phase): * failed to build * * Call stack: * ebuild.sh, line 85: Called src_compile * environment, line 2675: Called die * The specific snippet of code: * emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die "failed to build" * * If you need support, post the output of 'emerge --info =dev-libs/nspr-4.9', * the complete build log and the output of 'emerge -pqv =dev-libs/nspr-4.9'. * The complete build log is located at '/opt/hec-mx53/debug/var/log/dev-libs:nspr-4.9:20120501-055635.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-libs/nspr-4.9/temp/environment'. * S: '/var/tmp/portage/dev-libs/nspr-4.9/work/nspr-4.9' * IMPORTANT: 3 news items need reading for repository 'gentoo'. * Use eselect news to read news items. My emerge --info $ sudo ACCEPT_KEYWORDS="~arm" ./hec-mx53-debug-emerge --info Portage 2.1.10.54 (!/var/lib/portage/profiles/products/hec-mx53/stage4, gcc-4.4.7, glibc-2.13-r4, 3.2.12-gentoo i686) ================================================================= System uname: Linux-3.2.12-gentoo-i686-Intel-R-_Core-TM-2_Quad_CPU_Q8300_@_2.50GHz-with-gentoo-2.1 Timestamp of tree: Tue, 03 Apr 2012 00:45:01 +0000 distcc 3.1 i686-pc-linux-gnu [disabled] ccache version 3.1.7 [enabled] app-shells/bash: 4.2_p24 dev-lang/python: 2.6.7-r2, 2.7.2-r4::hec, 3.1.4-r4::hec, 3.2.2-r1 dev-util/ccache: 3.1.7 dev-util/cmake: 2.8.7-r6::hec dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.1 sys-apps/openrc: 0.9.8.4 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.11.3 sys-devel/binutils: 2.22-r1 sys-devel/gcc: 4.5.3-r2 sys-devel/gcc-config: 1.6 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 3.3 (virtual/os-headers) sys-libs/glibc: 2.14.1-r2 Repositories: gentoo hec gnome vala ACCEPT_KEYWORDS="arm ~arm" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -pipe -Wl,-O2 -Wl,--as-needed" CHOST="arm-linux-gnueabi" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gentoo-release /etc/sandbox.d /etc/terminfo" CTARGET="arm-linux-gnueabi" CXXFLAGS="-O2 -pipe -Wl,-O2 -Wl,--as-needed" DISTDIR="/var/lib/portage/distfiles" FEATURES="assume-digests binpkg-logs buildpkg ccache compressdebug distlocks ebuild-locks fixlafiles news nodoc noinfo parallel-fetch parallel-install protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org" INSTALL_MASK="/usr/share/man" LANG="en_US.UTF-8" LDFLAGS="" PKGDIR="/opt/hec-pg/portage/packages/hec-mx53/debug" PORTAGE_CONFIGROOT="/opt/hec-mx53/debug/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/var/lib/portage/gentoo" PORTDIR_OVERLAY="/var/lib/portage/hec /var/lib/portage/gnome /var/lib/portage/vala" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X arm egl elibc_glibc gles2 gtk3 jpeg kernel_linux minimal neon nocxx nptl opengl openvg pulseaudio udev unicode userland_GNU xa xcb xinerama zlib" BOARDS="loco" INPUT_DEVICES="evdev keyboard mouse tslib" SOC="imx53" VIDEO_CARDS="dummy fbdev omapfb" Unset: CPPFLAGS, EMERGE_DEFAULT_OPTS, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Will be moved from overlay to official tree later today.