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
actual problem here is that autoconf appears to generate an almost empty configure script... :(
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.
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
the order of commands has changed, did you notice that?
(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".
I'll work through it again.
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.
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.