Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 575860 - dev-lang/R-3.2.3 - In file included from qdCocoa.m:24: /usr/include/objc/NSObject.h:22: error: expected ‘)’ before ‘instancetype’
Summary: dev-lang/R-3.2.3 - In file included from qdCocoa.m:24: /usr/include/objc/NSOb...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-27 23:07 UTC by *
Modified: 2020-12-13 16:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.bz2 (build.log.bz2,28.64 KB, application/x-bzip)
2016-02-27 23:07 UTC, *
Details

Note You need to log in before you can comment on or make changes to this bug.
Description * 2016-02-27 23:07:41 UTC
Created attachment 426816 [details]
build.log.bz2

My system is OS X El Capitan (10.11.3).
I'm using an installation built with a successful bootstrap from bug 564814.
When building dev-lang/R-3.2.3 the errors begin on line 1733:

x86_64-apple-darwin15-gcc -I../../../../include -DNDEBUG -I../../../include -I../../../../src/include -DHAVE_CONFIG_H     -fPIC  -g -O2 -fobjc-exceptions  -c qdCocoa.m -o qdCocoa.o
In file included from /usr/include/os/object.h:75,
                 from /usr/include/dispatch/dispatch.h:48,
                 from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15,
                 from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13,
                 from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:55,
                 from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19,
                 from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:23,
                 from ../../../../include/R_ext/QuartzDevice.h:101,
                 from qdCocoa.h:24,
                 from qdCocoa.m:24:
/usr/include/objc/NSObject.h:22: error: expected ‘)’ before ‘instancetype’
/usr/include/objc/NSObject.h:36: error: expected ‘)’ before ‘instancetype’
/usr/include/objc/NSObject.h:38: error: expected ‘)’ before ‘instancetype’
/usr/include/objc/NSObject.h:60: error: expected ‘)’ before ‘instancetype’
/usr/include/objc/NSObject.h:66: error: expected ‘)’ before ‘instancetype’
/usr/include/objc/NSObject.h:67: error: expected ‘)’ before ‘instancetype’
/usr/include/objc/NSObject.h:68: error: expected ‘)’ before ‘instancetype’
Comment 1 Fabian Groffen gentoo-dev 2016-02-29 18:17:02 UTC
this seems to suggest you built some gcc, which one?
Comment 2 Fabian Groffen gentoo-dev 2016-02-29 18:25:29 UTC
I think we need dragonegg for this
Comment 3 * 2016-03-01 07:03:22 UTC
That would be the one in bug 574736. I also tried using clang explicitly using package.env but got the same error.
Comment 4 * 2016-03-03 08:12:37 UTC
Sorry, when I used clang explicitly, I didn't use it for Objective C. Doing that it works.

$ cat env/clang
CC=clang
CXX=clang++
OBJC=clang
OBJCXX=clang++

USE=lapack also works, for which it uses x86_64-apple-darwin15-gfortran.
Comment 5 Fabian Groffen gentoo-dev 2016-03-20 18:15:40 UTC
I've added OBJC and OBJCXX to the bootstrap script.  I don't quite know how to fix that without modifying your etc/portage/make.conf.

To complete fixing this bug, we need to get fortran support somehow working.  I think dragonegg would be the best way for that.
Comment 6 Larry the Git Cow gentoo-dev 2020-12-13 16:59:42 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a27553c3b1915174847f348f4e7b42f358308f5

commit 8a27553c3b1915174847f348f4e7b42f358308f5
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2020-12-13 16:59:30 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2020-12-13 16:59:30 +0000

    dev-lang/R: drop ~x64-macos keyword
    
    Closes: https://bugs.gentoo.org/575860
    Package-Manager: Portage-3.0.9, Repoman-3.0.2
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 dev-lang/R/R-3.4.1.ebuild    | 2 +-
 dev-lang/R/R-3.6.3-r1.ebuild | 2 +-
 dev-lang/R/R-4.0.2.ebuild    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)