Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 327077 - dev-libs/gmp build failed on old broken systems due to shell syntax used
Summary: dev-libs/gmp build failed on old broken systems due to shell syntax used
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Solaris
: High trivial (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-06 04:17 UTC by vlad f halilov
Modified: 2010-07-09 22:54 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vlad f halilov 2010-07-06 04:17:42 UTC
After bootstraping portage, i started 'enmerge -u system' as manual direction and got build failed for dev-libs/gmp ebuild.


--------------------------------------------------------
>>> Installing (1 of 29) sys-apps/portage-2.2.01.15352
!!! CANNOT IMPORT HTTP.CLIENT: cannot import name HTTPSConnection
 * If you are an ebuild developer and you plan to commit ebuilds
 * with this system then please install dev-python/pycrypto or
 * enable the ssl USE flag for >=dev-lang/python-2.6 in order
 * to enable RMD160 hash support.
 * See bug #198398 for more information.
 * Compilation and optimization of Python modules for CPython 2.6 ...                                        [ ok ]
 *
 * For help with using portage please consult the Gentoo Handbook
 * at http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3
 *

 * Messages for package sys-apps/portage-2.2.01.15352:

 * If you are an ebuild developer and you plan to commit ebuilds
 * with this system then please install dev-python/pycrypto or
 * enable the ssl USE flag for >=dev-lang/python-2.6 in order
 * to enable RMD160 hash support.
 * See bug #198398 for more information.
 *
 * For help with using portage please consult the Gentoo Handbook
 * at http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3
 *
Calculating dependencies... done!
*** Resuming merge...

>>> Verifying ebuild manifests

>>> Starting parallel fetch

>>> Emerging (1 of 28) dev-libs/gmp-5.0.1
 * gmp-5.0.1.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                     [ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
 * CPV:  dev-libs/gmp-5.0.1
 * REPO: gentoo_prefix
 * USE:  elibc_SunOS kernel_SunOS prefix userland_GNU x86-solaris
>>> Unpacking source...
>>> Unpacking gmp-5.0.1.tar.bz2 to /x86build/gentoo/var/tmp/portage/dev-libs/gmp-5.0.1/work
 * Applying gmp-4.1.4-noexecstack.patch ...                                                                  [ ok ]
 * Applying gmp-5.0.0-s390.diff ...                                                                          [ ok ]
 * Running elibtoolize in: gmp-5.0.1
 *   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 ...
>>> Source unpacked in /x86build/gentoo/var/tmp/portage/dev-libs/gmp-5.0.1/work
>>> Compiling source in /x86build/gentoo/var/tmp/portage/dev-libs/gmp-5.0.1/work/gmp-5.0.1 ...
 * econf: updating gmp-5.0.1/config.guess with /opt/gentoo/usr/share/gnuconfig/config.guess
 * econf: updating gmp-5.0.1/config.sub with /opt/gentoo/usr/share/gnuconfig/config.sub
./configure --prefix=/opt/gentoo/usr --build=i386-pc-solaris2.10 --host=i386-pc-solaris2.10 --mandir=/opt/gentoo/usr/share/man --infodir=/opt/gentoo/usr/share/info --datadir=/opt/gentoo/usr/share --sysconfdir=/opt/gentoo/etc --localstatedir=/opt/gentoo/var/lib --localstatedir=/opt/gentoo/var/state/gmp --disable-mpfr --disable-mpbsd --enable-cxx
./configure: ABI=: is not an identifier
 * ERROR: dev-libs/gmp-5.0.1 failed:
 *   econf failed
 *
 * Call stack:
 *     ebuild.sh, line   53:  Called call-ebuildshell 'src_compile'
 *   environment, line  486:  Called src_compile
 *   environment, line 3080:  Called econf '--localstatedir=/opt/gentoo/var/state/gmp' '--disable-mpfr' '--disable-mpbsd' '--enable-cxx'
 *     ebuild.sh, line  586:  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.1',
 * the complete build log and the output of 'emerge -pqv =dev-libs/gmp-5.0.1'.
 * The complete build log is located at '/x86build/gentoo/var/tmp/portage/dev-libs/gmp-5.0.1/temp/build.log'.
 * The ebuild environment file is located at '/x86build/gentoo/var/tmp/portage/dev-libs/gmp-5.0.1/temp/environment'. * S: '/x86build/gentoo/var/tmp/portage/dev-libs/gmp-5.0.1/work/gmp-5.0.1'

>>> Failed to emerge dev-libs/gmp-5.0.1, Log file:

>>>  '/x86build/gentoo/var/tmp/portage/dev-libs/gmp-5.0.1/temp/build.log'

 * Messages for package dev-libs/gmp-5.0.1:

 * ERROR: dev-libs/gmp-5.0.1 failed:
 *   econf failed
 *
 * Call stack:
 *     ebuild.sh, line   53:  Called call-ebuildshell 'src_compile'
 *   environment, line  486:  Called src_compile
 *   environment, line 3080:  Called econf '--localstatedir=/opt/gentoo/var/state/gmp' '--disable-mpfr' '--disable-mpbsd' '--enable-cxx'
 *     ebuild.sh, line  586:  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.1',
 * the complete build log and the output of 'emerge -pqv =dev-libs/gmp-5.0.1'.
 * The complete build log is located at '/x86build/gentoo/var/tmp/portage/dev-libs/gmp-5.0.1/temp/build.log'.
 * The ebuild environment file is located at '/x86build/gentoo/var/tmp/portage/dev-libs/gmp-5.0.1/temp/environment'. * S: '/x86build/gentoo/var/tmp/portage/dev-libs/gmp-5.0.1/work/gmp-5.0.1'
---------------------------------------------------------


diagnostic information
--------------------------------------------------------
vlad@z10build2 /opt/gentoo $ emerge --info =dev-libs/gmp-5.0.1
Portage 2.2.01.15352-prefix (prefix/sunos/solaris/5.10/x86, gcc-4.2.4, unavailable, 5.10 i86pc)
=================================================================
                        System Settings
=================================================================
System uname: Solaris-2.10-i86pc-i386-32bit-ELF
Timestamp of tree: Mon, 05 Jul 2010 09:39:06 +0000
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.5-r2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.11.1
sys-devel/binutils:  2.20.51.0.4
sys-devel/gcc:       4.2.4-r01.2
sys-devel/gcc-config: 1.4.1-r00.2
sys-devel/libtool:   2.2.6b
ACCEPT_KEYWORDS="~x86-solaris"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i386-pc-solaris2.10"
CFLAGS=""
CHOST="i386-pc-solaris2.10"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS=""
DISTDIR="/opt/gentoo/usr/portage/distfiles"
FEATURES="assume-digests collision-protect distlocks fixpackages news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LDFLAGS=""
PKGDIR="/opt/gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/opt/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="/opt/gentoo/var/tmp"
PORTDIR="/opt/gentoo/usr/portage"
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="cracklib cxx modules ncurses prefix readline ssl x86-solaris zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" 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 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" ELIBC="SunOS" INPUT_DEVICES="keyboard mouse" KERNEL="SunOS" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" 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, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
------------------------------------------------

reason: 

configure wrapper script using an incompatible with solaris '/bin/sh' construction: 

"export ABI=$GMPABI"

must be replaced with:

ABI=$GMPABI;
export ABI;
Comment 1 SpanKY gentoo-dev 2010-07-09 22:54:23 UTC
probably fixed in cvs

http://sources.gentoo.org/dev-libs/gmp/gmp-5.0.1.ebuild?r1=1.3&r2=1.4