From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: trouble building org-mode, how to debug emacs -batch Date: Fri, 09 Nov 2012 11:14:05 -0500 Message-ID: <27608.1352477645@alphaville> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:37180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWrDl-0007xs-FH for emacs-orgmode@gnu.org; Fri, 09 Nov 2012 11:14:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TWrDh-0004mN-Fe for emacs-orgmode@gnu.org; Fri, 09 Nov 2012 11:14:17 -0500 Received: from g4t0014.houston.hp.com ([15.201.24.17]:10858) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWrDh-0004Zc-8h for emacs-orgmode@gnu.org; Fri, 09 Nov 2012 11:14:13 -0500 In-Reply-To: Message from Kevin Buchs of "Thu, 08 Nov 2012 18:24:27 CST." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Kevin Buchs Cc: emacs-orgmode@gnu.org Kevin Buchs wrote: > I am stuck, so I would appreciate some pointers on debugging. I've got > the make transcript below and then my further tests on emacs -batch, > where I always get a return message "End of file during parsing". How > can I debug this? > > (For completeness I included the portion of my local.mk which changed > from the default further below -- but I've proved to myself that this > isn't the problem - it is emacs that is unhappy). > > teebo$ make compile > make -C doc clean; make -C lisp clean; > make[1]: Entering directory `/users/buchs/src/org-mode/doc' > rm -f org *.pdf *.html *_letter.tex org-version.inc \ > *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.pg *.pgs \ > *.toc *.tp *.tps *.vr *.vrs *.log *.html *.ps > make[1]: Leaving directory `/users/buchs/src/org-mode/doc' > make[1]: Entering directory `/users/buchs/src/org-mode/lisp' > rm -f org-version.el org-loaddefs.el org-version.elc org-loaddefs.elc > org-install.elc > rm -f *.elc > make[1]: Leaving directory `/users/buchs/src/org-mode/lisp' > make -C lisp compile > make[1]: Entering directory `/users/buchs/src/org-mode/lisp' > rm -f org-version.el org-loaddefs.el org-version.elc org-loaddefs.elc > org-install.elc > org-version: 7.9.2 (release_7.9.2-570-gc149e04a) > End of file during parsing > make[1]: *** [org-version.el] Error 255 > make[1]: Leaving directory `/users/buchs/src/org-mode/lisp' > make: *** [compile] Error 2 > > > teebo$ emacs -batch --eval '(add-to-list '"'"'load-path ".")' > End of file during parsing > Try using the full pathname to your emacs: /usr/local/bin/emacs -batch ... or whatever is appropriate in your case. You may be picking up a wrong emacs. Try also -Q: -batch implies -q but it might be a problem in the site-start.el stuff. Finally, --debug-init will probably not help in this case, but you might try it in any case before giving up and rebuilding/reinstalling emacs (unless somebody has a better idea?) Nick > teebo$ emacs -batch --eval '(message "hello world")' > End of file during parsing > > teebo$ emacs -batch --eval '(+ 4 5)' > End of file during parsing > > teebo$ cat local.mk > ##-8<------------------------------------------------------------------- > ## CHECK AND ADAPT THE FOLLOWING DEFINITIONS > ##---------------------------------------------------------------------- > > # Name of your emacs binary > EMACS = emacs > > # Where local software is found > prefix = /users/buchs > > # Where local lisp files go. > lispdir= $(prefix)/lib/emacs/org-mode > > # Where local data files go. > datadir = $(prefix)/lib/emacs/org-mode/etc > > # Where info files go. > infodir = $(prefix)/lib/emacs/info > > # >