I'm using xemacs 21.5.18 and I get an error when trying to
compile cedet-1.0pre3.
...
Generating autoloads for wisent/wisent.el...
Saving
file /home/jpschewe/.xemacs/cedet-1.0pre3/semantic/semantic-loaddefs.el...
Wrote /home/jpschewe/.xemacs/cedet-1.0pre3/semantic/semantic-loaddefs.el
Wrote /home/jpschewe/.xemacs/cedet-1.0pre3/semantic/semantic-loaddefs.el
xemacs -batch --no-site-file -l grammar-make-script -f
semantic-grammar-batch-build-packages
semantic-grammar.wy
Loading /usr/share/xemacs/xemacs-packages/lisp/gnus/auto-autoloads...
(file auto-autoloads.el is newer)
Loading /usr/share/xemacs/xemacs-packages/lisp/gnus/auto-autoloads...
(file auto-autoloads.el is newer)
Loading semanticdb-file...
Loading semanticdb-file...
Wrote /home/jpschewe/.xemacs/cedet-1.0pre3/semantic/semantic-grammar-wy.el
Compiling /home/jpschewe/.xemacs/cedet-1.0pre3/semantic/semantic-grammar-wy.el...
While compiling toplevel forms in
file /home/jpschewe/.xemacs/cedet-1.0pre3/semantic/semantic-grammar-wy.el:
!! error (("Bad input grammar"))
Compiling /home/jpschewe/.xemacs/cedet-1.0pre3/semantic/semantic-grammar-wy.el...
xemacs exiting.
Bad input grammarmake[1]: *** [metagrammar] Error 255
make[1]: Leaving directory
`/home/jpschewe/.xemacs/cedet-1.0pre3/semantic'
make: *** [semantic] Error 2
Logged In: YES
user_id=88537
Usually a "make clean-all" followed by a rebuild will solve
this problem.
See section 2.1 in cedet/INSTALL file. It may be that a
previous build
attempt messed up the file.
If that doesn't help, get semantic-grammary-wy out of the
dist again
and recompile.
Logged In: YES
user_id=209980
Nope, that still doesn't work. I deleted my whole directory
and then opened up the tar.gz again and it's still not working.
Logged In: YES
user_id=209980
More information. I just tried pre2, pre1 and beta3b and
got the same results. So it's probably something to do with
the version of xemacs (21.5 beta18 shipped with SuSE 9.3).
Logged In: YES
user_id=209980
I'm still trying to debug this, although I can't say I know
much about semantic, the line that fails is "xemacs -batch
--no-site-file -l grammar-make-script -f
semantic-grammar-batch-build-packages semantic-grammar.wy",
however if I execute that from the semantic directory on the
commandline it works just fine, but doesn't work from inside
make.
Logged In: YES
user_id=209980
I've done a bunch of looking and the problem seems to be
that semantic-grammar-create-package is creating a file with
no grammar in it. Just the default declarations and the
provides line.
Logged In: YES
user_id=88537
Originator: NO
Hmmm, I waited to long to respond to this again, so I'm going to close this since it probably isn't relevant to you anymore.
You last description sounds like what sometimes happens in EIEIO with method writing of
.elc files.
Logged In: YES
user_id=209980
Originator: YES
I just tried this again with the latest from CVS and it still doesn't work.
make clean-all
make EMACS=xemacs
...
No autoloads found in wisent/wisent-expr.el
No autoloads found in wisent/wisent-grammar-macros.el
Generating autoloads for wisent/wisent-grammar.el...
Generating autoloads for wisent/wisent-java-tags.el...
No autoloads found in wisent/wisent-java.el
Generating autoloads for wisent/wisent-python.el...
Generating autoloads for wisent/wisent.el...
Saving file /home/jpschewe/.xemacs/cedet-cvs/cedet/semantic/semantic-loaddefs.el...
Wrote /home/jpschewe/.xemacs/cedet-cvs/cedet/semantic/semantic-loaddefs.el
Wrote /home/jpschewe/.xemacs/cedet-cvs/cedet/semantic/semantic-loaddefs.el
"xemacs" -batch --no-site-file -l grammar-make-script -f semantic-grammar-batch-build-packages semantic-grammar.wy
xemacs exiting.
Feature semantic-autoloads already loadedmake[1]: *** [metagrammar] Error 255
make[1]: Leaving directory `/home/jpschewe/.xemacs/cedet-cvs/cedet/semantic'
make: *** [semantic] Error 2
Logged In: YES
user_id=88537
Originator: NO
After the "make clean-all", does the file semantic/semantic-grammar-wy.el still exist?
There is a bootstrap issue where semantic-grammar-wy.el needs a working semantic-grammary-wy.el to exist in order to compile itself. Basically, changes to semantic-grammary-wy.el needs to be used to build itself, and thus is checked into CVS so we always have a copy.
If, for some reason, the special case rule in the CEDET/Makefile failed to protect this file, then
errors as you see below may occur. If this does happen, then the solution is to do this:
make clean-all
cvs up semantic/semantic-grammar-wy.el
make EMACS=xemacs
If this is the case, it would be useful to debug the clean-grammars rule to see why it didn't protect
that grammar file.
Logged In: YES
user_id=209980
Originator: YES
The file is indeed there. Perhaps it is due to semantic already being installed in /usr/share/xemacs/xemacs-packages by the xemacs RPM on my system. I tried the build on another system that doesn't have semantic installed and now it crashes with a differrent error:
Wrote /net/users/jschewe/.xemacs/cedet-cvs/cedet/semantic/bovine/auto-autoloads.el
Wrote /net/users/jschewe/.xemacs/cedet-cvs/cedet/semantic/wisent/auto-autoloads.el
Wrote /net/users/jschewe/.xemacs/cedet-cvs/cedet/semantic/wisent/auto-autoloads.el
"xemacs" -batch --no-site-file -l grammar-make-script -f semantic-grammar-batch-build-packages semantic-grammar.wy
# bind (stack-trace-on-signal debug-on-signal stack-trace-on-error debug-on-error)
# (unwind-protect ...)
(global-semantic-idle-scheduler-mode 1)
semantic-load-enable-minimum-features()
(cond (semantic-load-turn-everything-on (semantic-load-enable-excessive-code-helpers)) (semantic-load-turn-useful-things-on (semantic-load-enable-code-helpers)) (t (semantic-load-enable-minimum-features)))
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
load-internal("semantic-load" nil require nil undecided)
# bind (path handler filename nosuffix nomessage noerror file)
load("semantic-load" nil require nil)
# (unwind-protect ...)
require(semantic-load)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
load-internal("/net/users/jschewe/.xemacs/cedet-cvs/cedet/semantic/grammar-make-script" nil t nil undecided)
# bind (path handler filename nosuffix nomessage noerror file)
load("/net/users/jschewe/.xemacs/cedet-cvs/cedet/semantic/grammar-make-script" nil t)
# bind (file arg)
command-line-do-load("-l")
# bind (dir file-count line end-of-options file-p arg tem)
command-line-1()
# bind (command-line-args-left)
command-line()
# bind (error-data)
normal-top-level()
# (condition-case ... . error)
# (catch top-level ...)
xemacs exiting.
Symbol's function definition is void: global-semantic-idle-scheduler-modemake[1]: *** [metagrammar] Error 255
make[1]: Leaving directory `/net/users/jschewe/.xemacs/cedet-cvs/cedet/semantic'
make: *** [semantic] Error 2
Logged In: YES
user_id=88537
Originator: NO
This record claims to have been closed on 2007-02-08 08:19, but it is still open, so closing again.