Running Portage Prefix on Mac OS X 10.6 certain packages including: python-2.6.2-r2 glib-2.20.5 and others fail to build with the error: In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/HFSVolumes.h:32, from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:206, from /System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20, from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:21, from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20, from Include/pymactoolbox.h:10, from Python/mactoolboxglue.c:27: /usr/include/hfs/hfs_format.h:765: error: expected specifier-qualifier-list before ‘uuid_string_t’
please print your emerge --info and gcc -v
dyn116 >>emerge --info < ~ Portage 2.2.00.14555-prefix (prefix/darwin/macos/10.5/x86, gcc-4.2.1, unavailable, 10.0.0 i386) ================================================================= System uname: Darwin-10.0.0-i386-32bit Timestamp of tree: Sun, 18 Oct 2009 17:25:43 +0000 distcc 2.18.5-Apple.1 i386-apple-darwin10.0 (protocols 1 and 2) (default port 3632) [disabled] app-shells/bash: 4.0_p33-r00.1 dev-java/java-config: 2.1.8-r1 dev-lang/python: 2.5.4-r2, 2.6.2-r01.1 sys-devel/autoconf: 2.13, 2.63-r01.1 sys-devel/automake: 1.5, 1.9.6-r2, 1.10.2-r00.1, 1.11 sys-devel/gcc-config: 1.4.1-r00.2 sys-devel/libtool: 2.2.6a-r00.2 ACCEPT_KEYWORDS="~x86-macos" CBUILD="i686-apple-darwin9" CFLAGS="-march=nocona -O3 -pipe" CHOST="i686-apple-darwin9" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gc onf /etc/revdep-rebuild /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/upd map.d /etc/texmf/web2c" CXXFLAGS="-march=nocona -O3 -pipe" DISTDIR="/gentoo/usr/portage/distfiles" FEATURES="assume-digests collision-protect distlocks fixpackages news nostrip parallel-fetch preserve-li bs protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ http://mirror.mdfnet.se/mirror/gentoo http://ftp.gen too.bg/" LANG="en_US.UTF-8" LDFLAGS="" MAKEOPTS="-j3" PKGDIR="/gentoo/usr/portage/packages" PORTAGE_CONFIGROOT="/gentoo/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --d elete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/gentoo/var/tmp" PORTDIR="/gentoo/usr/portage" PORTDIR_OVERLAY="/gentoo/usr/local/portage" SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix" USE="aalib aqua coreaudio cracklib fortran imagemagick ipv6 jpeg kerberos kpathsea latex matroska mmx mm xext modules ncurses nls objc objc++ perl png prefix python readline ruby sse sse2 ssl subversion svg th reads unicode vim x264 x86-macos zlib zsh" APACHE2_MODULES="actions alias auth_basic authn_alias authn_a non authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner au thz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache fi lter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif spelin g 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="GN U" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS dyn116 >>gcc -v < ~ Using built-in specs. Target: i686-apple-darwin10 Configured with: /var/tmp/gcc/gcc-5646~6/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4. 2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1 --progr am-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 Thread model: posix gcc version 4.2.1 (Apple Inc. build 5646)
10.6 != 10.5 you seriously screwed up stuff you got the wrong profile, you ain't got a linker ... what did you do to get in this foobared state?
Hmmm... emerge --info claims that my system is running 10.5 -- it was build under 10.5 but is now running 10.6
Right. Seems we don't cope with this transition very well. But that doesn't explain why your linker is gone. Has your EPREFIX remained the same?
(In reply to comment #5) > Right. Seems we don't cope with this transition very well. Maybe one should document, that upon Kernel/OS-upgrade one should re-bootstrap or at least adjust the profile to the new version (10.5 -> 10.6 in this case). Or for MacOS check profile's CHOST version part vs. `uname -r | cut -d "." -f 1` within some portage bits? > > But that doesn't explain why your linker is gone. Has your EPREFIX remained > the same? Maybe just the env/PATH-setup is broken for him?
(In reply to comment #5) > Right. Seems we don't cope with this transition very well. > > But that doesn't explain why your linker is gone. Has your EPREFIX remained > the same? > My EPREFIX environment variable had not been set at all - I set it back to my prefix directory... Still I believe that the environment is somehow still foobared. Any suggestions on places to look to begin sorting it out?
I would suggest marking this bug invalid. bootstrapping prefix on darwin10 or osx 10.6 now works, best solution would be to rebootstrap. I have been running on prefix bootstrapped on 10.5 while upgrading to 10.6 for a while, it works if you don't touch anything :( Currently preparing rebootstrapped prefix on 10.6
While supporting the upgrade path would be nice, I agree that rebootstrapping is by far the easiest solution to get everything right. If someone wants to dive into it, I'm all ears, but for now this won't be supported.
(In reply to comment #8) > I would suggest marking this bug invalid. I just rebootstrapped - things are working. A discussion on upgrade paths probably deserves its own bugzilla ticket, so I'll close this as it's no longer an issue.