[libc-commits] [libc] [llvm] [libc][math] Refactor log10, log1p, log2 implementation to header-only in src/__support/math folder. (PR #176089)
Nico Weber via libc-commits
libc-commits at lists.llvm.org
Fri Jan 16 07:15:58 PST 2026
nico wrote:
> All done, except for the gcc12.2 bits. I'll try if I can get that from homebrew
It doesn't Just Work, at least:
```
% brew install gcc at 12
==> Installing gcc at 12
==> Patching
==> Applying gcc-12.4.0.diff
==> Applying e300c1337a48cf772b09e7136601fd7f9f09d6f1..99533d94172ed7a24c0e54c4ea97e6ae2260409e.patch
==> ../configure --prefix=/Users/thakis/src/homebrew/opt/gcc at 12 --libdir=/Users/thakis/src/homebrew/opt/
==> make
Last 15 lines from /Users/thakis/Library/Logs/Homebrew/gcc at 12/02.make.log:
/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/mach/arm/_structs.h:639:26: error: '_Alignof' was not declared in this scope
639 | } __attribute__((aligned(_Alignof(unsigned int))));
| ^~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/mach/arm/_structs.h:645:35: error: expected primary-expression before 'unsigned'
645 | } __attribute__((aligned(_Alignof(unsigned int))));
| ^~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/mach/arm/_structs.h:645:26: error: '_Alignof' was not declared in this scope
645 | } __attribute__((aligned(_Alignof(unsigned int))));
| ^~~~~~~~
make[5]: *** [aarch64-apple-darwin24/bits/stdc++.h.gch/O2ggnu++0x.gch] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-stage1-target-libstdc++-v3] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2
```
I guess I'll try building it from source myself.
https://github.com/llvm/llvm-project/pull/176089
More information about the libc-commits
mailing list