In the bootstrap, I followed the steps on http://www.gentoo.org/proj/en/gentoo-alt/prefix/bootstrap-macos.xml At the step of binutils-apple, the compilation stops. Reproducible: Always Steps to Reproduce: 1. follow http://www.gentoo.org/proj/en/gentoo-alt/prefix/bootstrap-macos.xml till you reach binutils-apple Actual Results: Some error message claiming some function is protected. Is this a bug upstream? Expected Results: Compile successfully. $ emerge --info =sys-devel/binutils-apple-3.2-r1 Portage 2.2.00.15842-prefix (prefix/darwin/macos/10.5/ppc, gcc-4.0.1, unavailable, 9.8.0 Power Macintosh) ================================================================= System Settings ================================================================= System uname: Darwin-9.8.0-Power_Macintosh-powerpc-32bit Timestamp of tree: Sat, 10 Apr 2010 05:07:20 +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/autoconf: 2.63-r01.1 sys-devel/automake: 1.10.2-r00.1, 1.11.1 sys-devel/libtool: 2.2.6b 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 /etc/terminfo" CXXFLAGS="" DISTDIR="/Users/heroxbd/local/usr/portage/distfiles" FEATURES="assume-digests collision-protect distlocks fixpackages news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unmerge-logs unmerge-orp hans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.UTF-8" LDFLAGS="" MAKEOPTS="-j2" PKGDIR="/Users/heroxbd/local/usr/portage/packages" PORTAGE_CONFIGROOT="/Users/heroxbd/local/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclu de=/local --exclude=/packages" PORTAGE_TMPDIR="/Users/heroxbd/local/var/tmp" PORTDIR="/Users/heroxbd/local/usr/portage" SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix" USE="aqua coreaudio cracklib cxx modules ncurses objc objc++ ppc-macos prefix readline ssl zlib" APACHE2_MODULES="actions alias auth_basic authn_alias authn_ano n 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 d isk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status u nique_id userdir usertrack vhost_alias" ELIBC="Darwin" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcd m001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTD IR_OVERLAY $ emerge -pqv =sys-devel/binutils-apple-3.2-r1 [ebuild N ] sys-devel/binutils-apple-3.2-r1 USE="-test"
Created attachment 227207 [details] the build log
Created attachment 227679 [details] the build log
I ran into the very same error, same system specs (OSX 10.5.8 PPC), same procedure (following the tutorial) leading up to the bug. Attached my build.log too. emerge --info =sys-devel/binutils-apple-3.2-r1 Portage 2.2.00.15842-prefix (prefix/darwin/macos/10.5/ppc, gcc-4.0.1, unavailable, 9.8.0 Power Macintosh) ================================================================= System Settings ================================================================= System uname: Darwin-9.8.0-Power_Macintosh-powerpc-32bit Timestamp of tree: Tue, 23 Mar 2010 22:37:17 +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 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/Users/bitmail/Gentoo/usr/include" CXXFLAGS="" DISTDIR="/Users/bitmail/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" LDFLAGS="-Wl,-search_paths_first -L/Users/bitmail/Gentoo/usr/lib -L/Users/bitmail/Gentoo/lib" PKGDIR="/Users/bitmail/Gentoo/usr/portage/packages" PORTAGE_CONFIGROOT="/Users/bitmail/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/bitmail/Gentoo/var/tmp" PORTDIR="/Users/bitmail/Gentoo/usr/portage" SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix" USE="aqua coreaudio cracklib cxx modules ncurses objc objc++ ppc-macos prefix readline ssl 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
I ran into the same problem with a x86 machine (and followed the same tutorial). Hope this gets resolved soon, I would really like some portage power on OS X. :)
The binutils-apple source seems to be using the Xcode project file to manage build. However I failed to compile binutils-apple in Xcode at the first attempt. Apple "opensource" is generally less friendly than average at reponse quality and speed. Did this package compiled successfully some day before so to be included? Searching the mailing list archive shows there was native-cctools for Mac OS X.
I think there is a correlation between the binutils-apple version and the Xcode version you need to have installed. I had Xcode 3.1.4 installed, because from what I know Xcode 3.2 only works on Snow Leopard so I tried masking binutils-apple-3.2* and forcing the install of binutils-apple 3.1.2 and it worked. It's worth mentioning this in the tutorial.
(In reply to comment #6) > I think there is a correlation between the binutils-apple version and the Xcode > version you need to have installed. I had Xcode 3.1.4 installed, because from > what I know Xcode 3.2 only works on Snow Leopard so I tried masking > binutils-apple-3.2* and forcing the install of binutils-apple 3.1.2 and it > worked. It's worth mentioning this in the tutorial. Is this kind of workaround recommended or should I wait for a bugfix? And how exactly did you force the install of the older variant? Thanks in advance!
just a heads up: It *is* supposed to work. I have it running on both OSX Tiger (10.4) and OSX Leopard (10.5). Switching back to the older version is ok for now, as long as you aren't using a 64-bits install.
problem here is that I cannot reproduce this bug on x86-macos (10.5 Leopard). I use the latest gcc-apple and can recompile the latest binutils-apple without problems.
I have indeed managed to upgrade to the latest version of binutils-apple today without any errors. Can you try and bootstrap a new prefix using just the compiler/tools provided by apple xcode? There seems to be an issue with a fresh install, it works fine for an update.
Had the same problem on bootstrap. Workaround- while bootstrapping, before running emerge --oneshot --nodeps binutils-apple, run the following commands: mkdir $EPREFIX/etc/portage echo ">=sys-devel/binutils-apple-3.2" > $EPREFIX/etc/portage/package.mask emerge --oneshot --nodeps binutils-apple Now, I'm trying to get gcc-apple to merge... but that's another bug.
I added a correct dependency in the ebuild now, and have updated the bootstrap document to bootstrap a version <3.2 first. Thanks for all the input and patience!