[FS#1493] Failed to build the Openwrt SDK on macOS

LEDE Bugs lede-bugs at lists.infradead.org
Sat Apr 14 03:27:01 PDT 2018


A new Flyspray task has been opened.  Details are below. 

User who did this - John Doe (zb62bk) 

Attached to Project - OpenWrt/LEDE Project
Summary - Failed to build the Openwrt SDK on macOS
Task Type - Bug Report
Category - Toolchain
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Low
Priority - Very Low
Reported Version - Trunk
Due in Version - Undecided
Due Date - Undecided
Details - :16:24: error: argument to 'section' attribute is not valid for this target: mach-o section specifier requires a segment and section separated by a comma
__attribute__((section(".init_array")))
                       ^
1 error generated.
compiling preload library failed


In scripts/bundle-libraries.sh, line 90
maybe it should be changed from
__attribute__((section(".init_array")))
to something like
#ifdef __APPLE__
__attribute__((section(".init_array")))
#else
__attribute__((section("__DATA,__mod_init_func")))
#endif

More information can be found at the following URL:
https://bugs.openwrt.org/index.php?do=details&task_id=1493



More information about the lede-bugs mailing list