Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 424473 - app-i18n/enca: cross-compiling issue (/bin/sh: ./make_hash: cannot execute binary file)
Summary: app-i18n/enca: cross-compiling issue (/bin/sh: ./make_hash: cannot execute bi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Stas
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-07-02 05:59 UTC by DaboD
Modified: 2013-01-16 08:56 UTC (History)
3 users (show)

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


Attachments
fix cross-compiling issue (enca-1.13-r2-cross-compiling.patch,657 bytes, patch)
2012-07-02 05:59 UTC, DaboD
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description DaboD 2012-07-02 05:59:57 UTC
Created attachment 316941 [details, diff]
fix cross-compiling issue

/bin/sh ../libtool --tag=CC   --mode=link /opt/hec-mx53/debug/opt/arm-linux-gnueabi/bin/arm-linux-gnueabi-gcc  -Wall -W -pedantic -O2 -pipe -Wl,-O2 -Wl,--as-needed -Wl,--hash-style=gnu  -L/usr/lib -o make_hash make_hash.o  -lm
libtool: link: /opt/hec-mx53/debug/opt/arm-linux-gnueabi/bin/arm-linux-gnueabi-gcc -Wall -W -pedantic -O2 -pipe -Wl,-O2 -Wl,--hash-style=gnu -o make_hash make_hash.o  -Wl,--as-needed -L/usr/lib -lm
sed -f encodings.sed /var/tmp/portage/app-i18n/enca-1.13-r2/work/enca-1.13/tools/encodings.dat | ./make_hash >encodings.h
/bin/sh: ./make_hash: cannot execute binary file
make[2]: *** [encodings.h] Error 126
make[2]: Leaving directory `/var/tmp/portage/app-i18n/enca-1.13-r2/work/enca-1.13_build/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-i18n/enca-1.13-r2/work/enca-1.13_build'
make: *** [all] Error 2
 * ERROR: app-i18n/enca-1.13-r2 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=app-i18n/enca-1.13-r2'`,
 * the complete build log and the output of `emerge -pqv '=app-i18n/enca-1.13-r2'`.
 * This ebuild is from an overlay named 'hec': '/var/lib/portage/hec/'
 * The complete build log is located at '/opt/hec-mx53/debug/var/log/app-i18n:enca-1.13-r2:20120702-053622.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/app-i18n/enca-1.13-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-i18n/enca-1.13-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/app-i18n/enca-1.13-r2/work/enca-1.13_build'
 * S: '/var/tmp/portage/app-i18n/enca-1.13-r2/work/enca-1.13'
Comment 1 Yohan Pereira (yopher) 2013-01-16 07:43:24 UTC
Patch works on

Portage 2.1.11.40 (embedded, gcc-4.7.2, unavailable, 3.7.1-gentoo x86_64)
=================================================================
System uname: Linux-3.7.1-gentoo-x86_64-AMD_FX-tm-8150_Eight-Core_Processor-with-gentoo-2.2
Timestamp of tree: Tue, 15 Jan 2013 11:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p42
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.6, 1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.5.4, 4.6.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo dethlay
Installed sets: @minimal
ACCEPT_KEYWORDS="arm ~arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard"
CHOST="armv6j-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-Os -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nodoc noinfo noman parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-Os -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LANG="en_US.utf8"
LDFLAGS=""
MAKEOPTS="-j9"
PKGDIR="/usr/armv6j-hardfloat-linux-gnueabi/packages/"
PORTAGE_CONFIGROOT="/usr/armv6j-hardfloat-linux-gnueabi/"
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="/usr/armv6j-hardfloat-linux-gnueabi/tmp/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="arm bindist kdrive make-symlinks minimal modules multicall python_targets_python3_2 zlib" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Sergey Popov gentoo-dev 2013-01-16 08:56:07 UTC
+  16 Jan 2013; Sergey Popov <pinkbyte@gentoo.org> enca-1.13-r3.ebuild:
+  Fix cross-compilation, wrt bug #424473. Thanks to DaboD <daiderek AT
+  gmail.com> for patch