Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 757300 - app-editors/emacs[aqua, gui]: failed build (could not use AppKit)
Summary: app-editors/emacs[aqua, gui]: failed build (could not use AppKit)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL: https://gcc.gnu.org/bugzilla//show_bu...
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2020-11-28 01:21 UTC by Sam James
Modified: 2021-08-29 13:36 UTC (History)
2 users (show)

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


Attachments
build.log (file_757300.txt,10.69 KB, text/plain)
2020-11-28 01:21 UTC, Sam James
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-11-28 01:21:03 UTC
Created attachment 675460 [details]
build.log

checking AppKit/AppKit.h usability...
no
checking AppKit/AppKit.h presence... yes
configure: WARNING: AppKit/AppKit.h: present but cannot be compiled
configure: WARNING: AppKit/AppKit.h:     check for missing prerequisite headers?
configure: WARNING: AppKit/AppKit.h: see the Autoconf documentation
configure: WARNING: AppKit/AppKit.h:     section "Present But Cannot Be Compiled"
configure: WARNING: AppKit/AppKit.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-gnu-emacs@gnu.org ##
configure: WARNING:     ## ------------------------------------ ##
checking for AppKit/AppKit.h... no
configure: error: The include files (AppKit/AppKit.h etc) that
are required for a Nextstep build are missing or cannot be compiled.
Either fix this, or re-configure with the option '--without-ns'.

!!! Please attach the following file when seeking support:
!!! /Users/sam/Gentoo/var/tmp/portage/app-editors/emacs-27.1-r2/work/emacs-27.1/config.log
 * ERROR: app-editors/emacs-27.1-r2::gentoo_prefix failed (configure phase):
 *   econf failed

----
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-11-28 01:22:28 UTC
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++.
Comment 2 Fabian Groffen gentoo-dev 2020-11-29 13:33:50 UTC
package.use.mask aqua in the macos/gcc profile?
Comment 3 Ulrich Müller gentoo-dev 2020-11-29 14:43:14 UTC
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?
Comment 4 Fabian Groffen gentoo-dev 2020-11-29 14:47:53 UTC
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.
Comment 5 Ulrich Müller gentoo-dev 2020-11-29 14:53:43 UTC
What about X11?
Comment 6 Fabian Groffen gentoo-dev 2020-11-29 15:00:05 UTC
Non-existent by default, relies on external XQuartz.  I don't want to go that route of seeing if we can package XQuartz.
Comment 7 Ulrich Müller gentoo-dev 2020-11-29 15:34:03 UTC
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.
Comment 8 Fabian Groffen gentoo-dev 2020-11-29 15:46:51 UTC
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.
Comment 9 Larry the Git Cow gentoo-dev 2020-11-29 20:49:33 UTC
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(+)
Comment 10 Fabian Groffen gentoo-dev 2021-08-29 13:36:13 UTC
seems sufficiently addressed for now