Cross-compiling from Arm Mac(M2 Max) to Linux AMD64

206 views
Skip to first unread message

xianwei zheng

unread,
Jun 10, 2024, 5:59:29 PMJun 10
to Chromium-dev
Hi,

Is it possible on MacOS to cross-compile a Chromium Linux AMD64 build?

My GN setting
```

 target_os="linux"

  target_cpu="x64"

 is_debug_build=false

  symbol_level=2

```

And I got the error Message:

```

Generating files...

ERROR at //build/config/linux/atspi2/BUILD.gn:37:9: Comparison requires two integers.

    if (major < 2 || (major == 2 && minor < 49) ||

        ^--------

This operator can only compare two integers.

See //content/test/BUILD.gn:709:7: which caused the file to be included.

      "//build/config/linux/atspi2",

      ^----------------------------

```

Dirk Pranke

unread,
Jun 10, 2024, 8:02:51 PMJun 10
to baika...@gmail.com, Chromium-dev
No, the build doesn't support cross-compiling Linux from Mac. 

-- Dirk 

--
--
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/f4498a6e-e526-4f99-b272-801d609b78ddn%40chromium.org.

xianwei zheng

unread,
Jun 11, 2024, 6:12:15 PMJun 11
to Chromium-dev, Dirk Pranke, Chromium-dev, baika...@gmail.com
Thanks, I  build linux amd64 version From Intel PC
Reply all
Reply to author
Forward
0 new messages