Summary: | app-editors/emacs[aqua, gui]: failed build (could not use AppKit) | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | Sam James <sam> |
Component: | Prefix Support | Assignee: | Gentoo Prefix <prefix> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | 2046411367, gnu-emacs |
Priority: | Normal | Keywords: | PMASKED |
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | OS X | ||
URL: | https://gcc.gnu.org/bugzilla//show_bug.cgi?id=90707 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log |
Description
Sam James
![]() ![]() ![]() ![]() configure:10901: checking AppKit/AppKit.h usability configure:10901: x86_64-apple-darwin20-gcc -c -march=native -O2 -pipe -x objective-c -x objective-c conftest.c >&5 In file included from /Users/sam/Gentoo/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:5, from /Users/sam/Gentoo/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:10, from /Users/sam/Gentoo/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:10, from conftest.c:133: /Users/sam/Gentoo/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:19:21: error: unknown type name 'nullable' 19 | - (id)copyWithZone:(nullable NSZone *)zone; | ^~~~~~~~ /Users/sam/Gentoo/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:19:29: error: expected ')' before 'NSZone' 19 | - (id)copyWithZone:(nullable NSZone *)zone; | ^~~~~~~ | ) /Users/sam/Gentoo/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:25:28: error: unknown type name 'nullable' 25 | - (id)mutableCopyWithZone:(nullable NSZone *)zone; | ^~~~~~~~ /Users/sam/Gentoo/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:25:36: error: expected ')' before 'NSZone' 25 | - (id)mutableCopyWithZone:(nullable NSZone *)zone; | ^~~~~~~ | ) /Users/sam/Gentoo/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:32:4: error: unknown type name 'nullable' 32 | - (nullable instancetype)initWithCoder:(NSCoder *)coder; // NS_DESIGNATED_INITIALIZER | ^~~~~~~~ /Users/sam/Gentoo/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:32:12: error: expected ')' before 'id' 32 | - (nullable instancetype)initWithCoder:(NSCoder *)coder; // NS_DESIGNATED_INITIALIZER | ~ ^ | ) In file included from /Users/sam/Gentoo/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:5, from /Users/sam/Gentoo/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:10, from /Users/sam/Gentoo/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:10, from conftest.c:133: ---- It's an upstream bug in GCC; it needs nullable support for objc++. package.use.mask aqua in the macos/gcc profile? What is the last version/slot that can be compiled with USE="gui aqua"? (We know that emacs-24.2 and 24.4 worked at some point, see bug 444772 and 527104. After that, I haven't seen any reports if it is working or not.) Have you tried the live version 28.0.9999? One currently needs a Clang compiler to build any Aqua/Cocoa integration, and Clang compilers are sufficiently difficult to build at this point. So I frankly don't think we can do any gui integration except slang/curses. What about X11? Non-existent by default, relies on external XQuartz. I don't want to go that route of seeing if we can package XQuartz. I was asking because the question is whether we should package.use.mask "gui" or "aqua". x11-libs/* seem to be keyworded for *-macos though? Also, any idea about what timeframe we're talking, until aqua/cocoa support could be supported again? If masking the flag would result in dead code that won't be tested for several years, then I'd rather remove it altogether than carry it along. Ah, well some people apparently use emacs, and some people work on bringing Clang back in line, so I'd keep it for a while. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a01d3c656ea3016e7b09de8bb473938b421e558 commit 2a01d3c656ea3016e7b09de8bb473938b421e558 Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2020-11-29 20:46:51 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2020-11-29 20:49:28 +0000 profiles: Mask app-editors/emacs[aqua] on MacOS. Bug: https://bugs.gentoo.org/757300 Signed-off-by: Ulrich Müller <ulm@gentoo.org> profiles/prefix/darwin/macos/features/fsf-gcc-nold/package.use.mask | 5 +++++ 1 file changed, 5 insertions(+) seems sufficiently addressed for now |