mirror of
https://github.com/LiBwrt-op/openwrt-6.x.git
synced 2026-01-08 20:24:51 +00:00
Fix an error while building target/linux x64 on macOS 15.4 host,
due to the PATH_MAX macro being redefined:
mkdir -p /Volumes/test/openwrt/build_dir/target-x86_64_musl/linux-x86_64/linux-6.6.86/tools/objtool && make O=/Volumes/test/openwrt/build_dir/target-x86_64_musl/linux-x86_64/linux-6.6.86 subdir=tools/objtool --no-print-directory -C objtool
exec-cmd.c:15:9: error: 'PATH_MAX' macro redefined [-Werror,-Wmacro-redefined]
15 | #define PATH_MAX 4096
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/syslimits.h:103:9: note: previous definition is here
103 | #define PATH_MAX 1024 /* max bytes in pathname */
| ^
exec-cmd.c is compiled as part of objtool to run on the host, and
therefore host headers are used, where PATH_MAX is already defined.
Using an old OpenWRT snapshot from 2025-02-16, where linux-6.6.77
used to build correctly, does not help. Reverting from Xcode 16.3 to
16.2 does not help either.
Signed-off-by: Georgi Valkov <gvalkov@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18530
Signed-off-by: Robert Marko <robimarko@gmail.com>
|
||
|---|---|---|
| .. | ||
| 200-tools_portability.patch | ||
| 204-module_strip.patch | ||
| 205-kconfig-abort-configuration-on-unset-symbol.patch | ||
| 210-darwin_scripts_include.patch | ||
| 211-darwin-uuid-typedef-clash.patch | ||
| 214-spidev_h_portability.patch | ||
| 230-openwrt_lzma_options.patch | ||
| 250-netfilter_depends.patch | ||
| 251-kconfig.patch | ||
| 253-ksmbd-config.patch | ||
| 259-regmap_dynamic.patch | ||
| 260-crypto_test_dependencies.patch | ||
| 261-lib-arc4-unhide.patch | ||
| 280-rfkill-stubs.patch | ||
| 300-MIPS-r4k_cache-use-more-efficient-cache-blast.patch | ||
| 402-mtd-blktrans-call-add-disks-after-mtd-device.patch | ||
| 420-mtd-support-OpenWrt-s-MTD_ROOTFS_ROOT_DEV.patch | ||
| 421-drivers-mtd-parsers-add-nvmem-support-to-cmdlinepart.patch | ||
| 430-mtk-bmt-support.patch | ||
| 600-net-enable-fraglist-GRO-by-default.patch | ||
| 610-net-page_pool-try-to-free-deferred-skbs-while-waitin.patch | ||
| 645-netfilter-connmark-introduce-set-dscpmark.patch | ||
| 650-netfilter-add-xt_FLOWOFFLOAD-target.patch | ||
| 651-wireless_mesh_header.patch | ||
| 660-fq_codel_defaults.patch | ||
| 661-kernel-ct-size-the-hashtable-more-adequately.patch | ||
| 700-swconfig_switch_drivers.patch | ||
| 711-net-dsa-mv88e6xxx-disable-ATU-violation.patch | ||
| 721-net-add-packet-mangeling.patch | ||
| 722-net-phy-aquantia-enable-AQR112-and-AQR412.patch | ||
| 723-net-phy-aquantia-fix-system-side-protocol-mi.patch | ||
| 725-net-phy-aquantia-add-PHY_IDs-for-AQR112-variants.patch | ||
| 730-net-ethernet-mtk_eth_soc-add-hw-dump-for-forced-rese.patch | ||
| 735-net-phy-realtek-rtl8261n.patch | ||
| 750-net-pcs-mtk-lynxi-workaround-2500BaseX-no-an.patch | ||
| 760-net-usb-r8152-add-LED-configuration-from-OF.patch | ||
| 761-dt-bindings-net-add-RTL8152-binding-documentation.patch | ||
| 766-net-phy-mediatek-ge-add-LED-configuration-interface.patch | ||
| 773-bgmac-add-srab-switch.patch | ||
| 780-usb-net-MeigLink_modem_support.patch | ||
| 781-usb-net-rndis-support-asr.patch | ||
| 800-GPIO-add-named-gpio-exports.patch | ||
| 810-bcma-ssb-fallback-sprom.patch | ||
| 901-debloat_sock_diag.patch | ||
| 902-debloat_proc.patch | ||
| 904-debloat_dma_buf.patch | ||
| 910-kobject_uevent.patch | ||
| 911-kobject_add_broadcast_uevent.patch | ||
| 920-device_tree_cmdline.patch | ||
| 930-Revert-Revert-Revert-driver-core-Set-fw_devlink-on-b.patch | ||