Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 368115 - dev-libs/gmp-5.0.2 fails to emerge because it thinks it can't find 'sh' shell
Summary: dev-libs/gmp-5.0.2 fails to emerge because it thinks it can't find 'sh' shell
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-20 01:20 UTC by Timothy Miller
Modified: 2011-05-20 06:55 UTC (History)
0 users

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


Attachments
build log (build.log,2.46 KB, application/octet-stream)
2011-05-20 01:22 UTC, Timothy Miller
Details
environment (environment,111.19 KB, application/octet-stream)
2011-05-20 01:22 UTC, Timothy Miller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Miller 2011-05-20 01:20:45 UTC
* Package:    dev-libs/gmp-5.0.2
 * Repository: gentoo_prefix
 * Maintainer: toolchain@gentoo.org
 * USE:        elibc_Darwin kernel_Darwin prefix userland_GNU x64-macos
 * FEATURES:   nostrip preserve-libs splitdebug
>>> Unpacking source...
>>> Unpacking gmp-5.0.2.tar.bz2 to /Users/millerti/Gentoo/var/tmp/portage/dev-libs/gmp-5.0.2/work
 * Applying gmp-4.1.4-noexecstack.patch ...
 [ ok ]
 * Applying gmp-5.0.0-s390.diff ...
 [ ok ]
 * Running elibtoolize in: gmp-5.0.2/
 *   Applying install-sh-1.5.6.patch ...
 *   Applying portage-2.2.patch ...
 *   Applying sed-1.5.6.patch ...
 *   Applying as-needed-2.2.6.patch ...
 *   Applying darwin-conf-2.2.6.patch ...
>>> Source unpacked in /Users/millerti/Gentoo/var/tmp/portage/dev-libs/gmp-5.0.2/work
>>> Compiling source in /Users/millerti/Gentoo/var/tmp/portage/dev-libs/gmp-5.0.2/work/gmp-5.0.2 ...
 * econf: updating gmp-5.0.2/config.guess with /Users/millerti/Gentoo/usr/share/gnuconfig/config.guess
 * econf: updating gmp-5.0.2/config.sub with /Users/millerti/Gentoo/usr/share/gnuconfig/config.sub
./configure --prefix=/Users/millerti/Gentoo/usr --build=x86_64-apple-darwin10 --host=x86_64-apple-darwin10 --mandir=/Users/millerti/Gentoo/usr/share/man --infodir=/Users/millerti/Gentoo/usr/share/info --datadir=/Users/millerti/Gentoo/usr/share --sysconfdir=/Users/millerti/Gentoo/etc --localstatedir=/Users/millerti/Gentoo/var/lib --localstatedir=/Users/millerti/Gentoo/var/state/gmp --disable-mpbsd --enable-cxx
/Users/millerti/Gentoo/usr/lib/portage/bin/ebuild.sh: ./configure: ${EPREFIX}/bin/sh: bad interpreter: No such file or directory
 * ERROR: dev-libs/gmp-5.0.2 failed (compile phase):
 *   econf failed
 * 
 * Call stack:
 *     ebuild.sh, line   62:  Called call-ebuildshell 'src_compile'
 *   environment, line  478:  Called src_compile
 *   environment, line 2942:  Called econf '--localstatedir=/Users/millerti/Gentoo/var/state/gmp' '--disable-mpbsd' '--enable-cxx'
 *     ebuild.sh, line  563:  Called die
 * The specific snippet of code:
 *   			die "econf failed"
 * 
 * If you need support, post the output of 'emerge --info =dev-libs/gmp-5.0.2',
 * the complete build log and the output of 'emerge -pqv =dev-libs/gmp-5.0.2'.
 * The complete build log is located at '/Users/millerti/Gentoo/var/tmp/portage/dev-libs/gmp-5.0.2/temp/build.log'.
 * The ebuild environment file is located at '/Users/millerti/Gentoo/var/tmp/portage/dev-libs/gmp-5.0.2/temp/environment'.
 * S: '/Users/millerti/Gentoo/var/tmp/portage/dev-libs/gmp-5.0.2/work/gmp-5.0.2'

The problem is that it thinks it can't find the bourne shell.  It's looking for "${EPREFIX}/bin/sh", where EPREFIX is "/Users/millerti/Gentoo".

The shell is there:

lrwxr-xr-x 1 millerti staff 4 Apr 26 21:54 /Users/millerti/Gentoo/bin/sh -> bash

And it runs.


Reproducible: Always
Comment 1 Timothy Miller 2011-05-20 01:21:16 UTC
$ emerge --info =dev-libs/gmp-5.0.2
Portage 2.2.01.18252-prefix (prefix/darwin/macos/10.6/x64, gcc-4.2.1, unavailable, 10.7.3 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Darwin-10.7.3-x86_64-i386-64bit
Timestamp of tree: Fri, 20 May 2011 00:26:49 +0000
distcc 3.1-toolwhip.1 i386-apple-darwin10.0 [disabled]
app-shells/bash:     4.2_p8
dev-lang/python:     2.7.1-r1
sys-devel/autoconf:  2.68
sys-devel/automake:  1.11.1
sys-devel/gcc-config: 1.4.1-r00.2
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  0
Repositories: gentoo_prefix
Installed sets: 
ACCEPT_KEYWORDS="~x64-macos"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-apple-darwin10"
CFLAGS="-O2 -pipe -ggdb -march=core2 -ggdb"
CHOST="x86_64-apple-darwin10"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/portage /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe -ggdb -march=core2 -ggdb"
DISTDIR="/Users/millerti/Gentoo/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=2"
FEATURES="assume-digests binpkg-logs collision-protect distlocks fixlafiles fixpackages news nostrip parallel-fetch preserve-libs protect-owned sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-dead_strip_dylibs"
LINGUAS="en en_US"
MAKEOPTS="--jobs=8"
PKGDIR="/Users/millerti/Gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/Users/millerti/Gentoo/"
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="/Users/millerti/Gentoo/var/tmp"
PORTDIR="/Users/millerti/Gentoo/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="aqua cairo coreaudio cracklib cxx ithreads jpeg mmx mmxext modules ncurses nls nptl objc objc++ pdf png prefix qt4 readline sse sse2 ssl threads tiff unicode x64-macos zlib" APACHE2_MODULES="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="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="Darwin" 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 ubx" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" 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" 
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_E
Comment 2 Timothy Miller 2011-05-20 01:21:58 UTC
[ebuild     U ] dev-libs/gmp-5.0.2 [5.0.1] USE="-nocxx"
Comment 3 Timothy Miller 2011-05-20 01:22:22 UTC
Created attachment 274039 [details]
build log
Comment 4 Timothy Miller 2011-05-20 01:22:41 UTC
Created attachment 274041 [details]
environment
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-05-20 03:59:45 UTC
Ah, line 38 of the ebuild tries to be clever and pass the prefix sh. Unfortunately, the variable is not expanded. Looks like a simple logic error during committing. Fabian, can you explain more?
Comment 6 Fabian Groffen gentoo-dev 2011-05-20 06:55:44 UTC
crap, yes, it's \EOF :(

fixed now, thanks