1

这是我在 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

我不确定这些参数来自哪里。

任何人都知道如何纠正这个问题?

4

2 回答 2

3

原来是 gcc 4.6 的预处理器错误。作为修复,您必须删除-P.gcc 预处理器命令的参数make_names.pl

错误报告http ://code.google.com/p/chromium/issues/detail?id=46411

错误修复http ://trac.webkit.org/changeset/84123

于 2012-10-20T17:17:57.530 回答
0

听起来你可能缺少一个目录,a la

http://aur.archlinux.org/packages.php?ID=45713

于 2012-10-20T16:38:32.093 回答