From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.devel Subject: Re: macOS/GCC support policy Date: Fri, 2 Aug 2019 16:55:02 +0200 Message-ID: References: <20190718192321.65684-1-pcr910303@icloud.com> <20190719041654.88561-1-pcr910303@icloud.com> <83pnm5t8ui.fsf@gnu.org> <20190729202649.GA89035@breton.holly.idiocy.org> <0A9ED54B-E381-44AA-9512-40CC0481F097@icloud.com> <20190731195633.GA5520@breton.holly.idiocy.org> <8336ilipe2.fsf@gnu.org> <20190801213958.GA30753@breton.holly.idiocy.org> <838sscgimf.fsf@gnu.org> <83sgqjg4z1.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="242619"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Alan Third , pcr910303@icloud.com, Emacs developers To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 02 16:55:45 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1htYy8-0010wU-JE for ged-emacs-devel@m.gmane.org; Fri, 02 Aug 2019 16:55:44 +0200 Original-Received: from localhost ([::1]:35440 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htYy7-0005wC-Hz for ged-emacs-devel@m.gmane.org; Fri, 02 Aug 2019 10:55:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44656) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htYxn-0005us-Qu for emacs-devel@gnu.org; Fri, 02 Aug 2019 10:55:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1htYxm-0007sT-MN for emacs-devel@gnu.org; Fri, 02 Aug 2019 10:55:23 -0400 Original-Received: from mail-ot1-x333.google.com ([2607:f8b0:4864:20::333]:37519) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1htYxe-0007ow-OY; Fri, 02 Aug 2019 10:55:14 -0400 Original-Received: by mail-ot1-x333.google.com with SMTP id s20so12923419otp.4; Fri, 02 Aug 2019 07:55:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=E6ILMQRphAXNK1lzbaQN2FJsIGWHqYj0i3pmYGa43N0=; b=pPFnrw7FATV4XVHmGKQvjUoxf3q4AoW+4OJt7P7LjFqVWLihgnCYFoWq+KRxl1ZJXr Ik+5fTPkOBZI4cpjAPPwF95UWXBqgss5LGsY3hM7bBPoQh2Qb5YvTraBtuwogiX22W1o L06aWKf0HjmpNJnMpEZcjUL5gFdL15/YzUwoM+Q+8mbXutKB+rq9sLreRItbjWrsBrkT C7bueCtFs0czApOcRwfHhvozfnFplkmoNfBzTVqMNtC2r1RvXTqTxjO5/jDCrntxntT9 ZGLVNJfRH/sk1mTb5VaOlnApP6AlE/upeERRvv3NfKQoqb6HTjuTCDdvPsZf4A7Yu75Y aSJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=E6ILMQRphAXNK1lzbaQN2FJsIGWHqYj0i3pmYGa43N0=; b=TDA48LlVgS46yk4DgtSOzUxacmxlWZQ8JeYgB05d/Y4AQpD5maEpkOGLiZl6NCxyfl 9bwqAKz+C4lo/CQm5QeDZ6GgJhrbBpsftIbqtgY/rGVRBJbJROicgzT92FMpaMyOWrPr XIi25f0g3GLQJU8jUv92xUbh7jLUeZKE5p2yvJ2w8Itaj6iYY9rLqYcK6UUfIKBGSHHo H2kfe3f2c2R0oNoGCsaVc0NlYtgSWw/cXF3qYERgEx00NldPTsc+H6g/oBHMKh4R/w0B iUdWFRlwPbvZFNhT8weksPqNFUfOmJhg9Su5doltgjoRb/zq2tD/5WrEC78MzzW8CE9b E99g== X-Gm-Message-State: APjAAAXiPhQeuQ7KkUCUMaFco9noKB+KVA1QFmN9xnlZejKOYhCJM8Gh 8XyYZV/eeWWgfSk+WlnP9yLLXAdiuUML+xdpCpmIZNE8vmY= X-Google-Smtp-Source: APXvYqz2XYkkORUyDFl5gngljIN/FDr5aFdptCQxEmNezTSKyszSl1kLAy66+QroAG3H1ff+baN9v1XWISyiQXa8+RM= X-Received: by 2002:a9d:529:: with SMTP id 38mr101428422otw.145.1564757713457; Fri, 02 Aug 2019 07:55:13 -0700 (PDT) In-Reply-To: <83sgqjg4z1.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::333 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:239134 Archived-At: Am Fr., 2. Aug. 2019 um 13:51 Uhr schrieb Eli Zaretskii : > > > From: Philipp Stephani > > Date: Fri, 2 Aug 2019 12:08:35 +0200 > > Cc: Alan Third , pcr910303@icloud.com, > > Emacs developers > > > > > What exactly prevents building with GCC on macOS? > > > > > > > I haven't investigated in detail, but when I try to run configure with > > GCC 9 from Homebrew, I get the error message > > > > 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'. > > Thanks. It would be good if someone could investigate what is the > problem here (and any other problems, if there are any). Excerpt from config.log: configure:10941: checking AppKit/AppKit.h usability configure:10941: gcc-9 -c -g3 -O1 -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer -x objective-c -x objective-c conftest.c >&5 In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/os/object.h:101, from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/dispatch/dispatch.h:48, from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20, from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:17, from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60, from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6, from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:10, from conftest.c:142: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/objc/NSObject.h:22:4: error: unknown type name 'instancetype' 22 | - (instancetype)self; | ^~~~~~~~~~~~ (lots of similar errors follow) This indicates that GCC treats the header as C instead of Objective C. Which is interesting because -x objective-c is given explicitly. Does GCC need some other flag to force compilation as Objective C?