Kairui Song
|
85530cce98
|
gcc: Fix 11.2.0 build failure on MacOS with Apple M1
With latest aarch64-unknown-linux-gnu, ct-ng build failed with:
[INFO ] Installing pass-1 core C gcc compiler
[EXTRA] Configuring core C gcc compiler
[EXTRA] Building gcc
[ERROR] clang: error: linker command failed with exit code 1 (use -v to see invocation)
[ERROR] make[2]: *** [Makefile:2148: xgcc] Error 1
[ERROR] make[2]: *** Waiting for unfinished jobs....
[ERROR] clang: error: linker command failed with exit code 1 (use -v to see invocation)
[ERROR] make[2]: *** [Makefile:2157: cpp] Error 1
[ERROR] make[1]: *** [Makefile:4444: all-gcc] Error 2
And in build log:
Undefined symbols for architecture arm64:
"host_detect_local_cpu(int, char const**)", referenced from:
static_spec_functions in gcc.o
Just backport a upstream gcc fix.
Signed-off-by: Kairui Song <ryncsn@gmail.com>
|
2021-12-13 21:19:30 +13:00 |
|