Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 289610

Summary: Some packages fail to build in Mac OS X 10.6 due to hfs_format.h
Product: Gentoo/Alt Reporter: Dan Levin <dlevin>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Severity: normal CC: lil_tux
Priority: High    
Version: unspecified   
Hardware: x86   
OS: OS X   
Package list:
Runtime testing required: ---

Description Dan Levin 2009-10-18 17:57:51 UTC
Running Portage Prefix on  Mac OS X 10.6 certain packages including:


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’
Comment 1 Fabian Groffen gentoo-dev 2009-10-18 18:32:30 UTC
please print your emerge --info and gcc -v
Comment 2 Dan Levin 2009-10-18 18:34:22 UTC
dyn116 >>emerge --info                                                                              < ~
Portage (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
CFLAGS="-march=nocona -O3 -pipe"
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"
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://ftp.gen"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --d
elete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
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

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)
Comment 3 Fabian Groffen gentoo-dev 2009-10-18 18:38:39 UTC
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?
Comment 4 Dan Levin 2009-10-18 18:39:20 UTC
Hmmm... emerge --info claims that my system is running 10.5 -- it was build under 10.5 but is now running 10.6
Comment 5 Fabian Groffen gentoo-dev 2009-10-18 18:49:43 UTC
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?
Comment 6 Heiko 2009-10-19 09:29:39 UTC
(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?

Comment 7 Dan Levin 2009-10-19 10:46:14 UTC
(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?
Comment 8 Ramon 2009-10-19 22:15:55 UTC
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
Comment 9 Fabian Groffen gentoo-dev 2009-10-20 07:16:24 UTC
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.
Comment 10 Dan Levin 2009-10-31 19:50:54 UTC
(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.