Issue when compiling Chromium on an M2 macbook air

576 views
Skip to first unread message

Rudi

unread,
Apr 19, 2024, 3:37:37 PM4/19/24
to Chromium-dev

So i was trying to compile Chromium on MacOS Sonoma with an M2 chip using autoninja and on [50994/61229] CXX obj/third_party/blink/renderer/bindings/core/v8/v8/v8_async_iterator_readable_stream.o it suddenly failed. The error log is extremely long but they are all about unsafe buffer access.

/Users/me/chromium/src/out/Default/../../base/containers/span.h:901:27: error: unsafe buffer access [-Werror,-Wunsafe-buffer-usage] 901 | return UNSAFE_BUFFERS(data()[idx]);


I never actually modified the code so it's pretty weird.

I tried around 5 more times playing around with my args.gn file but nothing worked. This is my args.gn file right now by the way:

target_cpu = "arm64"
is_debug = false
is_component_build = true
symbol_level = 0


Please help


danakj

unread,
Apr 19, 2024, 6:43:25 PM4/19/24
to rudide...@gmail.com, Chromium-dev
Hi,

For some reason the source file paths are absolute on some mac machines (but not in most of our builders).


For now you can try this workaround: https://issues.chromium.org/u/1/issues/41497066#comment28

Cheers,
Dana

--
--
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/b35079e2-667a-4c24-b0dc-e432c30e218bn%40chromium.org.
Reply all
Reply to author
Forward
0 new messages