In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:161, from /Users/yegle/.gentoo/var/tmp/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/gio/gnextstepsettingsbackend.c:28: /System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:16: error: expected ',' or '}' before '__attribute__' The exact error message shows when compiling python-2.7.5-r4 build.log http://bpaste.net/show/147460/ emerge --info http://bpaste.net/show/147461/ build.log for python-2.7.5-r4 http://bpaste.net/show/147462/ Reproducible: Always
Please do not use pastebins in bugzilla, as they tend to expire. Use attachments instead.
Created attachment 362716 [details] build.log for glib-2.36.4-r1
Created attachment 362718 [details] emerge --info
Created attachment 362720 [details] build.log for python-2.7.5-r4
which OSX is this, and can you show me the relevant line from Foundation.h, e.g. sed -n '161p' /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h
(In reply to Fabian Groffen from comment #5) > which OSX is this, and can you show me the relevant line from Foundation.h, > e.g. > > sed -n '161p' > /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h @Fabian, It's OSX Mavericks. sed -n '161p' /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h #import <Foundation/NSUserNotification.h>
The problem still exists after upgrading to XCode 5.0.2. After setting CC to clang and CXX to clang++ (the one comes with xcode), it passes the compile phase without a problem.
hmmmm, weird. It appears line 16 is the problem (I mistakenly wrote 161), I suspect a type or something that isn't known to gcc for some reason.
@Fabian $ sed -n '16p' /System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h NSUserNotificationActivationTypeReplied NS_AVAILABLE(10_9, NA) = 3 Hope this helps.
what is your compiler? gcc-config -l?
Your CHOST is darwin12, so you likely upgraded your Mac and didn't re-bootstrap. We can't support that, really, although rebuilding your gcc *might* help. No guarantees though.
(In reply to Fabian Groffen from comment #11) > Your CHOST is darwin12, so you likely upgraded your Mac and didn't > re-bootstrap. We can't support that, really, although rebuilding your gcc > *might* help. No guarantees though. Ah thank you for pointing out this. I'll re-bootstrap and see if it fixes this problem.