New: Buildroot linking error on Apple Silicon
https://bugs.busybox.net/show_bug.cgi?id=15361
Bug ID: 15361
Summary: Buildroot linking error on Apple Silicon
Product: buildroot
Version: 2022.11.1
Hardware: Macintosh
OS: Mac OS
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
HI,
I'm trying to run Buildroot on Apple Silicon, I'm unable to do that since I'm
getting an error with linking the libraries.
After running 'make menuconfig' I'm getting an error 'Undefined symbols for
architecture arm64' (top of Attachment 2 for full log), I was able to solve it
by running
'❯ cd output/build/buildroot-config'
'❯ /usr/local/bin/gcc -DCURSES_LOC="<curses.h>" -DLOCALE -DKBUILD_NO_NLS -I/Users/jakubswistak/Desktop/lines2/buildroot-2022.11.1/output/build/buildroot-config -DCONFIG_=\"\" /Users/jakubswistak/Desktop/lines2/buildroot-2022.11.1/output/build/buildroot-config/mconf.o /Users/jakubswistak/Desktop/lines2/buildroot-2022.11.1/output/build/buildroot-config/zconf.tab.o /Users/jakubswistak/Desktop/lines2/buildroot-2022.11.1/output/build/buildroot-config/lxdialog/checklist.o /Users/jakubswistak/Desktop/lines2/buildroot-2022.11.1/output/build/buildroot-config/lxdialog/util.o /Users/jakubswistak/Desktop/lines2/buildroot-2022.11.1/output/build/buildroot-config/lxdialog/inputbox.o /Users/jakubswistak/Desktop/lines2/buildroot-2022.11.1/output/build/buildroot-config/lxdialog/textbox.o /Users/jakubswistak/Desktop/lines2/buildroot-2022.11.1/output/build/buildroot-config/lxdialog/yesno.o /Users/jakubswistak/Desktop/lines2/buildroot-2022.11.1/output/build/buildroot-config/lxdialog/menubox.o
-o
/Users/jakubswistak/Desktop/lines2/buildroot-2022.11.1/output/build/buildroot-config/mconf -lncurses' - added '-lncurses'
But later during the compilation 'make'
I'm getting another error with linking library (bottom of Attachment 2 for full
log)
I'm using Apple M2 chip with gcc/g++ 12.2.0 installed via homebrew.
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
[Buildroot] [Bug 15361] Buildroot linking error on Apple Silicon
https://bugs.busybox.net/show_bug.cgi?id=15361
--- Comment #1 from James Hilliard <[email protected]> --- Buildroot should mostly work on apple silicon, I have an autobuilder running on a M1 mac mini myself:
http://autobuild.buildroot.net/?submitter=James+Hilliard+%28asahi-mini%29
Are you using the arch based Asahi Linux(https://asahilinux.org/)?
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
[Buildroot] [Bug 15361] Buildroot linking error on Apple Silicon
In reply to [email protected]https://bugs.busybox.net/show_bug.cgi?id=15361
--- Comment #2 from Jakub <[email protected]> --- Created attachment 9516
--> https://bugs.busybox.net/attachment.cgi?id=9516&action=edit
Logs
Logs of an errors from terminal
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
[Buildroot] [Bug 15361] Buildroot linking error on Apple Silicon
In reply to [email protected]https://bugs.busybox.net/show_bug.cgi?id=15361
Peter Korsgaard <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID--- Comment #3 from Peter Korsgaard <[email protected]> --- (In reply to Jakub from comment #0)
Building on MacOS is unlikely to work, you really need to build on a Linux machine. x86-64 naturally gets most testing, but conceptually it should work to build on an arm64 Linux machine as well (except for the prebuilt external toolchains and similar).
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
[Buildroot] [Bug 15361] Buildroot linking error on Apple Silicon
In reply to [email protected]https://bugs.busybox.net/show_bug.cgi?id=15361
--- Comment #4 from Jakub <[email protected]> --- (In reply to James Hilliard from comment #1)
I'm using macOS Ventura 13.2.1 and building an image for raspberry pi
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
[Buildroot] [Bug 15361] Buildroot linking error on Apple Silicon
In reply to [email protected]https://bugs.busybox.net/show_bug.cgi?id=15361
--- Comment #5 from James Hilliard <[email protected]> --- (In reply to Jakub from comment #4)
Yeah, buildroot needs a Linux based host OS, macOS isn't going to work. You need to install something like Asahi Linux, a aarch64 virtual machine may also work via qemu or something.
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot