Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: luchini@ic.ac.uk (Dr Marco Luchini)
Subject: OSF2.0 emacs has problems with byte-compile
Date: 19 Apr 94 15:25:51	[thread overview]
Message-ID: <LUCHINI.94Apr19152551@femto.ic.ac.uk> (raw)

OK,

I've narrowed the problem down to a much more basic one.  I have
singularly failed to byte-compile almost any elisp code using the emacs
with OSF2.0.  Specifically:

[femto|77> emacs -batch -q -f batch-byte-compile prefix-regn.el
Compiling /home/luchini/lisp/prefix-regn.el...
Compiling /home/luchini/lisp/prefix-regn.el (prefix-region)...
>>Error occurred processing prefix-regn.el: Wrong type argument ((symbolp 0))
Wrong type argument: symbolp, 0

[femto|78> which emacs
/usr/bin/emacs
[femto|79> more prefix-regn.el 
;;; prefix-rgn.el
;;;
;;; Obtained from the elisp archive at tut.cis.ohio-state.edu on Sep. 19, 1991.

(provide 'prefix-region)
(defun prefix-region (begin end prefix)
   "Prefix every line in the region between BEGIN and END with the string PREFIX
."
   (interactive "r\nsPrefix: ")
   (save-excursion
      (save-restriction
         (narrow-to-region begin end)
         (goto-char (point-min))
         (while (re-search-forward "^" nil t)
            (replace-match prefix t t)))))

prefix-region.el is the smallest lisp file which I could find which does
this.  The same error (Wrong type argument: symbolp,0) occurs with every
other bit of elisp I try to byte-compile.  The debugger shows it
occurring in different routines though.

(a)  Can anybody reproduce this or am I having nightmares?

(b)  Does anybody know what has happened to emacs?  

It has just occurred to me to try byte-compiling the elisp files that
come with the distribution.  The result is in two categories:

(1) 
[femto|115> emacs -batch -q -f batch-byte-compile /usr/lib/emacs/lisp/yow.el
Compiling /usr/lib/emacs/lisp/yow.el...
Compiling /usr/lib/emacs/lisp/yow.el (yow)...
>>Error occurred processing /usr/lib/emacs/lisp/yow.el: Wrong type argument ((symbolp 0))
Wrong type argument: symbolp, 0

or (2)
[femto|120> emacs -batch -q -f batch-byte-compile /usr/lib/emacs/lisp/fortran.el 
Compiling /usr/lib/emacs/lisp/fortran.el...
Compiling /usr/lib/emacs/lisp/fortran.el (fortran-mode)...
Fatal error (11).Segmentation fault (core dumped)

It therefore seems that the elc files were not produced with the emacs
that gets distributed.  It is possible that they are still the ones
produced by OSF1.2 where everything was working OK.

Or is there something deeply screwed up with my installation?


Thanks,							Marco
--

-------------------------------------------------------------------------
Marco Luchini                            Internet : m.luchini@ic.ac.uk
Department of Mathematics                Telephone: +44 71 589 5111 x5765     
Imperial College                               Fax: +44 71 225 8361
London SW7 2BZ, UK                             
-------------------------------------------------------------------------


                 reply	other threads:[~1994-04-19 19:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox