1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-06-13 18:53:52 +02:00
openwrt/toolchain
Georgi Valkov 631014d9b0 toolchain/gcc: fix build errors on macOS with Xcode 15.3
/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))))

Fixed using backport of upstream commits [1-2] as discussed here
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111632#c21

[1] Include safe-ctype.h after C++ standard headers, to avoid over-poisoning
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=9970b576b7e4ae337af1268395ff221348c4b34a

[2] libcc1: fix <vector> include
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=5213047b1d50af63dfabb5e5649821a6cb157e33

Signed-off-by: Georgi Valkov <gvalkov@gmail.com>
2024-04-02 11:10:32 +02:00
..
binutils toolchain: binutils: add support for version 2.42 2024-02-06 19:20:49 +01:00
fortify-headers fortify-headers: add __extension__ mark to strings.h 2023-07-12 20:24:56 +02:00
gcc toolchain/gcc: fix build errors on macOS with Xcode 15.3 2024-04-02 11:10:32 +02:00
gdb toolchain/gdb: add pthread to CFLAGS/LDFLAGS for zstd 2023-12-19 10:54:19 +01:00
glibc toolchain: glibc: Update glibc 2.37 to recent HEAD 2024-02-10 12:52:09 +01:00
kernel-headers toolchain: assign PKG_CPE_ID 2023-09-19 20:22:59 +02:00
mold toolchain: add mold as additional linker 2023-07-04 20:25:41 +02:00
musl toolchain: musl: add PKG_CPE_ID 2023-09-14 22:39:20 +02:00
nasm toolchain: assign PKG_CPE_ID 2023-09-19 20:22:59 +02:00
wrapper buildroot: allow specifying libc personality for external toolchains 2013-02-20 15:06:10 +00:00
build_version toolchain: add a version that can be bumped to force toolchain/target rebuild 2021-11-16 22:02:45 +01:00
Config.in scripts/ext-toolchain: implement external GCC version detection 2023-10-20 16:13:31 +02:00
info.mk uClibc cleanup: - use full version string (0.9.30.1), instead of base (0.9.30) + extra (.1) - remove support for 0.9.28 and snapshots (building from SVN to be added later) 2009-04-24 02:07:24 +00:00
Makefile toolchain: add mold as additional linker 2023-07-04 20:25:41 +02:00