Open teocns opened 1 year ago
I am pretty sure that the requirement of -fblocks
is somewhat a side-effect and adding it would be trying to solve the XY problem. My bet is that something's off with the MacOS SDK, but can't make any other guess than the compiler not seeing the macos-version-min
flag (which it complains about), and if it would, perhaps this -fblocks
requirement error wouldn't be produced
Also, I reckon that at some point, when I was running initial tests on sccache, the build was working fine with an historical, basic setup.
Any input is appreciated
Apparently the issue is fixed by passing --target
cflag to the compiler.
Specifically what I did was forcing this flag's provision in build/config/mac/BUILD.gn
I am trying to compile Chromium with
sccache-dist
. My setup is:Host:
Darwin h4xx0rs-MBP.lan 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 20:59:58 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T6020 x86_64 i386 Darwin
(Runs Rosetta)Server:
Linux ip-192-168-142-243.us-east-2.compute.internal 6.1.55-75.123.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Sep 26 20:06:16 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Installed SDKs (Host):
MacOSX10.15.sdk MacOSX13.3.sdk
Toolchain:
Created with https://github.com/avl7771/icecream-chromium-mac for Linux x86
client.conf
build configuration
Worth mentioning that I've literally tried all sorts of
args.gn
combinations, including:The same issue persists even when the build compiles for
13.3
, which sould support the fblocks.The error I am seeing fully can be broke down in two:
'-mmacos-version-min=10.15' unused compile arg.
blocks support disabled - compile with -fblocks or pick a deployment target that supports them