这是我在 github ( https://github.com/sirikata/berkelium/issues/19 )上的 berkelium 项目上发布的问题的转贴。
我的问题:
在 Linux(Debian 测试,64 位,gcc 4.7.1,cmake 2.8.9)上进行 chromium 编译期间,python 脚本action_makenames.py
失败并出现以下错误:
...
ACTION webcore_bindings_sources_HTMLNames out/Release/obj/gen/webkit/HTMLNames.cpp
ACTION webcore_bindings_sources_SVGNames out/Release/obj/gen/webkit/SVGNames.cpp
ACTION webcore_bindings_sources_MathMLNames out/Release/obj/gen/webkit/MathMLNames.cpp
ACTION webcore_bindings_sources_XLinkNames out/Release/obj/gen/webkit/XLinkNames.cpp
ACTION webcore_bindings_sources_XMLNSNames out/Release/obj/gen/webkit/XMLNSNames.cpp
Unknown parameter math for tags/attrs
Traceback (most recent call last):
File "scripts/action_makenames.py", line 174, in <module>
sys.exit(main(sys.argv))
File "scripts/action_makenames.py", line 156, in main
assert returnCode == 0
AssertionError
make: *** [out/Release/obj/gen/webkit/MathMLNames.cpp] Error 1
make: *** Waiting for unfinished jobs....
Unknown parameter a for tags/attrs
Traceback (most recent call last):
File "scripts/action_makenames.py", line 174, in <module>
sys.exit(main(sys.argv))
File "scripts/action_makenames.py", line 156, in main
assert returnCode == 0
AssertionError
Unknown parameter a interfaceName for tags/attrs
make: *** [out/Release/obj/gen/webkit/SVGNames.cpp] Error 1
Traceback (most recent call last):
File "scripts/action_makenames.py", line 174, in <module>
sys.exit(main(sys.argv))
File "scripts/action_makenames.py", line 156, in main
assert returnCode == 0
AssertionError
make: *** [out/Release/obj/gen/webkit/HTMLNames.cpp] Error 1
Unknown parameter actuate for tags/attrs
Traceback (most recent call last):
File "scripts/action_makenames.py", line 174, in <module>
sys.exit(main(sys.argv))
File "scripts/action_makenames.py", line 156, in main
assert returnCode == 0
AssertionError
make: *** [out/Release/obj/gen/webkit/XLinkNames.cpp] Error 1
Unknown parameter xmlns for tags/attrs
Traceback (most recent call last):
File "scripts/action_makenames.py", line 174, in <module>
sys.exit(main(sys.argv))
File "scripts/action_makenames.py", line 156, in main
assert returnCode == 0
AssertionError
make: *** [out/Release/obj/gen/webkit/XMLNSNames.cpp] Error 1
Failed to install: chromium
看起来 python 脚本正在调用 perl 脚本,而 perl 脚本在第 209 行即将死去:
die "Unknown parameter $parameter for tags/attrs\n" if !defined($parameters{$parameter});
“未知参数”是:
- 数学
- 一个
- 接口名称
- 启动
- xmlns
我不确定这些参数来自哪里。
任何人都知道如何纠正这个问题?