Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Brew install failing at osx-cross/arm/arm-none-eabi-gcc@8 on M2 Mac #78

Closed
tim-morriss opened this issue Mar 12, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@tim-morriss
Copy link

Describe the Bug

Sonoma 14.2.1 M2 Pro
Homebrew 4.2.12

==> Installing qmk/qmk/qmk dependency: osx-cross/arm/arm-none-eabi-gcc@8
==> Patching
==> Applying gcc-11-arm-darwin.patch
patching file 'gcc/config/host-darwin.c'
==> /private/tmp/arm-none-eabi-gccA8-20240312-41359-t4ucmn/gcc-8.5.0/configure --prefix=/ --target=arm-none-eabi --enable-languages=c --with-ld=/opt/homebrew/opt/arm-none-eabi-binutils/bin/arm-none-eabi-ld --with-as=/opt/homebrew/opt/arm-none-eabi-binutil
==> make all-gcc BOOT_LDFLAGS=-Wl,-headerpad_max_install_names
Last 15 lines from /Users/tim/Library/Logs/Homebrew/arm-none-eabi-gcc@8/02.make:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__format/formatter_bool.h:20:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__format/formatter_integral.h:32:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/locale:202:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__locale:811:8: error: expected ';' at end of declaration
iscntrl(_CharT __c, const locale& __loc)
       ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
clang++ -fno-PIE -c   -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -fno-strict-aliasing -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -I. -I/private/tmp/arm-none-eabi-gccA8-20240312-41359-t4ucmn/gcc-8.5.0/gcc -I/private/tmp/arm-none-eabi-gccA8-20240312-41359-t4ucmn/gcc-8.5.0/gcc/. -I/private/tmp/arm-none-eabi-gccA8-20240312-41359-t4ucmn/gcc-8.5.0/gcc/../include -I/private/tmp/arm-none-eabi-gccA8-20240312-41359-t4ucmn/gcc-8.5.0/gcc/../libcpp/include  -I/private/tmp/arm-none-eabi-gccA8-20240312-41359-t4ucmn/gcc-8.5.0/gcc/../libdecnumber -I/private/tmp/arm-none-eabi-gccA8-20240312-41359-t4ucmn/gcc-8.5.0/gcc/../libdecnumber/dpd -I../libdecnumber -I/private/tmp/arm-none-eabi-gccA8-20240312-41359-t4ucmn/gcc-8.5.0/gcc/../libbacktrace   -o collect-utils.o -MT collect-utils.o -MMD -MP -MF ./.deps/collect-utils.TPo /private/tmp/arm-none-eabi-gccA8-20240312-41359-t4ucmn/gcc-8.5.0/gcc/collect-utils.c
clang++ -fno-PIE -c   -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -fno-strict-aliasing -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -I. -I/private/tmp/arm-none-eabi-gccA8-20240312-41359-t4ucmn/gcc-8.5.0/gcc -I/private/tmp/arm-none-eabi-gccA8-20240312-41359-t4ucmn/gcc-8.5.0/gcc/. -I/private/tmp/arm-none-eabi-gccA8-20240312-41359-t4ucmn/gcc-8.5.0/gcc/../include -I/private/tmp/arm-none-eabi-gccA8-20240312-41359-t4ucmn/gcc-8.5.0/gcc/../libcpp/include  -I/private/tmp/arm-none-eabi-gccA8-20240312-41359-t4ucmn/gcc-8.5.0/gcc/../libdecnumber -I/private/tmp/arm-none-eabi-gccA8-20240312-41359-t4ucmn/gcc-8.5.0/gcc/../libdecnumber/dpd -I../libdecnumber -I/private/tmp/arm-none-eabi-gccA8-20240312-41359-t4ucmn/gcc-8.5.0/gcc/../libbacktrace   -o lto-wrapper.o -MT lto-wrapper.o -MMD -MP -MF ./.deps/lto-wrapper.TPo /private/tmp/arm-none-eabi-gccA8-20240312-41359-t4ucmn/gcc-8.5.0/gcc/lto-wrapper.c
clang++ -fno-PIE -c  -DSTANDARD_STARTFILE_PREFIX=\"../../../\" -DSTANDARD_EXEC_PREFIX=\"//lib/gcc/\" -DSTANDARD_LIBEXEC_PREFIX=\"//libexec/gcc/\" -DDEFAULT_TARGET_VERSION=\"8.5.0\" -DDEFAULT_REAL_TARGET_MACHINE=\"arm-none-eabi\" -DDEFAULT_TARGET_MACHINE=\"arm-none-eabi\" -DSTANDARD_BINDIR_PREFIX=\"//bin/\" -DTOOLDIR_BASE_PREFIX=\"../../../../\" -DACCEL_DIR_SUFFIX=\"\" -DTARGET_SYSTEM_ROOT=\"/opt/homebrew/Cellar/arm-none-eabi-gcc@8/8.5.0_1\"   -DCONFIGURE_SPECS="\"\"" -DTARGET_MACHINE=\"arm-none-eabi\" -DTARGET_SYSTEM_ROOT=\"/opt/homebrew/Cellar/arm-none-eabi-gcc@8/8.5.0_1\" -DPERSONALITY=\"ar\" -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -fno-strict-aliasing -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -I. -I/private/tmp/arm-none-eabi-gccA8-20240312-41359-t4ucmn/gcc-8.5.0/gcc -I/private/tmp/arm-none-eabi-gccA8-20240312-41359-t4ucmn/gcc-8.5.0/gcc/. -I/private/tmp/arm-none-eabi-gccA8-20240312-41359-t4ucmn/gcc-8.5.0/gcc/../include -I/private/tmp/arm-none-eabi-gccA8-20240312-41359-t4ucmn/gcc-8.5.0/gcc/../libcpp/include  -I/private/tmp/arm-none-eabi-gccA8-20240312-41359-t4ucmn/gcc-8.5.0/gcc/../libdecnumber -I/private/tmp/arm-none-eabi-gccA8-20240312-41359-t4ucmn/gcc-8.5.0/gcc/../libdecnumber/dpd -I../libdecnumber -I/private/tmp/arm-none-eabi-gccA8-20240312-41359-t4ucmn/gcc-8.5.0/gcc/../libbacktrace   -o gcc-ar.o -MT gcc-ar.o -MMD -MP -MF ./.deps/gcc-ar.TPo /private/tmp/arm-none-eabi-gccA8-20240312-41359-t4ucmn/gcc-8.5.0/gcc/gcc-ar.c
20 errors generated.
make[1]: *** [gcov.o] Error 1
make[1]: *** Waiting for unfinished jobs....
rm gcc.pod
make: *** [all-gcc] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/osx-cross/homebrew-arm/issues

Additional Context?

No response

@tim-morriss tim-morriss added the bug Something isn't working label Mar 12, 2024
@tzarc
Copy link
Member

tzarc commented Mar 12, 2024

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
https://github.com/osx-cross/homebrew-arm/issues

As per the bottom of the compiler output.

@fauxpark
Copy link
Member

I'm currently working on getting Apple Silicon bottles built over on osx-cross/avr, so people running Sonoma and higher won't need to wait for Brew to compile the toolchains locally anymore.

Once that's finished I'll do the same for the ARM tap, and hopefully will be able to figure this out.

@fauxpark
Copy link
Member

@fauxpark fauxpark closed this as not planned Won't fix, can't repro, duplicate, stale Mar 13, 2024
@jocelynmallon
Copy link

Just wanted to add a note that this appears to be an issue with the macOS 14.4 SDK; I just reinstalled XCode 15.2.0 and temporarily symlinked the older 14.2 SDK in place of 14.4 and the qmk install completed just fine, albeit slow as ever (for me at least) as it's still compiling the toolchain locally.

@fauxpark
Copy link
Member

That's useful to know, thanks!

It appears the Sonoma ARM64 GHA runner currently does not have the 14.4 SDK: https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md#installed-sdks

So this probably wouldn't be an issue for building bottles, at least right now. In the meantime though, the runner could very well be updated while I'm still working on the changes for the AVR toolchain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants