Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 317915 - emerge --oneshot --nodeps gcc-apple fails on bootstrap, OS X 10.5.8 powerpc
Summary: emerge --oneshot --nodeps gcc-apple fails on bootstrap, OS X 10.5.8 powerpc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-30 17:20 UTC by Sri Gupta
Modified: 2010-05-14 07:25 UTC (History)
1 user (show)

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


Attachments
build log (build.log,102.61 KB, text/plain)
2010-04-30 19:35 UTC, Sri Gupta
Details
ebuild environment file (environment,201.54 KB, text/plain)
2010-04-30 19:35 UTC, Sri Gupta
Details
Correct build log (sorry!) (build.log,2.06 KB, text/plain)
2010-04-30 19:36 UTC, Sri Gupta
Details
Correct ebuild environment file (sorry!) (environment,410.43 KB, text/plain)
2010-04-30 19:37 UTC, Sri Gupta
Details
automake build log (build.log,2.78 KB, text/plain)
2010-04-30 20:20 UTC, Sri Gupta
Details
automake config log (config.log,8.28 KB, text/plain)
2010-04-30 20:20 UTC, Sri Gupta
Details
Autoconf build log (build.log,39.71 KB, text/plain)
2010-04-30 20:28 UTC, Sri Gupta
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sri Gupta 2010-04-30 17:20:38 UTC
Following the bootstrap instructions, the gcc-apple build fails with an automake error.

emerge --oneshot gcc-apple builds a working autotools toolchain and then proceeds to build gcc-apple without any trouble.  If nothing else, the docs should reflect this.  

Unfortunately when I got gcc-apple to correctly build and merge it wiped out my fail logs.  Will attempt to reproduce in a fresh prefix later this weekend.  

Reproducible: Always

Steps to Reproduce:
1. follow instructions for OS X bootstrap on 10.5.8 powerpc
2. gcc-apple fails to build
Comment 1 Fabian Groffen gentoo-dev 2010-04-30 17:25:06 UTC
please do try and get logs so we can get this issue resolved (hopefully)
Comment 2 Michael Weber (RETIRED) gentoo-dev 2010-04-30 17:26:42 UTC
and spare the --nodeps (or are they really fulfilled?)
Comment 3 Sri Gupta 2010-04-30 17:31:02 UTC
I don't follow- the bootstrap instructions say to use --oneshot --nodeps.  

If you don't use --nodeps, it works just fine.  

Since my main portage prefix is currently blocked on a readline patch bug, I'm bootstrapping a new prefix now to get some fail logs.  See ya in an hour or so...
Comment 4 Michael Weber (RETIRED) gentoo-dev 2010-04-30 17:35:55 UTC
(In reply to comment #2)
> and spare the --nodeps (or are they really fulfilled?)
i was just lectured that i've overseen the bootstrapping macosx guide. my apologies and please forget about my comment.
Comment 5 Sri Gupta 2010-04-30 19:34:20 UTC
Sris-Power-Mac-G4:testprefix admin$ emerge --info

Portage 2.2.00.15842-prefix (prefix/darwin/macos/10.5/ppc, gcc-4.0.1, unavailable, 9.8.0 Power Macintosh)
=================================================================
System uname: Darwin-9.8.0-Power_Macintosh-powerpc-32bit
Timestamp of tree: Tue, 27 Apr 2010 21:37:36 +0000
distcc 2.18.5-Apple.1 i386-apple-darwin9.0 (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     4.0_p37
sys-devel/gcc-config: 1.4.1-r00.2
ACCEPT_KEYWORDS="~ppc-macos"
ACCEPT_LICENSE="* -@EULA"
CBUILD="powerpc-apple-darwin9"
CFLAGS=""
CHOST="powerpc-apple-darwin9"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf"
CPPFLAGS="-I/Volumes/Gentoo/testprefix//usr/include"
CXXFLAGS=""
DISTDIR="/Volumes/Gentoo/testprefix/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"
LDFLAGS="-Wl,-search_paths_first -L/Volumes/Gentoo/testprefix//usr/lib -L/Volumes/Gentoo/testprefix//lib"
PKGDIR="/Volumes/Gentoo/testprefix/usr/portage/packages"
PORTAGE_CONFIGROOT="/Volumes/Gentoo/testprefix/"
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="/Volumes/Gentoo/testprefix/var/tmp"
PORTDIR="/Volumes/Gentoo/testprefix/usr/portage"
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="aqua coreaudio cracklib cxx modules ncurses objc objc++ ppc-macos prefix readline 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" RUBY_TARGETS="ruby18" USERLAND="GNU" 
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 6 Sri Gupta 2010-04-30 19:35:03 UTC
Created attachment 229827 [details]
build log
Comment 7 Sri Gupta 2010-04-30 19:35:22 UTC
Created attachment 229829 [details]
ebuild environment file
Comment 8 Sri Gupta 2010-04-30 19:36:38 UTC
Created attachment 229831 [details]
Correct build log (sorry!)
Comment 9 Sri Gupta 2010-04-30 19:37:04 UTC
Created attachment 229833 [details]
Correct ebuild environment file (sorry!)
Comment 10 Fabian Groffen gentoo-dev 2010-04-30 19:37:41 UTC
ahhh... hmmmm
Comment 11 Fabian Groffen gentoo-dev 2010-04-30 19:38:57 UTC
and this is step 1.7, I presume?
Comment 12 Sri Gupta 2010-04-30 19:43:24 UTC
Correct, last command in step 1.7.

Again, the quick fix is emerge --oneshot gcc-apple instead of emerge --oneshot --nodeps gcc-apple.  

I don't know if it's easier to change the docs or change the deps in the ebuild..
Comment 13 Fabian Groffen gentoo-dev 2010-04-30 19:44:49 UTC
how many dependencies are pulled in (do you still have the list?) if you remove --nodeps?
Comment 14 Sri Gupta 2010-04-30 19:46:45 UTC
Sris-Power-Mac-G4:~ admin$ emerge -pv --oneshot gcc-apple

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] sys-devel/gnuconfig-20100403  0 kB
[ebuild  N    ] sys-libs/zlib-1.2.3-r01.1  0 kB
[ebuild  N    ] sys-libs/ncurses-5.7-r3  USE="cxx (-ada) -debug -doc (-gpm) -minimal -profile -trace -unicode" 0 kB
[ebuild  N    ] sys-devel/autoconf-wrapper-8  0 kB
[ebuild  N    ] app-arch/bzip2-1.0.5-r1  USE="-static" 0 kB
[ebuild  N    ] sys-devel/automake-wrapper-5  0 kB
[ebuild  N    ] dev-libs/gmp-4.3.1  USE="-nocxx" 0 kB
[ebuild  N    ] dev-libs/mpfr-2.4.2_p3  0 kB
[ebuild  N    ] sys-devel/libperl-5.10.1-r00.1  0 kB
[ebuild  N    ] dev-lang/perl-5.10.1  USE="-berkdb -build -debug -doc -gdbm -ithreads" 0 kB
[ebuild  N    ] app-admin/perl-cleaner-2.0  0 kB
[ebuild  N    ] sys-apps/help2man-1.37.1  USE="-nls" 0 kB
[ebuild  N    ] sys-apps/texinfo-4.13  USE="-nls -static" 0 kB
[ebuild  N    ] sys-devel/autoconf-2.65  USE="-emacs" 0 kB
[ebuild  N    ] sys-devel/automake-1.11.1  0 kB
[ebuild  N    ] sys-devel/libtool-2.2.6b  USE="-test -vanilla" 0 kB
[ebuild  N    ] sys-devel/gcc-apple-4.2.1_p5647  USE="objc objc++ openmp -fortran -multislot -nls -nocxx -nptl -test" 0 kB

Total: 17 packages (17 new), Size of downloads: 0 kB
Comment 15 Fabian Groffen gentoo-dev 2010-04-30 20:09:37 UTC
are you still in the position to try if emerging --nodeps automake is enough?
Comment 16 Sri Gupta 2010-04-30 20:20:00 UTC
Fails on configure.  Attaching the config log.  

 * ERROR: sys-devel/automake-1.11.1 failed:
 *   econf failed
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 5796:  Called econf '--docdir=/Volumes/Gentoo/testprefix/usr/share/doc/automake-1.11.1' 'HELP2MAN=true'
 *     ebuild.sh, line  546:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 * 
 * If you need support, post the output of 'emerge --info =sys-devel/automake-1.11.1',
 * the complete build log and the output of 'emerge -pqv =sys-devel/automake-1.11.1'.
 * The complete build log is located at '/Volumes/Gentoo/testprefix/var/tmp/portage/sys-devel/automake-1.11.1/temp/build.log'.
 * The ebuild environment file is located at '/Volumes/Gentoo/testprefix/var/tmp/portage/sys-devel/automake-1.11.1/temp/environment'.
 * S: '/Volumes/Gentoo/testprefix/var/tmp/portage/sys-devel/automake-1.11.1/work/automake-1.11.1'
Comment 17 Sri Gupta 2010-04-30 20:20:29 UTC
Created attachment 229837 [details]
automake build log
Comment 18 Sri Gupta 2010-04-30 20:20:46 UTC
Created attachment 229839 [details]
automake config log
Comment 19 Fabian Groffen gentoo-dev 2010-04-30 20:25:03 UTC
ok, so that would be autoconf + automake.  Can you emerge --oneshot --nodeps autoconf ?
Comment 20 Sri Gupta 2010-04-30 20:28:13 UTC
Created attachment 229843 [details]
Autoconf build log

Autoconf fails on QA concerns?  This is kinda fun..


 * ERROR: sys-devel/autoconf-2.65 failed:
 *   Aborting due to QA concerns: invalid shebangs found
 * 
 * Call stack:
 *   misc-functions.sh, line 1487:  Called install_qa_check
 *   misc-functions.sh, line   94:  Called install_qa_check_prefix
 *   misc-functions.sh, line  657:  Called die
 * The specific snippet of code:
 *              die "Aborting due to QA concerns: invalid shebangs found"
 * 
 * If you need support, post the output of 'emerge --info =sys-devel/autoconf-2.65',
 * the complete build log and the output of 'emerge -pqv =sys-devel/autoconf-2.65'.
 * The complete build log is located at '/Volumes/Gentoo/testprefix/var/tmp/portage/sys-devel/autoconf-2.65/temp/build.log'.
 * The ebuild environment file is located at '/Volumes/Gentoo/testprefix/var/tmp/portage/sys-devel/autoconf-2.65/temp/environment'.
 * S: '/Volumes/Gentoo/testprefix/var/tmp/portage/sys-devel/autoconf-2.65/work/autoconf-2.65'
Comment 21 Fabian Groffen gentoo-dev 2010-04-30 20:40:08 UTC
ok, thanks.  It seems you would end up with this:

42 # needed for autoconf
43 emerge --oneshot --nodeps perl || exit
44 # both needed for automake
45 emerge --oneshot --nodeps autoconf || exit
46 emerge --oneshot --nodeps autoconf-wrapper || exit
47 # needed for gcc-apple
48 emerge --oneshot --nodeps help2man || exit
49 emerge --oneshot --nodeps texinfo || exit
50 emerge --oneshot --nodeps automake || exit
51 emerge --oneshot --nodeps automake-wrapper || exit
52 emerge --oneshot --nodeps gcc-config || exit
53 emerge --oneshot --nodeps "<gcc-apple-4.2.1_p5646" || exit
Comment 22 Fabian Groffen gentoo-dev 2010-05-02 14:57:23 UTC
There is actually no need for eautoconf while bootstrapping so I made them conditional on USE=bootstrap.  I committed the fixes, tomorrow's bootstrap snapshot should make it then.

Thanks for the efforts in trying to find a way to get around the issue!
Comment 23 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-05-13 21:24:06 UTC
(In reply to comment #22)
> There is actually no need for eautoconf while bootstrapping so I made them
> conditional on USE=bootstrap.  I committed the fixes, tomorrow's bootstrap
> snapshot should make it then.
> 
> Thanks for the efforts in trying to find a way to get around the issue!
> 

Current snapshot is still 0502. Just so we don't forget.
Comment 24 Fabian Groffen gentoo-dev 2010-05-14 07:25:00 UTC
snapshot bumped