【问题标题】:Compile V8 on linux platform failed在 linux 平台上编译 V8 失败
【发布时间】:2019-06-19 12:33:53
【问题描述】:

在 linux 平台上编译最新的 v8 失败。

linux, v8 使用 ninjia

ninja:进入目录`out.gn/x64.release' [14/571] 链接 ./mksnapshot o/x/args.gn+ 缓冲区 失败:mksnapshot ../../third_party/llvm-build/Release+Asserts/bin/clang++ -pie -Wl,--fatal-warnings -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z ,now -Wl,-z,defs -Wl,--根据需要 -fuse-ld=lld -Wl,--icf=all -Wl,--color-diagnostics -m64 -rdynamic -pie -Wl,-- disable-new-dtags -Wl,-O2 -Wl,--gc-sections -o "./mksnapshot" -Wl,--start-group @"./mksnapshot.rsp" -Wl,--end-group -原子 -ldl -lpthread -lrt ld.lld: 错误: 未定义符号: void std::atomic_init(std::atomic*, bool)

由 module-compiler.cc:260 (../../src/wasm/module-compiler.cc:260) 引用 obj/v8_base_without_compiler/module-compiler.o:(v8::internal::wasm::CompilationState::New(std::shared_ptr const&, std::shared_ptr))

链接错误

【问题讨论】:

  • 哪个版本的 V8,您是如何获得它的?哪个发行版/版本的 Linux?看起来缺少一些依赖,与 -latomic / std::atomic_init() 有关。
  • v8 的最新版本 -- 4bc72b88cf7f3e0d21c62272b41d19897925eab2。 linux版本是debian 8。
  • Debian GNU/Linux 8.11

标签: v8 embedded-v8


【解决方案1】:

这个问题已经通过用直接赋值替换 std::atomic_init 解决了。

【讨论】:

    猜你喜欢
    • 2020-12-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-09-08
    • 1970-01-01
    • 1970-01-01
    • 2023-04-06
    相关资源
    最近更新 更多