Cross-platform build failed on mips64el

83 views
Skip to first unread message

Madao Chan

unread,
Feb 11, 2022, 2:17:46 PM2/11/22
to Chromium-dev
Greetings,

I'm trying to cross-platform compile 89.0.4389.130 mips64el build on a x86 Ubuntu 20.04.3.
Before this I've successfully finished the arm64 build.

After I downloaded the sysroot. I edited the args.gn:
target_cpu = "mips64el"
is_component_build = false
is_debug = false
enable_nacl = false
enable_linux_installer = true

But it got some errors in checking the args:

zf@zf-QiTianM435-B442:~/zf-browser/chromium/src$ gn args out/zf-browser-mips
Waiting for editor on "/home/zf/zf-browser/chromium/src/out/zf-browser-mips/args.gn"...
Generating files...
ERROR at //third_party/pdfium/third_party/BUILD.gn:485:43: Undefined identifier
  } else if (current_cpu == "mips64el" && mips_use_msa) {
                                          ^-----------
See //third_party/pdfium/samples/BUILD.gn:55:5: which caused the file to be included.
    "../third_party:pdfium_base",
    ^---------------------------

After I removed the "mips_use_msa" condition, I got this error:

zf@zf-QiTianM435-B442:~/zf-browser/chromium/src$ gn args out/zf-browser-mips
Waiting for editor on "/home/zf/zf-browser/chromium/src/out/zf-browser-mips/args.gn"...
Generating files...
ERROR at //build/config/linux/atk/BUILD.gn:13:1 (//build/toolchain/linux:clang_x64_v8_mips64el): Assertion failed.
assert(current_toolchain == default_toolchain)
^-----
See //ui/accessibility/BUILD.gn:294:20: which caused the file to be included.
      configs += [ "//build/config/linux/atk" ]
                   ^-------------------------

Then I removed the "current_toolchain" assert and ran the checks again. which is success:

zf@zf-QiTianM435-B442:~/zf-browser/chromium/src$ gn args out/zf-browser-mips
Waiting for editor on "/home/zf/zf-browser/chromium/src/out/zf-browser-mips/args.gn"...
Generating files...
Done. Made 19309 targets from 2655 files in 5877ms


But when I triggered the build, It came out with the following error:

zf@zf-QiTianM435-B442:~/zf-browser/chromium/src$ ninja -C out/zf-browser-mips
ninja: Entering directory `out/zf-browser-mips'
ninja: error: '../../third_party/pdfium/third_party/mips/filter_msa_intrinsics.c', needed by 'obj/third_party/pdfium/third_party/fx_lpng/filter_msa_intrinsics.o', missing and no known rule to make it


Which phase did I do wrong? Thanks.

杨奚诚

unread,
Aug 13, 2022, 9:44:23 AM8/13/22
to Chromium-dev, cyf...@gmail.com
I also met this issue, have you fixed this?
Reply all
Reply to author
Forward
0 new messages