Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
openwrt-bot opened this issue Apr 14, 2018 · 2 comments
Closed

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

openwrt-bot opened this issue Apr 14, 2018 · 2 comments
Labels

Comments

@openwrt-bot
Copy link

zb62bk:

: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

@openwrt-bot
Copy link
Author

zb62bk:

It should be
#ifdef APPLE
attribute((section("__DATA,__mod_init_func")))
#else
attribute((section(".init_array")))
#endif

@openwrt-bot
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant