https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115006
Bug ID: 115006 Summary: Bootstrap with clang 17 on macOS & CLT 15.3 fails to compile gcov.cc Product: gcc Version: 14.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: ilg at livius dot net Target Milestone: --- If I read the error message right, it looks like a mismatch between the definitions in GCC headers and the clang C++ headers. In my test I installed clang 17 via Homebrew. If not solved, this error will most probably affect the GCC bootstrap on future CLT/Xcode releases, when Apple will get to clang 17. I noticed the error while trying to bootstrap GCC 14 and 13, but previous versions might also be affected. Ideally the fix should be back-ported to previous GCC versions. ``` In file included from /Users/ilg/Work/xpack-dev-tools-build/aarch64-none-elf-gcc-13.2.1-1.1/darwin-x64/sources/gcc/gcc/gcov.cc:39: In file included from /Users/ilg/Work/xpack-dev-tools-build/aarch64-none-elf-gcc-13.2.1-1.1/darwin-x64/sources/gcc/gcc/system.h:227: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/map:2529: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/functional:526: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__functional/boyer_moore_searcher.h:27: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/vector:321: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__format/formatter_bool.h:20: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__format/formatter_integral.h:32: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/locale:202: /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__locale:546:5: error: '__abi_tag__' attribute only applies to structs, variables, functions, and namespaces 546 | _LIBCPP_INLINE_VISIBILITY | ^ /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__config:841:37: note: expanded from macro '_LIBCPP_INLINE_VISIBILITY' 841 | # define _LIBCPP_INLINE_VISIBILITY _LIBCPP_HIDE_FROM_ABI | ^ /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__config:820:26: note: expanded from macro '_LIBCPP_HIDE_FROM_ABI' 820 | __attribute__((__abi_tag__(_LIBCPP_TOSTRING(_LIBCPP_ODR_SIGNATURE)))) | ^ In file included from /Users/ilg/Work/xpack-dev-tools-build/aarch64-none-elf-gcc-13.2.1-1.1/darwin-x64/sources/gcc/gcc/gcov.cc:39: In file included from /Users/ilg/Work/xpack-dev-tools-build/aarch64-none-elf-gcc-13.2.1-1.1/darwin-x64/sources/gcc/gcc/system.h:227: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/map:2529: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/functional:526: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__functional/boyer_moore_searcher.h:27: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/vector:321: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__format/formatter_bool.h:20: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__format/formatter_integral.h:32: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/locale:202: /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__locale:547:37: error: expected ';' at end of declaration list 547 | char_type toupper(char_type __c) const | ^ /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__locale:553:48: error: too many arguments provided to function-like macro invocation 553 | const char_type* toupper(char_type* __low, const char_type* __high) const | ^ /Users/ilg/Work/xpack-dev-tools-build/aarch64-none-elf-gcc-13.2.1-1.1/darwin-x64/sources/gcc/gcc/../include/safe-ctype.h:146:9: note: macro 'toupper' defined here 146 | #define toupper(c) do_not_use_toupper_with_safe_ctype | ^ In file included from /Users/ilg/Work/xpack-dev-tools-build/aarch64-none-elf-gcc-13.2.1-1.1/darwin-x64/sources/gcc/gcc/gcov.cc:39: In file included from /Users/ilg/Work/xpack-dev-tools-build/aarch64-none-elf-gcc-13.2.1-1.1/darwin-x64/sources/gcc/gcc/system.h:227: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/map:2529: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/functional:526: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__functional/boyer_moore_searcher.h:27: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/vector:321: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__format/formatter_bool.h:20: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__format/formatter_integral.h:32: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/locale:202: /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__locale:565:48: error: too many arguments provided to function-like macro invocation 565 | const char_type* tolower(char_type* __low, const char_type* __high) const | ^ /Users/ilg/Work/xpack-dev-tools-build/aarch64-none-elf-gcc-13.2.1-1.1/darwin-x64/sources/gcc/gcc/../include/safe-ctype.h:148:9: note: macro 'tolower' defined here 148 | #define tolower(c) do_not_use_tolower_with_safe_ctype | ^ In file included from /Users/ilg/Work/xpack-dev-tools-build/aarch64-none-elf-gcc-13.2.1-1.1/darwin-x64/sources/gcc/gcc/gcov.cc:39: In file included from /Users/ilg/Work/xpack-dev-tools-build/aarch64-none-elf-gcc-13.2.1-1.1/darwin-x64/sources/gcc/gcc/system.h:227: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/map:2529: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/functional:526: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__functional/boyer_moore_searcher.h:27: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/vector:321: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__format/formatter_bool.h:20: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__format/formatter_integral.h:32: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/locale:202: /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__locale:656:5: error: '__abi_tag__' attribute only applies to structs, variables, functions, and namespaces 656 | _LIBCPP_INLINE_VISIBILITY | ^ /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__config:841:37: note: expanded from macro '_LIBCPP_INLINE_VISIBILITY' 841 | # define _LIBCPP_INLINE_VISIBILITY _LIBCPP_HIDE_FROM_ABI | ^ /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__config:820:26: note: expanded from macro '_LIBCPP_HIDE_FROM_ABI' 820 | __attribute__((__abi_tag__(_LIBCPP_TOSTRING(_LIBCPP_ODR_SIGNATURE)))) | ^ In file included from /Users/ilg/Work/xpack-dev-tools-build/aarch64-none-elf-gcc-13.2.1-1.1/darwin-x64/sources/gcc/gcc/gcov.cc:39: In file included from /Users/ilg/Work/xpack-dev-tools-build/aarch64-none-elf-gcc-13.2.1-1.1/darwin-x64/sources/gcc/gcc/system.h:227: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/map:2529: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/functional:526: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__functional/boyer_moore_searcher.h:27: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/vector:321: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__format/formatter_bool.h:20: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__format/formatter_integral.h:32: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/locale:202: /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__locale:657:37: error: expected ';' at end of declaration list 657 | char_type toupper(char_type __c) const | ^ /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__locale:663:48: error: too many arguments provided to function-like macro invocation 663 | const char_type* toupper(char_type* __low, const char_type* __high) const | ^ /Users/ilg/Work/xpack-dev-tools-build/aarch64-none-elf-gcc-13.2.1-1.1/darwin-x64/sources/gcc/gcc/../include/safe-ctype.h:146:9: note: macro 'toupper' defined here 146 | #define toupper(c) do_not_use_toupper_with_safe_ctype | ^ In file included from /Users/ilg/Work/xpack-dev-tools-build/aarch64-none-elf-gcc-13.2.1-1.1/darwin-x64/sources/gcc/gcc/gcov.cc:39: In file included from /Users/ilg/Work/xpack-dev-tools-build/aarch64-none-elf-gcc-13.2.1-1.1/darwin-x64/sources/gcc/gcc/system.h:227: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/map:2529: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/functional:526: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__functional/boyer_moore_searcher.h:27: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/vector:321: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__format/formatter_bool.h:20: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__format/formatter_integral.h:32: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/locale:202: /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__locale:675:48: error: too many arguments provided to function-like macro invocation 675 | const char_type* tolower(char_type* __low, const char_type* __high) const | ^ /Users/ilg/Work/xpack-dev-tools-build/aarch64-none-elf-gcc-13.2.1-1.1/darwin-x64/sources/gcc/gcc/../include/safe-ctype.h:148:9: note: macro 'tolower' defined here 148 | #define tolower(c) do_not_use_tolower_with_safe_ctype | ^ In file included from /Users/ilg/Work/xpack-dev-tools-build/aarch64-none-elf-gcc-13.2.1-1.1/darwin-x64/sources/gcc/gcc/gcov.cc:39: In file included from /Users/ilg/Work/xpack-dev-tools-build/aarch64-none-elf-gcc-13.2.1-1.1/darwin-x64/sources/gcc/gcc/system.h:227: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/map:2529: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/functional:526: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__functional/boyer_moore_searcher.h:27: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/vector:321: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__format/formatter_bool.h:20: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__format/formatter_integral.h:32: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/locale:202: /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__locale:791:21: error: too many arguments provided to function-like macro invocation 791 | isspace(_CharT __c, const locale& __loc) | ^ /Users/ilg/Work/xpack-dev-tools-build/aarch64-none-elf-gcc-13.2.1-1.1/darwin-x64/sources/gcc/gcc/../include/safe-ctype.h:140:9: note: macro 'isspace' defined here 140 | #define isspace(c) do_not_use_isspace_with_safe_ctype | ^ In file included from /Users/ilg/Work/xpack-dev-tools-build/aarch64-none-elf-gcc-13.2.1-1.1/darwin-x64/sources/gcc/gcc/gcov.cc:39: In file included from /Users/ilg/Work/xpack-dev-tools-build/aarch64-none-elf-gcc-13.2.1-1.1/darwin-x64/sources/gcc/gcc/system.h:227: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/map:2529: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/functional:526: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__functional/boyer_moore_searcher.h:27: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/vector:321: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__format/formatter_bool.h:20: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__format/formatter_integral.h:32: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/locale:202: /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__locale:791:1: error: declaration conflicts with target of using declaration already in scope 791 | isspace(_CharT __c, const locale& __loc) | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/_ctype.h:267:1: note: target of using declaration 267 | isspace(int _c) | ^ /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/cctype:121:9: note: using declaration 121 | using ::isspace _LIBCPP_USING_IF_EXISTS; | ^ In file included from /Users/ilg/Work/xpack-dev-tools-build/aarch64-none-elf-gcc-13.2.1-1.1/darwin-x64/sources/gcc/gcc/gcov.cc:39: In file included from /Users/ilg/Work/xpack-dev-tools-build/aarch64-none-elf-gcc-13.2.1-1.1/darwin-x64/sources/gcc/gcc/system.h:227: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/map:2529: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/functional:526: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__functional/boyer_moore_searcher.h:27: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/vector:321: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__format/formatter_bool.h:20: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__format/formatter_integral.h:32: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/locale:202: /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__locale:793:5: error: expected expression 793 | return std::use_facet<ctype<_CharT> >(__loc).is(ctype_base::space, __c); | ^ /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__locale:794:2: error: expected ';' at end of declaration 794 | } | ^ /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__locale:799:21: error: too many arguments provided to function-like macro invocation 799 | isprint(_CharT __c, const locale& __loc) | ^ /Users/ilg/Work/xpack-dev-tools-build/aarch64-none-elf-gcc-13.2.1-1.1/darwin-x64/sources/gcc/gcc/../include/safe-ctype.h:136:9: note: macro 'isprint' defined here 136 | #define isprint(c) do_not_use_isprint_with_safe_ctype | ^ In file included from /Users/ilg/Work/xpack-dev-tools-build/aarch64-none-elf-gcc-13.2.1-1.1/darwin-x64/sources/gcc/gcc/gcov.cc:39: In file included from /Users/ilg/Work/xpack-dev-tools-build/aarch64-none-elf-gcc-13.2.1-1.1/darwin-x64/sources/gcc/gcc/system.h:227: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/map:2529: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/functional:526: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__functional/boyer_moore_searcher.h:27: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/vector:321: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__format/formatter_bool.h:20: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__format/formatter_integral.h:32: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/locale:202: /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__locale:799:1: error: declaration conflicts with target of using declaration already in scope 799 | isprint(_CharT __c, const locale& __loc) | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/_ctype.h:255:1: note: target of using declaration 255 | isprint(int _c) | ^ /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/cctype:119:9: note: using declaration 119 | using ::isprint _LIBCPP_USING_IF_EXISTS; | ^ In file included from /Users/ilg/Work/xpack-dev-tools-build/aarch64-none-elf-gcc-13.2.1-1.1/darwin-x64/sources/gcc/gcc/gcov.cc:39: In file included from /Users/ilg/Work/xpack-dev-tools-build/aarch64-none-elf-gcc-13.2.1-1.1/darwin-x64/sources/gcc/gcc/system.h:227: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/map:2529: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/functional:526: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__functional/boyer_moore_searcher.h:27: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/vector:321: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__format/formatter_bool.h:20: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__format/formatter_integral.h:32: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/locale:202: /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__locale:801:5: error: expected expression 801 | return std::use_facet<ctype<_CharT> >(__loc).is(ctype_base::print, __c); | ^ /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__locale:802:2: error: expected ';' at end of declaration 802 | } | ^ /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__locale:807:21: error: too many arguments provided to function-like macro invocation 807 | iscntrl(_CharT __c, const locale& __loc) | ^ /Users/ilg/Work/xpack-dev-tools-build/aarch64-none-elf-gcc-13.2.1-1.1/darwin-x64/sources/gcc/gcc/../include/safe-ctype.h:128:9: note: macro 'iscntrl' defined here 128 | #define iscntrl(c) do_not_use_iscntrl_with_safe_ctype | ^ In file included from /Users/ilg/Work/xpack-dev-tools-build/aarch64-none-elf-gcc-13.2.1-1.1/darwin-x64/sources/gcc/gcc/gcov.cc:39: In file included from /Users/ilg/Work/xpack-dev-tools-build/aarch64-none-elf-gcc-13.2.1-1.1/darwin-x64/sources/gcc/gcc/system.h:227: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/map:2529: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/functional:526: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__functional/boyer_moore_searcher.h:27: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/vector:321: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__format/formatter_bool.h:20: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__format/formatter_integral.h:32: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/locale:202: /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__locale:807:1: error: declaration conflicts with target of using declaration already in scope 807 | iscntrl(_CharT __c, const locale& __loc) | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/_ctype.h:230:1: note: target of using declaration 230 | iscntrl(int _c) | ^ /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/cctype:115:9: note: using declaration 115 | using ::iscntrl _LIBCPP_USING_IF_EXISTS; | ^ In file included from /Users/ilg/Work/xpack-dev-tools-build/aarch64-none-elf-gcc-13.2.1-1.1/darwin-x64/sources/gcc/gcc/gcov.cc:39: In file included from /Users/ilg/Work/xpack-dev-tools-build/aarch64-none-elf-gcc-13.2.1-1.1/darwin-x64/sources/gcc/gcc/system.h:227: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/map:2529: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/functional:526: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__functional/boyer_moore_searcher.h:27: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/vector:321: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__format/formatter_bool.h:20: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__format/formatter_integral.h:32: In file included from /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/locale:202: /Users/ilg/.local/homebrew/hb/Cellar/llvm/17.0.6_1/bin/../include/c++/v1/__locale:809:5: error: expected expression 809 | return std::use_facet<ctype<_CharT> >(__loc).is(ctype_base::cntrl, __c); | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] ```