Hello all,
I'm having problems getting the kxref.py script to run using recent versions of cml2.
This used to work just fine back some time ago. Due to a recent disk cleanup, the
only combination which I could quickly verify still works for kxref -e
is cml2-1.6.6 and linux-2.4.6, on both of the following test systems.
Using cml2-1.9.10 with 2.4.17-rc2 on a LM 8.0 (python 2.0) system, I get this:
[root@spc2 linux-2.4.17-rc2-cml2]# scripts/kxref.py -e
Regenerating cross-reference database...Traceback (most recent call last):
File "scripts/kxref.py", line 539, in ?
load_context(sourcetree)
File "scripts/kxref.py", line 491, in load_context
(xrefs, cml1types) = makexref(tree)
File "scripts/kxref.py", line 220, in makexref
os.path.walk(".", xrefvisit, xrefdict)
File "/usr/lib/python2.0/posixpath.py", line 269, in walk
walk(name, func, arg)
File "/usr/lib/python2.0/posixpath.py", line 264, in walk
func(arg, top, names)
File "scripts/kxref.py", line 215, in xrefvisit
filevisitor(dict, node)
File "scripts/kxref.py", line 179, in filevisitor
if not choicere.match(lines[0]):
NameError: There is no variable named 'choicere'
Using cml2-1.9.10 with 2.4.17-rc2 on a RH 7.2 (python 2.1) system, I get these
additional errors,
plus the same as above.
[steven@spc linux-2.4.17-rc2-cml2]$ scripts/kxref.py -e
scripts/kxref.py:145: SyntaxWarning: local name 'configre' in 'makexref' shadows use
of 'configre' as global in nested scope 'xrefvisit'
def makexref(tree):
scripts/kxref.py:145: SyntaxWarning: local name 'definere' in 'makexref' shadows use
of 'definere' as global in nested scope 'xrefvisit'
def makexref(tree):
scripts/kxref.py:145: SyntaxWarning: local name 'typefind' in 'makexref' shadows use
of 'typefind' as global in nested scope 'xrefvisit'
def makexref(tree):
scripts/kxref.py:145: SyntaxWarning: local name 'mycml1types' in 'makexref' shadows
use of 'mycml1types' as global in nested scope 'xrefvisit'
def makexref(tree):
scripts/kxref.py:145: SyntaxWarning: local name 'choicere' in 'makexref' shadows use
of 'choicere' as global in nested scope 'xrefvisit'
def makexref(tree):
Regenerating cross-reference database...Traceback (most recent call last):
File "scripts/kxref.py", line 539, in ?
load_context(sourcetree)
File "scripts/kxref.py", line 491, in load_context
(xrefs, cml1types) = makexref(tree)
File "scripts/kxref.py", line 220, in makexref
os.path.walk(".", xrefvisit, xrefdict)
File "/usr/lib/python2.1/posixpath.py", line 277, in walk
walk(name, func, arg)
File "/usr/lib/python2.1/posixpath.py", line 269, in walk
func(arg, top, names)
File "scripts/kxref.py", line 215, in xrefvisit
filevisitor(dict, node)
File "scripts/kxref.py", line 179, in filevisitor
if not choicere.match(lines[0]):
NameError: global name 'choicere' is not defined
Thanks in advance,
Steven
_______________________________________________
kbuild-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/kbuild-devel