emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* trouble building org-mode, how to debug emacs -batch
@ 2012-11-09  0:24 Kevin Buchs
  2012-11-09 15:47 ` Achim Gratz
  2012-11-09 16:14 ` Nick Dokos
  0 siblings, 2 replies; 4+ messages in thread
From: Kevin Buchs @ 2012-11-09  0:24 UTC (permalink / raw)
  To: Toby Cubitt, emacs-orgmode

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

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

#

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: trouble building org-mode, how to debug emacs -batch
  2012-11-09  0:24 trouble building org-mode, how to debug emacs -batch Kevin Buchs
@ 2012-11-09 15:47 ` Achim Gratz
  2012-11-09 16:15   ` Kevin Buchs
  2012-11-09 16:14 ` Nick Dokos
  1 sibling, 1 reply; 4+ messages in thread
From: Achim Gratz @ 2012-11-09 15:47 UTC (permalink / raw)
  To: emacs-orgmode

Kevin Buchs writes:
> 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?

It seems that "emacs" is some kind of alias, script or wrapper that doesn't
really behave like emacs.  Try to find where emacs is installed (most
likely /usr/bin/emacs or /usr/local/bin/emacs) and try that instead.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Wavetables for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: trouble building org-mode, how to debug emacs -batch
  2012-11-09  0:24 trouble building org-mode, how to debug emacs -batch Kevin Buchs
  2012-11-09 15:47 ` Achim Gratz
@ 2012-11-09 16:14 ` Nick Dokos
  1 sibling, 0 replies; 4+ messages in thread
From: Nick Dokos @ 2012-11-09 16:14 UTC (permalink / raw)
  To: Kevin Buchs; +Cc: emacs-orgmode

Kevin Buchs <kevin.buchs.junk@gmail.com> 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
> 
> #
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: trouble building org-mode, how to debug emacs -batch
  2012-11-09 15:47 ` Achim Gratz
@ 2012-11-09 16:15   ` Kevin Buchs
  0 siblings, 0 replies; 4+ messages in thread
From: Kevin Buchs @ 2012-11-09 16:15 UTC (permalink / raw)
  To: Achim Gratz; +Cc: emacs-orgmode

Achim,

Indeed, that was the problem. Thanks so much!

- Kevin

On Fri, Nov 9, 2012 at 9:47 AM, Achim Gratz <Stromeko@nexgo.de> wrote:
> It seems that "emacs" is some kind of alias, script or wrapper that doesn't
> really behave like emacs.  Try to find where emacs is installed (most
> likely /usr/bin/emacs or /usr/local/bin/emacs) and try that instead.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-11-09 16:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-09  0:24 trouble building org-mode, how to debug emacs -batch Kevin Buchs
2012-11-09 15:47 ` Achim Gratz
2012-11-09 16:15   ` Kevin Buchs
2012-11-09 16:14 ` Nick Dokos

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).