0
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-11-24 14:06:15 +00:00
openwrt/toolchain/gcc/patches-11.x
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
..
002-case_insensitive.patch
010-documentation.patch
011-v12-configure-define-TARGET_LIBC_GNUSTACK-on-musl.patch
020-Include-safe-ctype.h-after-C-standard-headers-to-avo.patch toolchain/gcc: fix build errors on macOS with Xcode 15.3 2024-04-02 11:10:32 +02:00
110-Fix-MIPS-PR-84790.patch
230-musl_libssp.patch
300-mips_Os_cpu_rtx_cost_model.patch
400-libsanitizer-cherry-pick-9cf13067cb5088626ba7-from-u.patch toolchain: gcc: backport patches to fix build with glibc 2.36 2022-12-21 11:35:32 +01:00
700-RISCV-Inline-subword-atomic-ops.patch toolchain: gcc: backport inline subword atomic support for riscv 2023-06-11 17:09:06 +02:00
701-riscv-linux-Don-t-add-latomic-with-pthread.patch toolchain: gcc: backport inline subword atomic support for riscv 2023-06-11 17:09:06 +02:00
810-arm-softfloat-libgcc.patch
820-libgcc_pic.patch
840-armv4_pass_fix-v4bx_to_ld.patch
850-use_shared_libgcc.patch
851-libgcc_no_compat.patch
870-ppc_no_crtsavres.patch
881-no_tm_section.patch
900-bad-mips16-crt.patch
910-mbsd_multi.patch toolchain: gcc: backport inline subword atomic support for riscv 2023-06-11 17:09:06 +02:00
920-specs_nonfatal_getenv.patch
931-libffi-fix-MIPS-softfloat-build-issue.patch
960-gotools-fix-compilation-when-making-cross-compiler.patch
970-macos_arm64-building-fix.patch