So the build of my somewhat dated -current tree fails on macos box even with a guess at '-std=" and "-Wno-everything", and this c++ is way beyond my understanding. Because my source tree is somewhat dated I'm still working with the "initial import of GCC 9.3.0". Can anyone tell me whether or not this is fixable? Within reason? Or should I just leap into GCC-10 and try again? $ sw_vers ProductName: macOS ProductVersion: 14.6.1 BuildVersion: 23G93 $ c++ --version Apple clang version 15.0.0 (clang-1500.3.9.4) Target: x86_64-apple-darwin23.6.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin $ c++ -fno-PIE -c -g -O2 -std=gnu++14 -Wno-everything -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-strict-aliasing -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -DHAVE_CONFIG_H -I. -I. -I/Volumes/work/woods/m-NetBSD-current/tools/gcc/../../external/gpl3/gcc/dist/gcc -I/Volumes/work/woods/m-NetBSD-current/tools/gcc/../../external/gpl3/gcc/dist/gcc/. -I/Volumes/work/woods/m-NetBSD-current/tools/gcc/../../external/gpl3/gcc/dist/gcc/../include -I/Volumes/work/woods/m-NetBSD-current/tools/gcc/../../external/gpl3/gcc/dist/gcc/../libcpp/include -I/Users/woods/build/woods/very.local/current-x86_64-amd64-tools/include -I/Users/woods/build/woods/very.local/current-x86_64-amd64-tools/include -I/Users/woods/build/woods/very.local/current-x86_64-amd64-tools/include -I/Volumes/work/woods/m-NetBSD-current/tools/gcc/../../external/gpl3/gcc/dist/gcc/../libdecnumber -I/Volumes/work/woods/m-NetBSD-current/tools/gcc/../../external/gpl3/gcc/dist/gcc/../libdecnumber/dpd -I../libdecnumber -I/ Volumes/work/woods/m-NetBSD-current/tools/gcc/../../external/gpl3/gcc/dist/gcc/../libbacktrace -DNETBSD_TOOLS -DTARGET_SYSTEM_ROOT=0 -DTARGET_SYSTEM_ROOT_RELOCATABLE -o gcov.o -MT gcov.o -MMD -MP -MF ./.deps/gcov.TPo /Volumes/work/woods/m-NetBSD-current/tools/gcc/../../external/gpl3/gcc/dist/gcc/gcov.c In file included from /Volumes/work/woods/m-NetBSD-current/tools/gcc/../../external/gpl3/gcc/dist/gcc/gcov.c:39: In file included from /Volumes/work/woods/m-NetBSD-current/tools/gcc/../../external/gpl3/gcc/dist/gcc/system.h:233: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/map:2529: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:526: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:27: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:321: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_bool.h:20: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_integral.h:32: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/locale:202: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:550:5: error: '__abi_tag__' attribute only applies to structs, variables, functions, and namespaces _LIBCPP_INLINE_VISIBILITY ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:891:37: note: expanded from macro '_LIBCPP_INLINE_VISIBILITY' # define _LIBCPP_INLINE_VISIBILITY _LIBCPP_HIDE_FROM_ABI ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:870:26: note: expanded from macro '_LIBCPP_HIDE_FROM_ABI' __attribute__((__abi_tag__(_LIBCPP_TOSTRING(_LIBCPP_ODR_SIGNATURE)))) ^ In file included from /Volumes/work/woods/m-NetBSD-current/tools/gcc/../../external/gpl3/gcc/dist/gcc/gcov.c:39: In file included from /Volumes/work/woods/m-NetBSD-current/tools/gcc/../../external/gpl3/gcc/dist/gcc/system.h:233: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/map:2529: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:526: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:27: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:321: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_bool.h:20: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_integral.h:32: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/locale:202: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:551:37: error: expected ';' at end of declaration list char_type toupper(char_type __c) const ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:557:48: error: too many arguments provided to function-like macro invocation const char_type* toupper(char_type* __low, const char_type* __high) const ^ /Volumes/work/woods/m-NetBSD-current/tools/gcc/../../external/gpl3/gcc/dist/gcc/../include/safe-ctype.h:146:9: note: macro 'toupper' defined here #define toupper(c) do_not_use_toupper_with_safe_ctype ^ -- Greg A. Woods <gwoods%acm.org@localhost> Kelowna, BC +1 250 762-7675 RoboHack <woods%robohack.ca@localhost> Planix, Inc. <woods%planix.com@localhost> Avoncote Farms <woods%avoncote.ca@localhost>
Attachment:
pgpwGDlLHLUbK.pgp
Description: OpenPGP Digital Signature