https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100847
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |WORKSFORME --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I was able to compile and test GCC myself with the following options: apinski@Andrews-Mac-mini ~ % ~/upstream-gcc/bin/gcc -v Using built-in specs. COLLECT_GCC=/Users/apinski/upstream-gcc/bin/gcc COLLECT_LTO_WRAPPER=/Users/apinski/upstream-gcc/libexec/gcc/aarch64-apple-darwin20.4.0/11.0.1/lto-wrapper Target: aarch64-apple-darwin20.4.0 Configured with: /Users/apinski/src/upstream-gcc-macosx/gcc/configure --prefix=/Users/apinski/upstream-gcc --with-sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/ Thread model: posix Supported LTO compression algorithms: zlib gcc version 11.0.1 20210417 (experimental) (GCC) apinski@Andrews-Mac-mini ~ % ~/upstream-gcc/bin/g++ t.c apinski@Andrews-Mac-mini ~ % ./a.out Hello World. apinski@Andrews-Mac-mini ~ % cat t.c #include <iostream> int main(void) { std::cout << "Hello World.\n"; }