OpenWrt/LEDE Project

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category Toolchain
  • Assigned To No-one
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version Trunk
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by John Doe - 14.04.2018
Last edited by Jo-Philipp Wich - 26.04.2018

FS#1493 - Failed to build the Openwrt SDK on macOS

<stdin>: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
Closed by  Jo-Philipp Wich
26.04.2018 14:07
Reason for closing:  Fixed
John Doe commented on 14.04.2018 10:28

It should be

#ifdef __APPLE__
__attribute__((section("__DATA,__mod_init_func")))
#else
__attribute__((section(".init_array")))
#endif

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing