>>> Emerging (1 of 1) media-libs/libjpeg-turbo-1.5.1::gentoo * libjpeg-turbo-1.5.1.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] * libjpeg8_8d-2.debian.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking libjpeg-turbo-1.5.1.tar.gz to /data/gentoo/var/tmp/portage/media-libs/libjpeg-turbo-1.5.1/work >>> Unpacking libjpeg8_8d-2.debian.tar.gz to /data/gentoo/var/tmp/portage/media-libs/libjpeg-turbo-1.5.1/work >>> Source unpacked in /data/gentoo/var/tmp/portage/media-libs/libjpeg-turbo-1.5.1/work >>> Preparing source in /data/gentoo/var/tmp/portage/media-libs/libjpeg-turbo-1.5.1/work/libjpeg-turbo-1.5.1 ... * Applying libjpeg-turbo-1.2.0-x32.patch ... [ ok ] * Running elibtoolize in: libjpeg-turbo-1.5.1/ * Applying portage/1.2.0 patch ... * Applying sed/1.5.6 patch ... * Applying as-needed/2.4.3 patch ... >>> Source prepared. >>> Configuring source in /data/gentoo/var/tmp/portage/media-libs/libjpeg-turbo-1.5.1/work/libjpeg-turbo-1.5.1 ... * .arm: running multilib-minimal_abi_src_configure * econf: updating libjpeg-turbo-1.5.1/config.sub with /data/gentoo/usr/share/gnuconfig/config.sub * econf: updating libjpeg-turbo-1.5.1/config.guess with /data/gentoo/usr/share/gnuconfig/config.guess /data/gentoo/var/tmp/portage/media-libs/libjpeg-turbo-1.5.1/work/libjpeg-turbo-1.5.1/configure --prefix=/data/gentoo/usr --build=armv7a-hardfloat-linux-gnueabi --host=armv7a-hardfloat-linux-gnueabi --mandir=/data/gentoo/usr/share/man --infodir=/data/gentoo/usr/share/info --datadir=/data/gentoo/usr/share --sysconfdir=/data/gentoo/etc --localstatedir=/data/gentoo/var/lib --libdir=/data/gentoo/usr/lib --disable-static --with-mem-srcdst --without-java /data/gentoo/usr/lib/portage/python2.7/phase-helpers.sh: /data/gentoo/var/tmp/portage/media-libs/libjpeg-turbo-1.5.1/work/libjpeg-turbo-1.5.1/configure: /bin/bash: bad interpreter: No such file or directory * ERROR: media-libs/libjpeg-turbo-1.5.1::gentoo failed (configure phase): * econf failed * * Call stack: * ebuild.sh, line 115: Called src_configure * environment, line 4572: Called multilib-minimal_src_configure * environment, line 3789: Called multilib_foreach_abi 'multilib-minimal_abi_src_configure' * environment, line 4003: Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure' * environment, line 3719: Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure' * environment, line 3717: Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure' * environment, line 395: Called multilib-minimal_abi_src_configure * environment, line 3783: Called multilib_src_configure * environment, line 4237: Called econf '--disable-static' '--with-mem-srcdst' '--without-java' * phase-helpers.sh, line 665: Called __helpers_die 'econf failed' * isolated-functions.sh, line 117: Called die * The specific snippet of code: * die "$@" Portage 2.3.3 (python 2.7.12-final-0, prefix/linux-standalone/arm/armv7a, gcc-5.4.0, glibc-2.23-r3, 3.10.72+ aarch64) ================================================================= System Settings ================================================================= System uname: Linux-3.10.72+-aarch64-with-glibc2.4 KiB Mem: 1730724 total, 47252 free KiB Swap: 1048572 total, 805380 free Timestamp of repository gentoo: Wed, 18 Jan 2017 13:45:01 +0000 sh bash 4.4_p5-r1 ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1 distcc 3.2rc1 armv7a-hardfloat-linux-gnueabi [disabled] app-shells/bash: 4.4_p5-r1::gentoo dev-lang/perl: 5.24.0-r2::gentoo dev-lang/python: 2.7.12::gentoo sys-apps/baselayout: 2.3::gentoo sys-apps/openrc: 0.23.1::gentoo sys-apps/sandbox: 2.10-r3::gentoo sys-devel/autoconf: 2.69-r2::gentoo sys-devel/automake: 1.14.1-r1::gentoo, 1.15-r2::gentoo sys-devel/binutils: 2.26.1::gentoo, 2.27::gentoo sys-devel/gcc: 5.4.0::gentoo sys-devel/gcc-config: 1.8_p20160608::rap sys-devel/libtool: 2.4.6-r2::gentoo sys-devel/make: 4.2.1::gentoo sys-kernel/linux-headers: 4.9::gentoo (virtual/os-headers) sys-libs/glibc: 2.23-r3::gentoo Repositories: gentoo location: /data/gentoo/usr/portage sync-type: rsync sync-uri: rsync://rsync.kr.gentoo.org/gentoo-portage priority: -1000 eclass-overrides: rap rap location: /data/gentoo/usr/portage-stage sync-type: git sync-uri: https://anongit.gentoo.org/git/proj/android.git masters: gentoo eclass-overrides: rap ACCEPT_KEYWORDS="arm ~arm" ACCEPT_LICENSE="* -@EULA" CBUILD="armv7a-hardfloat-linux-gnueabi" CFLAGS="-O2 -march=armv7-a -mcpu=cortex-a9 -mfpu=neon -funsafe-math-optimizations" CHOST="armv7a-hardfloat-linux-gnueabi" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -march=armv7-a -mcpu=cortex-a9 -mfpu=neon -funsafe-math-optimizations" DISTDIR="/data/gentoo/usr/portage/distfiles" FCFLAGS="-O2 -pipe -march=armv7-a" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans" FFLAGS="-O2 -pipe -march=armv7-a" GENTOO_MIRRORS="http://mirrors.163.com/gentoo-portage/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--no-keep-memory" MAKEOPTS="-j48 -l4" PKGDIR="/data/gentoo/usr/portage/packages" PORTAGE_CONFIGROOT="/data/gentoo/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/data/gentoo/var/tmp" USE="acl arm armv5te armv6 armv6t2 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 modules ncurses nls nptl openmp pcre prefix readline seccomp session ssl tcpd threads unicode zlib" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap omapfb dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" USE_PYTHON="2.7" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= media-libs/libjpeg-turbo-1.5.1::gentoo was built with the following: USE="(prefix) (-java) -static-libs" ps:a change in the files/libjpeg-turbo-1.2.0-x32.patch is given as follows,which can solve this bug,although it`s seemingly naive. @@ -1,4 +1,4 @@ -#! /bin/sh +#! /data/gentoo/bin/bash # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for libjpeg-turbo 1.5.1. # @@ -128,7 +128,8 @@ export LC_ALL LANGUAGE=C export LANGUAGE - +CONFIG_SHELL=/data/gentoo/bin/bash +export CONFIG_SHELL # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
*** Bug 606492 has been marked as a duplicate of this bug. ***
Created attachment 460636 [details] the patched configure file for libjped-turbo-1.5.1,which works,and with some test echo lines
Created attachment 460638 [details] error log infomation when compiling libjped-turbo-1.5.1
I've pushed this, which probably helps: @@ -59,7 +59,7 @@ multilib_src_configure() { [[ ${ABI} == "x32" ]] && myconf+=( --without-simd ) #420239 # Force /bin/bash until upstream generates a new version. #533902 - CONFIG_SHELL=/bin/bash \ + CONFIG_SHELL="${EPREFIX}"/bin/bash \ ECONF_SOURCE=${S} \ econf \ $(use_enable static-libs static) \
Comment on attachment 460636 [details] the patched configure file for libjped-turbo-1.5.1,which works,and with some test echo lines the key to solve the problem is to reset CONFIG_SHELL=/data/gentoo/bin/bash before it is used in the configure file, and test shows that the OCNFIG_SHELL was set to /bin/sh when the configure file was excuted, which directly caused the error in compilation.
(In reply to Fabian Groffen from comment #4) > I've pushed this, which probably helps: > > @@ -59,7 +59,7 @@ multilib_src_configure() { > [[ ${ABI} == "x32" ]] && myconf+=( --without-simd ) #420239 > > # Force /bin/bash until upstream generates a new version. #533902 > - CONFIG_SHELL=/bin/bash \ > + CONFIG_SHELL="${EPREFIX}"/bin/bash \ > ECONF_SOURCE=${S} \ > econf \ > $(use_enable static-libs static) \ it works,thanks :)
cool, thanks for testing
Thank you @troysung! Nice contribution!