首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >不完整的WEBKITGTK构建

不完整的WEBKITGTK构建
EN

Stack Overflow用户
提问于 2020-11-09 00:51:19
回答 1查看 416关注 0票数 0

我正在fedora32机器上运行buildroot。

我介绍了这个网络小猫的包裹。下载和配置源运行时没有出现错误。

但是,在构建过程中,make抛出一个错误并崩溃。

我对linux和GTK非常陌生,我会很高兴地欣赏一些关于到底出了什么问题的建议。

下面是构建失败之前终端上输出的摘录。

代码语言:javascript
复制
/home/cerezolarbi/cerezobuild/buildroot/output/build/webkitgtk-2.30.2/DerivedSources/ForwardingHeaders/JavaScriptCore/Options.h:164:25: warning: ‘addressOfOptionDefault’ defined but not used [-Wunused-variable]
  164 |     inline static void* addressOfOptionDefault(Options::ID);
      |                         ^~~~~~~~~~~~~~~~~~~~~~
/home/cerezolarbi/cerezobuild/buildroot/output/build/webkitgtk-2.30.2/DerivedSources/ForwardingHeaders/JavaScriptCore/Options.h:163:25: warning: ‘addressOfOption’ defined but not used [-Wunused-variable]
  163 |     inline static void* addressOfOption(Options::ID);
      |                         ^~~~~~~~~~~~~~~
/home/cerezolarbi/cerezobuild/buildroot/output/build/webkitgtk-2.30.2/DerivedSources/ForwardingHeaders/JavaScriptCore/Options.h:135:17: warning: ‘isAvailable’ defined but not used [-Wunused-variable]
  135 |     static bool isAvailable(ID, Availability);
      |                 ^~~~~~~~~~~
In file included from /home/cerezolarbi/cerezobuild/buildroot/output/build/webkitgtk-2.30.2/DerivedSources/ForwardingHeaders/JavaScriptCore/OptionsList.h:28,
                 from /home/cerezolarbi/cerezobuild/buildroot/output/build/webkitgtk-2.30.2/DerivedSources/ForwardingHeaders/JavaScriptCore/JSCConfig.h:28,
                 from /home/cerezolarbi/cerezobuild/buildroot/output/build/webkitgtk-2.30.2/DerivedSources/ForwardingHeaders/JavaScriptCore/Options.h:28,
                 from /home/cerezolarbi/cerezobuild/buildroot/output/build/webkitgtk-2.30.2/DerivedSources/ForwardingHeaders/JavaScriptCore/CPU.h:28,
                 from /home/cerezolarbi/cerezobuild/buildroot/output/build/webkitgtk-2.30.2/DerivedSources/ForwardingHeaders/JavaScriptCore/MathCommon.h:28,
                 from /home/cerezolarbi/cerezobuild/buildroot/output/build/webkitgtk-2.30.2/DerivedSources/ForwardingHeaders/JavaScriptCore/TypedArrayAdaptors.h:29,
                 from /home/cerezolarbi/cerezobuild/buildroot/output/build/webkitgtk-2.30.2/DerivedSources/ForwardingHeaders/JavaScriptCore/TypedArrays.h:29,
                 from /home/cerezolarbi/cerezobuild/buildroot/output/build/webkitgtk-2.30.2/DerivedSources/ForwardingHeaders/JavaScriptCore/Uint8ClampedArray.h:28,
                 from /home/cerezolarbi/cerezobuild/buildroot/output/build/webkitgtk-2.30.2/Source/WebCore/html/ImageData.h:33,
                 from /home/cerezolarbi/cerezobuild/buildroot/output/build/webkitgtk-2.30.2/Source/WebCore/platform/graphics/cairo/ImageBufferCairoSurfaceBackend.cpp:39,
                 from /home/cerezolarbi/cerezobuild/buildroot/output/build/webkitgtk-2.30.2/DerivedSources/WebCore/unified-sources/UnifiedSource-3c72abbe-28.cpp:7:
/home/cerezolarbi/cerezobuild/buildroot/output/build/webkitgtk-2.30.2/DerivedSources/ForwardingHeaders/JavaScriptCore/GCLogging.h:42:24: warning: ‘JSC::levelAsString’ defined but not used [-Wunused-variable]
   42 |     static const char* levelAsString(Level);
      |                        ^~~~~~~~~~~~~
make[4]: *** [Source/WebCore/CMakeFiles/WebCore.dir/build.make:7364: Source/WebCore/CMakeFiles/WebCore.dir/__/__/DerivedSources/WebCore/unified-sources/UnifiedSource-3c72abbe-28.cpp.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [CMakeFiles/Makefile2:949: Source/WebCore/CMakeFiles/WebCore.dir/all] Error 2
make[2]: *** [Makefile:152: all] Error 2
make[1]: *** [package/pkg-generic.mk:250: /home/cerezolarbi/cerezobuild/buildroot/output/build/webkitgtk-2.30.2/.stamp_built] Error 2
make: *** [Makefile:84: _all] Error 2
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-12-07 02:19:22

UnifiedSource构建错误在主干中比较常见。通常,受影响的统一源文件引用的一些源文件中缺少标题,在本例中是UnifiedSource-3c72abbe-28.cpp。

您提到在WebKitGTK 2.30.2 tarball中发生了构建错误。要修复错误,您可以尝试以下几种方法:

  1. 也许最简单的方法就是构建一个更新的版本。(https://webkitgtk.org/releases/webkitgtk-2.30.3.tar.xz)
  2. If 2.30.3是几周前发布的--您需要构建2.30.2 --具体来说,您可以尝试使用禁用的统一源代码构建。为此,我必须运行以下命令:

代码语言:javascript
复制
$ cmake -DPORT=GTK -DCMAKE_BUILD_TYPE=RelWithDebInfo 
  -DENABLED_UNIFIED_BUILDS=OFF -DUSE_WPE_RENDERER=OFF -GNinja

似乎禁用禁用WPE呈现所需的统一构建。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64744576

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档