From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#9960: Compiling Emacs trunk with MSVC Date: Sat, 05 Nov 2011 21:33:51 +0200 Message-ID: <83d3d6jrds.fsf@gnu.org> References: <83sjy5279e.fsf@gnu.org> <8339e2lsu7.fsf@gnu.org> <83zkgakdby.fsf@gnu.org> <4EB5320F.5090800@gmail.com> <83vcqyk8k3.fsf@gnu.org> <4EB540F4.7080106@gmail.com> <83r51mk62f.fsf@gnu.org> <86wrbeo7p5.fsf@googlemail.com> <83k47ejyyt.fsf@gnu.org> <86sjm2o559.fsf@googlemail.com> <86obwqo2hl.fsf@googlemail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1320521796 28816 80.91.229.12 (5 Nov 2011 19:36:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 5 Nov 2011 19:36:36 +0000 (UTC) Cc: fabrice.popineau@supelec.fr, 9960@debbugs.gnu.org To: Christoph Scholtes Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 05 20:36:26 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RMm2T-0000bJ-AN for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Nov 2011 20:36:25 +0100 Original-Received: from localhost ([::1]:51764 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMm2S-0005pd-Sr for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Nov 2011 15:36:24 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43982) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMm2Q-0005pX-4N for bug-gnu-emacs@gnu.org; Sat, 05 Nov 2011 15:36:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RMm2O-0002vv-Ry for bug-gnu-emacs@gnu.org; Sat, 05 Nov 2011 15:36:22 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34307) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMm2O-0002vp-QI for bug-gnu-emacs@gnu.org; Sat, 05 Nov 2011 15:36:20 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RMm50-0005Lp-8D for bug-gnu-emacs@gnu.org; Sat, 05 Nov 2011 15:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Nov 2011 19:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9960 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9960-submit@debbugs.gnu.org id=B9960.132052190820530 (code B ref 9960); Sat, 05 Nov 2011 19:39:02 +0000 Original-Received: (at 9960) by debbugs.gnu.org; 5 Nov 2011 19:38:28 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RMm4R-0005L5-Nj for submit@debbugs.gnu.org; Sat, 05 Nov 2011 15:38:28 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RMm4M-0005Kt-Hg for 9960@debbugs.gnu.org; Sat, 05 Nov 2011 15:38:23 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LU700600D2IKR00@a-mtaout22.012.net.il> for 9960@debbugs.gnu.org; Sat, 05 Nov 2011 21:35:39 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.228.70.69]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LU70051VD3DB9L0@a-mtaout22.012.net.il>; Sat, 05 Nov 2011 21:35:39 +0200 (IST) In-reply-to: <86obwqo2hl.fsf@googlemail.com> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 05 Nov 2011 15:39:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:53563 Archived-At: > From: Christoph Scholtes > Cc: fabrice.popineau@supelec.fr, 9960@debbugs.gnu.org > Date: Sat, 05 Nov 2011 12:20:22 -0600 > > nmake does not like the relative path invocation of make-docfile with > forward slashes (makefile.w32-in, l.235) > > "../lib-src/$(BLD)/make-docfile" -d . -g $(SOME_MACHINE_OBJECTS) $(obj) > gl-tmp Why?? even cmd.exe is in peace with forward slashes, as long as they are in quotes. What is the error message? are you sure the problem is with forward slashes, and not with something else? If the problem is with forward slashes, how come invocations of make-docfile and other commands in lib-src/makefile.w32-in, which also use forward slashes, did work? Are you sure you are using nmake that came with the version of Studio that you are using to compile, and not some ancient version? > If I hardcode this to > > "..\\lib-src\\obj\\i386\\make-docfile" -d . -g $(SOME_MACHINE_OBJECTS) > $(obj) > gl-tmp > > it works. We might have to use forward slashes here and change BLD accordingly? That way lies madness. This worked with nmake for ages. We cannot possibly change all slashes in all the makefile's, I don't even know any portable method of doing that, without breaking builds with a Unixy shell, which we also support. We must to get to the bottom of this problem. > d:\devel\emacs\emacs-bzr\trunk_jenkins\src\lisp.h(2499) : error C2061: syntax er > ror : identifier 'cons_to_signed' > d:\devel\emacs\emacs-bzr\trunk_jenkins\src\lisp.h(2499) : error C2059: syntax er > ror : ';' > d:\devel\emacs\emacs-bzr\trunk_jenkins\src\lisp.h(2499) : error C2059: syntax er > ror : 'type' Is the problem with Lisp_Object or with intmax_t? (You can find out if you change each one to some standard type, like `int'.) > emacs.c(537) : error C2059: syntax error : '<<' > emacs.c(537) : error C2059: syntax error : 'constant' > emacs.c(537) : error C2059: syntax error : ')' > emacs.c(545) : error C2059: syntax error : '<<' > emacs.c(545) : error C2059: syntax error : 'constant' > emacs.c(545) : error C2059: syntax error : ')' > emacs.c(1992) : error C2059: syntax error : '<<' > emacs.c(1992) : error C2059: syntax error : 'constant' > emacs.c(1992) : error C2059: syntax error : ')' > emacs.c(2130) : error C2059: syntax error : '<<' > emacs.c(2130) : error C2059: syntax error : 'constant' > emacs.c(2130) : error C2059: syntax error : ')' > emacs.c(2337) : error C2059: syntax error : '<<' > emacs.c(2337) : error C2059: syntax error : 'constant' > emacs.c(2337) : error C2059: syntax error : ')' > emacs.c(2352) : error C2059: syntax error : '<<' > emacs.c(2352) : error C2059: syntax error : 'constant' > emacs.c(2352) : error C2059: syntax error : ')' These all are about DEFUN. The only thing I changed in the definition provided by Fabrice was to add "static" here: +#define DEFUN(lname, fnname, sname, minargs, maxargs, intspec, doc) \ + Lisp_Object fnname DEFUN_ARGS_ ## maxargs ; \ + static DECL_ALIGN (struct Lisp_Subr, sname) = \ ^^^^^^ Please remove the "static" part and see if that helps. > I am starting to wonder how Fabrice ever got this to compile. Are all of > these errors due to changes made between his original patch and the > current trunk state? Yes. You now have an idea how many water goes under the bridge in one year of Emacs development.