Cross Compiling MD needs important update.

168 views
Skip to first unread message

Alex Frick

unread,
Oct 27, 2021, 1:46:01 PM10/27/21
to Chromium-dev
It is mentioned nowhere in https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/win_cross.md that one must export DEPOT_TOOLS_WIN_TOOLCHAIN=0 in order for vs_toolchain.py update --force --no-download to work correctly. I had tried numerous times to cross build instead of having to boot into windows. And it was only after remembering I had set DEPOT_TOOLS_WIN_TOOLCHAIN=0 on my windows machine that I tried that and it worked. This needs to be added to the cross building md in the same section as https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/win_cross.md#if-you_re-not-at-google because this would not be clear to someone who hasn't built on a windows machine, or even if they had, there is no indication that DEPOT_TOOLS_WIN_TOOLCHAIN=0 is needed outside of a native windows build.

Henrique Ferreiro

unread,
Oct 28, 2021, 2:31:45 AM10/28/21
to circumci...@gmail.com, Chromium-dev
It's working fine here. What kind of errors are you getting?
-- 
Henrique

On Wed, Oct 27 2021 at 06:47:31 -0700, Alex Frick <circumci...@gmail.com> wrote:
It is mentioned nowhere in https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/win_cross.md that one must export DEPOT_TOOLS_WIN_TOOLCHAIN=0 in order for vs_toolchain.py update --force --no-download to work correctly. I had tried numerous times to cross build instead of having to boot into windows. And it was only after remembering I had set DEPOT_TOOLS_WIN_TOOLCHAIN=0 on my windows machine that I tried that and it worked. This needs to be added to the cross building md in the same section as https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/win_cross.md#if-you_re-not-at-google because this would not be clear to someone who hasn't built on a windows machine, or even if they had, there is no indication that DEPOT_TOOLS_WIN_TOOLCHAIN=0 is needed outside of a native windows build.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/50f4dffb-0e12-4a29-8d45-eac74e5ee9bbn%40chromium.org.

Alex Frick

unread,
Jan 10, 2022, 7:24:15 PM1/10/22
to Chromium-dev, hfer...@igalia.com, Chromium-dev, Alex Frick
Im on debian 11, and have 'mac' in my .gclient file and have target_os = "mac" and target_cpu = "arm64" and use_system_xcode = false in my args.gn. The errors I get are 

Waiting for editor on "/home/alex/chromium/src/out/thorium/args.gn"...
Generating files...
ERROR at //build/config/mac/mac_sdk.gni:93:19: Script returned non-zero exit code.
_mac_sdk_result = exec_script(script_name, sdk_info_args, "scope")
                  ^----------
Current dir: /home/alex/chromium/src/out/thorium/
Command: python3 /home/alex/chromium/src/build/config/apple/sdk_info.py --developer_dir /home/alex/chromium/src/build/mac_files/xcode_binaries macosx
Returned 1.
stderr:

Traceback (most recent call last):
  File "/home/alex/chromium/src/build/config/apple/sdk_info.py", line 167, in <module>
    FillXcodeVersion(settings, args.developer_dir)
  File "/home/alex/chromium/src/build/config/apple/sdk_info.py", line 73, in FillXcodeVersion
    version_plist = LoadPList(xcode_version_plist_path)
  File "/home/alex/chromium/src/build/config/apple/sdk_info.py", line 36, in LoadPList
    with open(path, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/alex/chromium/src/build/mac_files/xcode_binaries/Contents/version.plist'

See //build/config/sysroot.gni:71:5: whence it was imported.
    import("//build/config/mac/mac_sdk.gni")
    ^--------------------------------------
See //build/toolchain/linux/BUILD.gn:6:1: whence it was imported.
import("//build/config/sysroot.gni")
^----------------------------------
See //BUILD.gn:689:15: which caused the file to be included.
    deps += [ "//third_party/breakpad:symupload($host_toolchain)" ]
              ^--------------------------------------------------

K. Moon

unread,
Jan 10, 2022, 7:29:41 PM1/10/22
to circumci...@gmail.com, Chromium-dev, hfer...@igalia.com
It seems like you're asking a different question, so it doesn't make sense to reuse this thread. It looks like this is related to your other thread on cross-compiling for Mac, though.

Reply all
Reply to author
Forward
0 new messages