Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 220229 - Bootstrap on fails on ebuilds invoking autoconf.
Summary: Bootstrap on fails on ebuilds invoking autoconf.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 OS X
: High normal
Assignee: Gentoo non-Linux Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-04 13:06 UTC by Shaun Cloherty
Modified: 2008-05-05 15:08 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 Shaun Cloherty 2008-05-04 13:06:43 UTC
Attempting to bootstrap prefix-portage (prefix-portage-2.2.00.9894.tar.bz2) on Mac OS X fails when trying to emerge libtool-1.5.26 (a dependency of findutils?). The following is produced on the terminal:

>>> Source unpacked.
>>> Compiling source in /Library/Gentoo/var/tmp/portage/sys-devel/libtool-1.5.26/work/libtool-1.5.26 ...
 * econf: updating /libtool-1.5.26/config.guess with /Library/Gentoo/usr/share/gnuconfig/config.guess
 * econf: updating /libtool-1.5.26/config.sub with /Library/Gentoo/usr/share/gnuconfig/config.sub
 * econf: updating /libtool-1.5.26/libltdl/config.guess with /Library/Gentoo/usr/share/gnuconfig/config.guess
 * econf: updating /libtool-1.5.26/libltdl/config.sub with /Library/Gentoo/usr/share/gnuconfig/config.sub
./configure --prefix=/Library/Gentoo/usr --host=i686-apple-darwin9 --mandir=/Library/Gentoo/usr/share/man --infodir=/Library/Gentoo/usr/share/info --datadir=/Library/Gentoo/usr/share --sysconfdir=/Library/Gentoo/etc --localstatedir=/Library/Gentoo/var/lib --program-prefix=g --build=i686-apple-darwin9
make: *** No targets specified and no makefile found.  Stop.
 * ERROR: sys-devel/libtool-1.5.26 failed:
 *   (no error message)
 * 
 * Call stack:
 *               ebuild.sh:  49: <call src_compile>
 *             environment:2114:     emake || die
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * build log: '/Library/Gentoo/var/tmp/portage/sys-devel/libtool-1.5.26/temp/build.log'
 * ebuild environment: '/Library/Gentoo/var/tmp/portage/sys-devel/libtool-1.5.26/temp/environment'
 * S: '/Library/Gentoo/var/tmp/portage/sys-devel/libtool-1.5.26/work/libtool-1.5.26'


It seems that the configure script produced by the call to autoconf fails to produce the Makefile. Removing the call to autoconf prevents the configure script from being overwritten and the build completes without error.

However, bootstrapping fails again later when trying to emerge expat-2.0.1 (a dependency of portage) when the configure script created by autoconf again fails to produce a Makefile.



Reproducible: Always

Steps to Reproduce:
1.emerge --oneshot libtool
2.
3.

Actual Results:  
Make fails with:

make: *** No targets specified and no makefile found.  Stop.

Expected Results:  
One might expect libtool to be merged to the specified $EPREFIX.

My output from 'emerge --info' is as follows:

Portage 2.2.00.9894-prefix (default-prefix/darwin/macos/10.5/x86, gcc-4.0.1, unavailable, 9.2.2 i386)
=================================================================
System uname: 9.2.2 i386 i386
Timestamp of tree: Unknown
distcc 2.18.5-Apple.1 powerpc-apple-darwin9.0 (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p17-r1
sys-devel/autoconf:  2.13, 2.61-r01.1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/gcc-config: 1.4.0-r04.2
sys-devel/libtool:   1.5.26
ACCEPT_KEYWORDS="~x86-macos"
CBUILD="i686-apple-darwin9"
CFLAGS="-march=prescott"
CHOST="i686-apple-darwin9"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CPPFLAGS="-I/Library/Gentoo/usr/include"
CXXFLAGS=""
DISTDIR="/Library/Gentoo/usr/portage/distfiles"
EPREFIX="/Library/Gentoo"
FEATURES="collision-protect distlocks metadata-transfer nostrip parallel-fetch preserve-libs sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_AU.UTF-8"
LDFLAGS="-Wl,-search_paths_first -L/Library/Gentoo/usr/lib -L/Library/Gentoo/lib"
PKGDIR="/Library/Gentoo/usr/portage/packages"
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="/Library/Gentoo/var/tmp"
PORTDIR="/Library/Gentoo/usr/portage"
SYNC="svn://overlays.gentoo.org/proj/alt/trunk/prefix-overlay"
USE="aqua coreaudio cracklib midi mmx mmxext ncurses objc objc++ prefix readline sse sse2 ssl x86-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 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="Darwin" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Fabian Groffen gentoo-dev 2008-05-04 13:48:05 UTC
actual problem here is that autoconf appears to generate an almost empty configure script... :(
Comment 2 Fabian Groffen gentoo-dev 2008-05-04 20:30:58 UTC
Thanks for reporting.  I went through the entire process once again this afternoon and ironed out some bugs.  I uploaded a new snapshot and updated the bootstrap descriptions.  Please give them around 15 minutes to update (check the updated "date").

Also, I'm sorry that you'll have to start over from scratch.  Please redownload the bootstrap script and start in a clean directory.
Comment 3 Shaun Cloherty 2008-05-05 11:02:08 UTC
I don't think this issue is resolved.

Attempting to bootstrap prefix-portage again this evening (prefix-portage-2.2.00.10181.tar.bz2) results in the same error on OS X 10.5. I removed my EPREFIX (/Library/Gentoo), downloaded the updated bootstrap script and commenced the process again. When attempting to emerge libtool-1.5.26, the emerge again fails with:

./configure --prefix=/Library/Gentoo/usr --host=i686-apple-darwin9 --mandir=/Library/Gentoo/usr/share/man --infodir=/Library/Gentoo/usr/share/info --datadir=/Library/Gentoo/usr/share --sysconfdir=/Library/Gentoo/etc --localstatedir=/Library/Gentoo/var/lib --program-prefix=g --build=i686-apple-darwin9
make: *** No targets specified and no makefile found.  Stop.
 * ERROR: sys-devel/libtool-1.5.26 failed:
 *   (no error message)
 * 
 * Call stack:
 *               ebuild.sh:  49: <call src_compile>
 *             environment:2115:     emake || die
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * build log: '/Library/Gentoo/var/tmp/portage/sys-devel/libtool-1.5.26/temp/build.log'
 * ebuild environment: '/Library/Gentoo/var/tmp/portage/sys-devel/libtool-1.5.26/temp/environment'
 * S: '/Library/Gentoo/var/tmp/portage/sys-devel/libtool-1.5.26/work/libtool-1.5.26'





Incidently, emerging findutils-4.4.0 also failed, with:

find.texi:10: @include `../locate/dblocation.texi': No such file or directory.
find.texi:554: warning: undefined flag: LOCATE_DB.
find.texi:2681: warning: undefined flag: LOCATE_DB.
find.texi:2683: warning: undefined flag: LOCATE_DB.
find.texi:3160: warning: undefined flag: LOCATE_DB.
find.texi:3346: warning: undefined flag: LOCATE_DB.
find.texi:5230: warning: undefined flag: LOCATE_DB.
find.texi:5238: warning: undefined flag: LOCATE_DB.
makeinfo: Removing output file `find.info' due to errors; use --force to preserve.
make[1]: *** [find.info] Error 1
make: *** [install-recursive] Error 1



Is this likely to be a related issue or should I file a separate bug report?


The output from 'emerge --info' is as follows:

bash-3.2# emerge --info
Portage 2.2.00.10181-prefix (default-prefix/darwin/macos/10.5/x86, gcc-4.0.1, unavailable, 9.2.2 i386)
=================================================================
System uname: 9.2.2 i386 i386
Timestamp of tree: Unknown
distcc 2.18.5-Apple.1 powerpc-apple-darwin9.0 (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p17-r1
sys-devel/autoconf:  2.61-r01.1
sys-devel/automake:  1.10.1-r1
ACCEPT_KEYWORDS="~x86-macos"
CBUILD="i686-apple-darwin9"
CFLAGS="-march=prescott"
CHOST="i686-apple-darwin9"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CPPFLAGS="-I/Library/Gentoo/usr/include"
CXXFLAGS=""
DISTDIR="/Library/Gentoo/usr/portage/distfiles"
EPREFIX="/Library/Gentoo"
FEATURES="collision-protect distlocks nostrip parallel-fetch preserve-libs sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_AU.UTF-8"
LDFLAGS="-Wl,-search_paths_first -L/Library/Gentoo/usr/lib -L/Library/Gentoo/lib"
PKGDIR="/Library/Gentoo/usr/portage/packages"
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="/Library/Gentoo/var/tmp"
PORTDIR="/Library/Gentoo/usr/portage"
SYNC="svn://overlays.gentoo.org/proj/alt/trunk/prefix-overlay"
USE="aqua coreaudio cracklib midi mmx mmxext ncurses objc objc++ prefix readline sse sse2 ssl x86-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 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="Darwin" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 4 Fabian Groffen gentoo-dev 2008-05-05 11:15:03 UTC
the order of commands has changed, did you notice that?
Comment 5 Shaun Cloherty 2008-05-05 12:25:44 UTC
(In reply to comment #4)
> the order of commands has changed, did you notice that?
> 

Yes. I have your updated instructions from http://www.gentoo.org/proj/en/gentoo-alt/prefix/bootstrap-macos.xml, "Updated May 4, 2008".
Comment 6 Shaun Cloherty 2008-05-05 12:28:52 UTC
I'll work through it again.
Comment 7 Shaun Cloherty 2008-05-05 14:15:16 UTC
You are right, following the order carefully this time resulted in successful merging of libtool-1.5.26. Sorry for the goose chase, my fault entirely for not paying close enough attention. This issue is indeed resolved.
Comment 8 Fabian Groffen gentoo-dev 2008-05-05 15:08:17 UTC
Unfortunately I cannot tell you exactly why autoconf gets messed up, but somehow the order in which the autotools are emerged is extremely important.

I removed a dependency cycle, which together with another order of packages (based on the Solaris bootstrap, so relying less on system provided packages) emerges the autotools such that they end up working.  If you make it up to (and including) "emerge portage", I'm confident you'll make it to the end.