From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: Build failure in nsterm.m Date: Tue, 29 Jun 2021 22:23:01 +0100 Message-ID: References: <0e7829db-19fc-36b3-8be5-1e582e2b9a95@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38620"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jun 29 23:23:50 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lyLCw-0009r0-Ey for ged-emacs-devel@m.gmane-mx.org; Tue, 29 Jun 2021 23:23:50 +0200 Original-Received: from localhost ([::1]:36164 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lyLCu-0005nZ-8A for ged-emacs-devel@m.gmane-mx.org; Tue, 29 Jun 2021 17:23:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33708) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lyLCI-00056V-TZ for emacs-devel@gnu.org; Tue, 29 Jun 2021 17:23:10 -0400 Original-Received: from outbound.soverin.net ([116.202.126.228]:47085) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lyLCG-0000ta-MI for emacs-devel@gnu.org; Tue, 29 Jun 2021 17:23:10 -0400 Original-Received: from smtp.soverin.net (unknown [10.10.3.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 59DF0940; Tue, 29 Jun 2021 21:23:04 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.138]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1625001783; bh=SLoPtTJJCahBLMG71TraBJ8V9V3Opl5X2BlfiAhqpm4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RWuWFXNzF8NZvCO6yCvHSqwHxR8PJEChLFQ+Jw2K+l0/DJ/bGqXrUUq5Jo3DCTtMp ueMnoNjgat3Jn8i5MKDu2DnifsvKSwD5XDfo1kWmJOqdRlxmeK4iUgmbYUw9Dve8iS LgOgJrarHbdRAhjn08A3MkWmX1dktDK48fsumP+MzvOM11SFxwwHEObymTJBuBJVXY J06moM/+8yU01WUB7ZajEL/Oj/b5kJPdmjWfPcEIr+ONzF6eyx5zxHLDK9FhPTH43H xG96AbhRZizv7b8W6MYlBX8Eyk1Y2ybJW0puHe7X7gJp/MNF8nYV0lUtrtE4R/joK3 syxB8H5mUCyDw== Original-Received: from alan by faroe.holly.idiocy.org with local (Exim 4.94.2) (envelope-from ) id 1lyLC9-002PLH-Sh; Tue, 29 Jun 2021 22:23:01 +0100 Mail-Followup-To: Alan Third , martin rudalics , emacs-devel Content-Disposition: inline In-Reply-To: <0e7829db-19fc-36b3-8be5-1e582e2b9a95@gmx.at> Received-SPF: pass client-ip=116.202.126.228; envelope-from=alan@idiocy.org; helo=outbound.soverin.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:271076 Archived-At: On Tue, Jun 29, 2021 at 10:28:42AM +0200, martin rudalics wrote: > Building master configured as > > "CFLAGS='-O0 -g3 -no-pie -std=gnu99' ../configure --with-gnutls=no --without-pop --without-harfbuzz --with-ns" > > currently fails here with > > ../../src/nsterm.m: In function ‘ns_relocate’: > ../../src/nsterm.m:514:54: error: stray ‘@’ in program > NSString *fixedPath = [NSString pathWithComponents:@[root, original]]; > ^ > ../../src/nsterm.m:514:60: warning: left-hand operand of comma expression has no effect [-Wunused-value] > NSString *fixedPath = [NSString pathWithComponents:@[root, original]]; > ^ > ../../src/nsterm.m:514:70: error: expected ‘:’ before ‘]’ token > NSString *fixedPath = [NSString pathWithComponents:@[root, original]]; > ^ > : > > Help appreciated, martin I've pushed a fix. I think this is a shorthand way of writing an ObjC array that GCC doesn't understand. I'm using a version of GNUstep built from git and I can no longer build Emacs with GCC at all, only clang, so these sorts of things slip through quite easily. I'm not sure why GCC doesn't work, I'm sure it's not the Emacs code that's at fault, so I have to assume that the GNUstep devs have given up waiting for GCC to catch up. -- Alan Third