From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Herbert J. Skuhra" Newsgroups: gmane.emacs.devel Subject: Re: USE_LSB_TAG not supported on this platform Date: Tue, 09 Feb 2016 00:01:17 +0100 Message-ID: <867fie4xj6.wl-herbert@mailbox.org> References: <86powcjei0.wl-herbert@mailbox.org> <56B3F962.8010203@cs.ucla.edu> <86mvrejegc.wl-herbert@mailbox.org> <86si15ygd9.wl-herbert@mailbox.org> <85twlksgds.fsf@iznogoud.viz> <8660y0nqze.wl-herbert@mailbox.org> <56B8F03C.3010709@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1454972516 944 80.91.229.3 (8 Feb 2016 23:01:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Feb 2016 23:01:56 +0000 (UTC) Cc: "C. Baxter" , emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 09 00:01:42 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aSuoO-0007ia-0Y for ged-emacs-devel@m.gmane.org; Tue, 09 Feb 2016 00:01:40 +0100 Original-Received: from localhost ([::1]:49640 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSuoN-0004nl-Db for ged-emacs-devel@m.gmane.org; Mon, 08 Feb 2016 18:01:39 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36213) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSuo9-0004nL-R9 for emacs-devel@gnu.org; Mon, 08 Feb 2016 18:01:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSuo6-0000aL-Je for emacs-devel@gnu.org; Mon, 08 Feb 2016 18:01:25 -0500 Original-Received: from mx1.mailbox.org ([80.241.60.212]:44714) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSuo6-0000a8-44 for emacs-devel@gnu.org; Mon, 08 Feb 2016 18:01:22 -0500 Original-Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 2881243BFE; Tue, 9 Feb 2016 00:01:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= content-type:content-type:mime-version:user-agent:references :in-reply-to:subject:subject:from:from:message-id:date:date :received; s=mail20150812; t=1454972478; bh=fncpv6iWhOZJWrLkvlCW BHVrariwQcjR4Ghba+fimAs=; b=IiW+k3SRNKKU2SI1F7fHF8puXpZPWAgIINVq n1JSimCPiuj+esCF5w9yYWiYtnK9RYbxq+IsLNRQlU3abtghT2hgLo8JOJWq4aMi hGYotLGxiRLZa9Ej5uveuR2DgBBhkZwLQfHxm73MIBsSGVfdITcEVRtCUUAfGdMX o+kpM0idYAL3nSywdHFZmcLwMrfruqPeMVydxUrfbHSBHlyqBkQPY5k5JoVD9837 1m8G4e1ai1v0p8vL+wshUBIwDhYlMFHIt+CxfzuCszcK/lyNHI+bh1R71V7jmHsI bFChZplD9TiEqePELURZk1SdJMYeoig54RahPCCUyQvECLV2+A== X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp1.mailbox.org ([80.241.60.240]) by gerste.heinlein-support.de (gerste.heinlein-support.de [91.198.250.173]) (amavisd-new, port 10030) with ESMTP id aXXe4XIKEv6V; Tue, 9 Feb 2016 00:01:18 +0100 (CET) In-Reply-To: <56B8F03C.3010709@cs.ucla.edu> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/25.1 Mule/6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 80.241.60.212 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:199564 Archived-At: On Mon, 08 Feb 2016 20:45:00 +0100, Paul Eggert wrote: > > On 02/07/2016 01:35 PM, Herbert J. Skuhra wrote: > > On FreeBSD 11-CURRENT i386 (r295345) > > > > - the emacs-devel port compiles with gcc only (tested with USE_GCC=5) > > - even emacs-25 does not build with clang > > - the breakage starts also with d6585a9 (using gcc5) > > Thanks for pointing out these problems. Since this is a regression in > emacs-25 we need to fix it there. Please try the latest version of > emacs-25, which contains the attached patch. If this works it will be > merged into master. It should work with clang as well as with GCC. GCC 5 works but clang still fails. If I add #define alignas _Alignas to src/lisp.h the build succeeds. ---------- CC vm-limit.o In file included from vm-limit.c:21: ./lisp.h:266:3: error: "alignas not defined" # error "alignas not defined" ^ In file included from vm-limit.c:21: In file included from ./lisp.h:741: ./globals.h:1046:29: error: expected parameter declarator struct Lisp_Symbol alignas (GCALIGNMENT) lispsym[1081]; ^ ./lisp.h:228:21: note: expanded from macro 'GCALIGNMENT' #define GCALIGNMENT 8 ^ In file included from vm-limit.c:21: In file included from ./lisp.h:741: ./globals.h:1046:29: error: expected ')' ./lisp.h:228:21: note: expanded from macro 'GCALIGNMENT' #define GCALIGNMENT 8 ^ ./globals.h:1046:28: note: to match this '(' struct Lisp_Symbol alignas (GCALIGNMENT) lispsym[1081]; ^ ./globals.h:1046:42: error: expected function body after function declarator struct Lisp_Symbol alignas (GCALIGNMENT) lispsym[1081]; ^ In file included from vm-limit.c:21: ./lisp.h:858:10: error: use of undeclared identifier 'lispsym' return lisp_h_XSYMBOL (a); ^ ./lisp.h:346:20: note: expanded from macro 'lisp_h_XSYMBOL' + (char *) lispsym)) ^ ./lisp.h:1105:63: error: use of undeclared identifier 'lispsym' Lisp_Object a = XIL (TAG_SYMOFFSET ((char *) sym - (char *) lispsym)); ^ ./lisp.h:719:53: note: expanded from macro 'TAG_SYMOFFSET' #define TAG_SYMOFFSET(offset) TAG_PTR (Lisp_Symbol, offset) ^ ./lisp.h:714:18: note: expanded from macro 'TAG_PTR' ? (intptr_t) (ptr) + (tag) \ ^ ./lisp.h:1105:63: error: use of undeclared identifier 'lispsym' ./lisp.h:719:53: note: expanded from macro 'TAG_SYMOFFSET' #define TAG_SYMOFFSET(offset) TAG_PTR (Lisp_Symbol, offset) ^ ./lisp.h:715:66: note: expanded from macro 'TAG_PTR' : (EMACS_INT) (((EMACS_UINT) (tag) << VALBITS) + (uintptr_t) (ptr))) ^ ./lisp.h:1113:28: error: use of undeclared identifier 'lispsym' return make_lisp_symbol (lispsym + index); ^ ./lisp.h:1573:22: error: use of undeclared identifier 'lispsym' enum { NIL_IS_ZERO = XLI_BUILTIN_LISPSYM (iQnil) == 0 }; ^ ./lisp.h:724:69: note: expanded from macro 'XLI_BUILTIN_LISPSYM' #define XLI_BUILTIN_LISPSYM(iname) TAG_SYMOFFSET ((iname) * sizeof *lispsym) ^ ./lisp.h:719:53: note: expanded from macro 'TAG_SYMOFFSET' #define TAG_SYMOFFSET(offset) TAG_PTR (Lisp_Symbol, offset) ^ ./lisp.h:714:18: note: expanded from macro 'TAG_PTR' ? (intptr_t) (ptr) + (tag) \ ^ ./lisp.h:1573:22: error: use of undeclared identifier 'lispsym' ./lisp.h:724:69: note: expanded from macro 'XLI_BUILTIN_LISPSYM' #define XLI_BUILTIN_LISPSYM(iname) TAG_SYMOFFSET ((iname) * sizeof *lispsym) ^ ./lisp.h:719:53: note: expanded from macro 'TAG_SYMOFFSET' #define TAG_SYMOFFSET(offset) TAG_PTR (Lisp_Symbol, offset) ^ ./lisp.h:715:66: note: expanded from macro 'TAG_PTR' : (EMACS_INT) (((EMACS_UINT) (tag) << VALBITS) + (uintptr_t) (ptr))) ^ ./lisp.h:1581:3: error: bit-field '_gl_verify_error_if_negative' has negative width (-1) verify (NIL_IS_ZERO); ^ ../lib/verify.h:251:19: note: expanded from macro 'verify' #define verify(R) _GL_VERIFY (R, "verify (" #R ")") ^ ../lib/verify.h:211:8: note: expanded from macro '_GL_VERIFY' [_GL_VERIFY_TRUE (R, DIAGNOSTIC)] ^ ../lib/verify.h:176:15: note: expanded from macro '_GL_VERIFY_TRUE' (!!sizeof (_GL_VERIFY_TYPE (R, DIAGNOSTIC))) ^ ../lib/verify.h:196:27: note: expanded from macro '_GL_VERIFY_TYPE' struct { unsigned int _gl_verify_error_if_negative: (R) ? 1 : -1; } ^ 11 errors generated. Makefile:377: recipe for target 'vm-limit.o' failed gmake[1]: *** [vm-limit.o] Error 1 gmake[1]: Leaving directory '/usr/home/herbert/source/emacs/src' Makefile:394: recipe for target 'src' failed gmake: *** [src] Error 2 ---------- -- Herbert