riscv-collab / v8

Port of Google v8 engine to RISC-V.
https://github.com/v8-riscv/v8/wiki
Other
238 stars 31 forks source link

Cross compiled Build failure #391

Closed derekztu22 closed 3 years ago

derekztu22 commented 3 years ago

Describe the bug Trying to follow steps for cross compiled build on wiki fails during cross compilation step.

To Reproduce Steps to reproduce the behavior:

  1. Follow steps in here up to this step.

Expected behavior A build.ninja is created.

Errors/Logs

ERROR Unresolved dependencies.
//:cppgc(//build/toolchain/linux:clang_riscv64)
  needs //build/toolchain/linux:clang_riscv64()
//:cppgc_base(//build/toolchain/linux:clang_riscv64)
  needs //build/toolchain/linux:clang_riscv64()
//:cppgc_headers(//build/toolchain/linux:clang_riscv64)
  needs //build/toolchain/linux:clang_riscv64()
//:cppgc_sample(//build/toolchain/linux:clang_riscv64)
  needs //build/toolchain/linux:clang_riscv64()
//:d8(//build/toolchain/linux:clang_riscv64)
  needs //build/toolchain/linux:clang_riscv64()
//:fuzzer_support(//build/toolchain/linux:clang_riscv64)
  needs //build/toolchain/linux:clang_riscv64()
//:generate_bytecode_builtins_list(//build/toolchain/linux:clang_riscv64)
  needs //build/toolchain/linux:clang_riscv64()
...
//tools:v8_testrunner(//build/toolchain/linux:clang_riscv64)                                                                                                                                                                                                          [0/1939]
  needs //build/toolchain/linux:clang_riscv64()
//tools/debug_helper:gen_heap_constants(//build/toolchain/linux:clang_riscv64)
  needs //build/toolchain/linux:clang_riscv64()
//tools/debug_helper:run_mkgrokdump(//build/toolchain/linux:clang_riscv64)
  needs //test/mkgrokdump:mkgrokdump(//build/toolchain/linux:clang_x64_v8_riscv64)
//tools/debug_helper:run_mkgrokdump(//build/toolchain/linux:clang_riscv64)
  needs //build/toolchain/linux:clang_riscv64()
//tools/debug_helper:v8_debug_helper(//build/toolchain/linux:clang_riscv64)
  needs //build/toolchain/linux:clang_riscv64()
//tools/gcmole:v8_run_gcmole(//build/toolchain/linux:clang_riscv64)
  needs //build/toolchain/linux:clang_riscv64()
//tools/jsfunfuzz:v8_jsfunfuzz(//build/toolchain/linux:clang_riscv64)
  needs //build/toolchain/linux:clang_riscv64()

Additional comments Also for the wiki during the configure toolprefix step there is no Patch the Chromium toolchain step. We should remove this.

lazyparser commented 3 years ago

Have you tried cloning and building in a new folder/environment?

derekztu22 commented 3 years ago

This happens on a new clone of the repo too. I do not have another environment to run it on.

luyahan commented 3 years ago

The patch need apply

derekztu22 commented 3 years ago

Could we add that step into the wiki? I remember it being there before but now it's not there anymore.

luyahan commented 3 years ago

Could we add that step into the wiki? I remember it being there before but now it's not there anymore.

I had add it https://github.com/v8-riscv/v8/wiki/Cross-compiled-Build#configure-toolprefix