Re: [cedet-semantic] Error compiling from CVS
Brought to you by:
zappo
From: Christopher W. <ch...@gr...> - 2007-05-20 16:09:28
|
Thanks Eric, After a fair amount of playing around and debugging the problem, it appears that it has do with with cc-mode and a strange dependency on "cc-defs.el" when all I have is "cc-defs.elc". After installing emacs lisp sources the problem went away! Now things compile cleanly. Now that it's up and running, I'll play with it for a while. One quick question - I notice that it makes a big difference if my include uses <> or "" as in: #include <path/include.hh> In the project I'm working on, project header files are frequently specified using the <> syntax. As such, it seems that semantic doesn't find it. If I change to "" it will find classes. Also, is there a way to have a full project parsed, similar to ctags? For example, all *.cc and *.hh files in /dir/to/project should be searched. I started with "semanticdb-create-system-database" but I don't really see any effect on completion. Thanks for your help. I'm very impressed with the output generated by this. ...cj On Sun, 2007-05-20 at 10:29 -0400, Eric M. Ludlam wrote: > Hi, > > > The warnings are all because I want to make sure that programs that > depend on semantic are advised how to update from the 1.4 API to the > semantic 2 API. Since I still have a semantic 1.4 API in semantic, it > throws a lot of warnings. Those will eventually go away when the 1.4 > stuff is completely eliminated. > > As for your error, it seems as though cc-mode isn't loading at all. > Getting that fixed seems like the first order of business. If you're > local Emacs install has used a substitute C mode of some sort that you > need/want to use, then you would need to port the Semantic support of > C parsing to the new mode. It might be as simple as converting the > line: > > (require 'cc-mode) > > with > > (require 'my-c-mode-substitue) > > but there might be syntax table differences that would cause erroneous > behaviors. > > Good Luck > Eric > > >>> Christopher White <ch...@gr...> seems to think that: > >Hello all, > > > >Trying to make some headway with using CEDET, as it looks very powerful. > >However, I'm running into a couple of issues while compiling. > > > >I synced up latest in CVS and I'm running Emacs version 21.4.1 on Linux. > >(BTW, also saw the same problem with 1.0pre3). > > > >The problem occurs while byte-compiling semantic-c.el: > > > >The line for "(require 'cc-mode)" causes problems. I can't quite figure > >out why. I've isolated the byte-compile command that causes it: > > > >[safire] cedet/semantic/bovine --# "emacs" -batch --no-site-file -l > >languages-compile-script -f batch-byte-compile semantic-c.el > >Loading /usr/libexec/emacs/21.4/i686-redhat-linux-gnu/fns-21.4.1-x.el > >(source)... > >While compiling toplevel forms in > >file /usr/src/cedet/semantic/bovine/semantic-c.el: > > ** variable `semantic-format-tag-functions' obsoletes, but isn't alias > >of `semantic-token->text-functions' > > ** variable `semantic-tag-expand-function' obsoletes, but isn't alias > >of `semantic-expand-nonterminal' > > ** variable `semantic--parse-table' obsoletes, but isn't alias of > >`semantic-toplevel-bovine-table' > > ** variable `semantic--buffer-cache' obsoletes, but isn't alias of > >`semantic-toplevel-bovine-cache' > > ** variable `semantic--before-fetch-tags-hook' obsoletes, but isn't > >alias of `semantic-before-toplevel-bovination-hook' > > ** variable `semantic-working-type' obsoletes, but isn't alias of > >`semantic-bovination-working-type' > > ** variable `semantic-format-tag-functions' obsoletes, but isn't alias > >of `semantic-token->text-functions' > > ** variable `semantic-format-tag-custom-list' obsoletes, but isn't > >alias of `semantic-token->text-custom-list' > > ** variable `semantic-format-face-alist' obsoletes, but isn't alias of > >`semantic-face-alist' > > ** variable `semantic-imenu-expand-type-members' obsoletes, but isn't > >alias of `semantic-imenu-expand-type-parts' > > ** variable `semantic-imenu-bucketize-type-members' obsoletes, but > >isn't alias of `semantic-imenu-bucketize-type-parts' > > ** variable `semantic-imenu-expandable-tag-classes' obsoletes, but > >isn't alias of `semantic-imenu-expandable-token' > > ** variable `semantic-step-at-tag-classes' obsoletes, but isn't alias > >of `semantic-step-at-token-ids' > > ** variable `senator-step-at-start-end-tag-classes' obsoletes, but > >isn't alias of `senator-step-at-start-end-token-ids' > > ** variable `senator-add-log-tags' obsoletes, but isn't alias of > >`senator-add-log-tokens' > > !! File error (("Cannot open load file" "cc-defs.el")) > >Done > > > >If I comment out the require line, it compiles ok, but then later I get > >an error when I actually start emacs - the autoload of function > >"semantic-default-c-setup" fails. I suspect it's related to the compile > >problem, but not positive. > > > >Also, there are a large number of such warnings...I assume this are all > >ok? > > > >Thanks > >...cj > [ ... ] > |