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

Bug 527676

Summary: sys-devel/binutils-apple-4.3: build failure: gcc needs __has_feature instead of clang's __has_extension
Product: Gentoo/Alt Reporter: Guilherme Amadio <amadio>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED FIXED    
Severity: normal CC: amadio, craxyz
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: OS X   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 527514    
Attachments: build-log.txt
binutils-apple-4.3-gcc.patch
binutils-apple-4.3-r1.ebuild

Description Guilherme Amadio gentoo-dev 2014-11-01 01:32:23 UTC
sys-devel/binutils-apple-4.3 fails to build with the following error:

In file included from /usr/include/servers/bootstrap.h:14,
                 from libtool.c:59:
/usr/include/xpc/base.h:64:20: error: missing binary operator before token "("
/usr/include/xpc/base.h:81:18: error: missing binary operator before token "("
Makefile:81: recipe for target 'libtool.o' failed

Reproducible: Always
Comment 1 Guilherme Amadio gentoo-dev 2014-11-01 01:33:21 UTC
Created attachment 387916 [details]
build-log.txt
Comment 2 Guilherme Amadio gentoo-dev 2014-11-01 02:36:16 UTC
Created attachment 387918 [details, diff]
binutils-apple-4.3-gcc.patch

This patch fixes build problems with gcc-apple.
Comment 3 Guilherme Amadio gentoo-dev 2014-11-01 02:37:04 UTC
Created attachment 387920 [details]
binutils-apple-4.3-r1.ebuild

Ebuild that applies patch above.
Comment 4 Fabian Groffen gentoo-dev 2014-11-01 08:49:11 UTC
this should be the same patch as I did to gcc, right?
Comment 5 Guilherme Amadio gentoo-dev 2014-11-01 12:43:33 UTC
I'm not sure, because I don't know what you did to GCC. Is there a bug for reference? The patch is quite simple if want to look at it.
Comment 7 Guilherme Amadio gentoo-dev 2014-11-01 20:25:34 UTC
Yes, I guess it's a minor variation of the same thing. Do you have a working prefix too at this point? I think this was the last fix I needed.
Comment 8 Fabian Groffen gentoo-dev 2014-11-02 20:43:56 UTC
nope, I don't.  I hope to find time to patch Clang so we can bootstrap with Clang and fix all these problems.
Comment 9 Guilherme Amadio gentoo-dev 2014-11-03 01:59:16 UTC
What do we need to do to be able to bootstrap with clang? I know we need to tweak the profile, and somehow use gcc-config to set clang as system compiler, but I'm not familiar enough with these things to know what to do yet. Maybe if you could give me some tips I could start working on it.
Comment 10 Ruud Koolen (RETIRED) archtester gentoo-dev Security 2014-11-27 13:12:32 UTC
Fixed for now due to using clang for python.