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:59:18 +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="266899"; 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 17:00:52 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 1htZ35-0017BH-C5
for ged-emacs-devel@m.gmane.org; Fri, 02 Aug 2019 17:00:51 +0200
Original-Received: from localhost ([::1]:35474 helo=lists1p.gnu.org)
by lists.gnu.org with esmtp (Exim 4.86_2)
(envelope-from )
id 1htZ34-0000Ki-DF
for ged-emacs-devel@m.gmane.org; Fri, 02 Aug 2019 11:00:50 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45674)
by lists.gnu.org with esmtp (Exim 4.86_2)
(envelope-from ) id 1htZ1p-0007Zb-0q
for emacs-devel@gnu.org; Fri, 02 Aug 2019 10:59:34 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1htZ1n-0004Q0-Se
for emacs-devel@gnu.org; Fri, 02 Aug 2019 10:59:32 -0400
Original-Received: from mail-ot1-x32b.google.com ([2607:f8b0:4864:20::32b]:44221)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
(Exim 4.71) (envelope-from )
id 1htZ1m-0004OG-B2; Fri, 02 Aug 2019 10:59:30 -0400
Original-Received: by mail-ot1-x32b.google.com with SMTP id b7so28248695otl.11;
Fri, 02 Aug 2019 07:59:30 -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=tj4+g5R+mdS8bGPgkbl4f5cCrPk7T9fhSwXDtD/5Boc=;
b=SQW4OYHlet2sXJZFajXT+G/H5WCvW7fugOTsM66xff+wESKwR9P7QPOL16x0exwplw
xo6SwXbbQT8db23fVIxdeuCctPXf59sbnr5AaC0UForEIBk/yFXfIlJO9oLXrJsihBWD
6LwFsDThjE9t21CTBPQGZXjbHlwiPLxTI8TVzAxWwLUtB2gAmTcrbxZL/HRFIGABlfoB
d2rG0qzijPt+9tPVrhA361wXVG5X48T+J1QzOIj/RXktzlUZjElziNITCc2uESaitD8w
LMSDBx7zqeo5YNL8m00bzFdZsLCcuDrqnZDwfhug1CA+Lz+Lk4eH9KnZROu8jH2ighAs
0t/w==
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=tj4+g5R+mdS8bGPgkbl4f5cCrPk7T9fhSwXDtD/5Boc=;
b=nBTnTN/AmamLpInPo1fiIhQ1GlMS8VC5CFDjG4NAnF+omsi+tScYnyGU7yhWzoHGwc
9RmedTVKAI1J3Oq/axaRKUdvS5ETeKk5K7FA+Rb0L/Xn1KJnwoVQsFO/N8oJM5aFzAeo
BC77VRO7hAnJqsjVqUNQAw6xtRMeeSoaRLQKknCkAtkngRXgcyT6IjvaT4U1NohuI/96
6V1YaQew5PAlOuf2QCuFVu3HScA5nZGYlL//8mq9UrIRJ1CRs3w6xfOd3Ww0+SsORo/U
r2AAqv1uXJ6/pL/trZaw0JzjpxO0wHsP5XuM+PrJP0NhKAcYBDAwjvtZ0kKwAD22Z6dK
B7pg==
X-Gm-Message-State: APjAAAVhzQ/A5zbO3S82OXKezwnMEiEjBbq2phllpugFA2RgwXGAYS31
VqmS/diHhfnqkNXDkOKhl0vd0C9iwBA2bDtYnEvk0hg6a3s=
X-Google-Smtp-Source: APXvYqy+nt/CmAig9iVM8X8p19WWjqQKeuwb4NjSwsMBrM9PoG4fn871mUufY0mDRuizIoDknzNDo4p7tWhysFRgUgA=
X-Received: by 2002:a9d:6194:: with SMTP id g20mr30410242otk.149.1564757969276;
Fri, 02 Aug 2019 07:59:29 -0700 (PDT)
In-Reply-To:
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
recognized.
X-Received-From: 2607:f8b0:4864:20::32b
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:239136
Archived-At:
Am Fr., 2. Aug. 2019 um 16:55 Uhr schrieb Philipp Stephani
:
>
> 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?
The behavior difference is indeed trivial to reproduce:
p@p:/tmp$ cat appkit.c
#include
p@p:/tmp$ clang -c -x objective-c appkit.c 2> /dev/null ; echo $?
0
p@p:/tmp$ gcc-9 -c -x objective-c appkit.c 2> /dev/null ; echo $?
1
Without the redirection GCC prints tons of similar errors.