Alex313031 / thorium

Chromium fork named after radioactive element No. 90. Windows and MacOS/Raspi/Android/Special builds are in different repositories, links are towards the top of the README.md.
https://thorium.rocks/
BSD 3-Clause "New" or "Revised" License
4.68k stars 145 forks source link

Fail compiling chromium for arm64 on mac m1 #191

Closed pleaz closed 1 week ago

pleaz commented 1 year ago

Build chromium on Mac m1 (arm64) following this instruction and your GN params but on step where LLVM linking to RUST I got this error:

FAILED: clang_arm64_for_rust_host_build_tools/libcxxbridge_macro.dylib 
...
  = note: ld64.lld: error: unknown argument '-plugin-opt=O3'
          ld64.lld: error: unknown argument '-plugin-opt=mcpu=apple-m1'
          clang++: error: linker command failed with exit code 1 (use -v to see invocation)

error: aborting due to previous error

looks like it should be fixed https://bugs.chromium.org/p/chromium/issues/detail?id=1446796 and I can find this Python script in my repo, but anyway I get the error.

maybe you have some ideas what can be wrong here?

gz83 commented 1 year ago

Please compare the following guidelines with the official documentation given by Chromium to see if any steps are missing https://github.com/Alex313031/thorium/blob/main/docs/BUILDING_MAC.md

At the same time, please use the following for the args parameter, the args of the Thorium-Special repo has not been updated yet https://github.com/Alex313031/thorium/blob/main/other/Mac/mac_ARM_args.gn

@pleaz