Tracker: Bugs

5 Bad input grammer when compiling cedet-1.0pre3 - ID: 1242632
Last Update: Comment added ( zappo )

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


Jon Schewe ( jpschewe ) - 2005-07-21 14:39:55 PDT

5

Closed

None

Nobody/Anonymous

semantic

None

Public


Comments ( 10 )




Date: 2008-03-01 18:40:21 PST
Sender: zappoSourceForge.net SubscriberProject Admin


This record claims to have been closed on 2007-02-08 08:19, but it is
still open, so closing again.


Date: 2007-02-08 07:23:55 PST
Sender: jpschewe


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


Date: 2007-02-08 06:46:02 PST
Sender: zappoSourceForge.net SubscriberProject Admin


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.


Date: 2007-02-08 05:19:52 PST
Sender: jpschewe


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


Date: 2007-02-07 18:23:20 PST
Sender: zappoSourceForge.net SubscriberProject Admin


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.


Date: 2005-09-16 12:16:10 PDT
Sender: jpschewe

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.


Date: 2005-09-16 10:09:06 PDT
Sender: jpschewe

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.


Date: 2005-09-16 09:27:19 PDT
Sender: jpschewe

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).


Date: 2005-09-16 07:30:03 PDT
Sender: jpschewe

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.


Date: 2005-08-12 17:32:48 PDT
Sender: zappoSourceForge.net SubscriberProject Admin

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.


Log in to comment.




Attached File

No Files Currently Attached

Changes ( 6 )

Field Old Value Date By
status_id Open 2008-03-01 18:40:21 PST zappo
close_date - 2008-03-01 18:40:21 PST zappo
status_id Closed 2007-02-08 05:19:52 PST jpschewe
close_date 2007-02-07 18:23 2007-02-08 05:19:52 PST jpschewe
status_id Open 2007-02-07 18:23:21 PST zappo
close_date - 2007-02-07 18:23:21 PST zappo